DNAT and broadcast

Ben Murphy ben at mrassociates.com
Thu Sep 2 16:11:48 CEST 2004

I was working with DNAT and I can successfully send a traffic to another 
machine.  The problem is that broadcast traffic is not routed.  So I added:
iptables -t nat -A PREROUTING -p udp -d --dport 3000 -j 
DNAT --to-destination

This is the only rule.  But nothing is seen by the remote machine. 
Normal traffic is routed correctly.

My guess is that even though the IP address has been changed the MAC 
address has not and that is what is causing the packet to not be routed. 
  Correct?  Is there a way to do this?

Ben Murphy
ben at mrassociates.com

More information about the netfilter mailing list