* DNAT and broadcast
@ 2004-09-02 14:11 Ben Murphy
2004-09-02 14:31 ` Jason Opperisano
0 siblings, 1 reply; 2+ messages in thread
From: Ben Murphy @ 2004-09-02 14:11 UTC (permalink / raw)
To: Netfilter
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 192.168.1.255 --dport 3000 -j
DNAT --to-destination 172.16.17.21
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@mrassociates.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: DNAT and broadcast
2004-09-02 14:11 DNAT and broadcast Ben Murphy
@ 2004-09-02 14:31 ` Jason Opperisano
0 siblings, 0 replies; 2+ messages in thread
From: Jason Opperisano @ 2004-09-02 14:31 UTC (permalink / raw)
To: netfilter
On Thu, 2004-09-02 at 10:11, Ben Murphy wrote:
> 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 192.168.1.255 --dport 3000 -j
> DNAT --to-destination 172.16.17.21
>
> 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?
broadcasts are not routed, and they shouldn't be. if you need
broadcasts to traverse a router, you need to configure a GRE tunnel.
for the broadcast to have any meaning on the other side of the GRE
tunnel--the layer 3 network needs to be the same on both sides of the
tunnel. a broadcast sent to 192.168.1.255 has no meaning to
172.16.17.21...
if the broadcasting host need to reach a host on another network, see if
there is a unicast option with your application (analogous to WINS for
NBNAME).
-j
--
Jason Opperisano <opie@817west.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-02 14:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-02 14:11 DNAT and broadcast Ben Murphy
2004-09-02 14:31 ` Jason Opperisano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox