DNAT + Bridge ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to do DNAT on a bridge.
This is the configuration of my network :

COMPUTER1 eth0 ------------eth0 BRIDGE1 eth1------------ eth0
COMPUTER2 eth1--------eth0 BRIDGE2 eth1--------- eth0 COMPUTER3


|eth2 _ _ _ _ _  eth0 COMPUTER4

@IPs :

192.168.1.1-------bridge1----- 192.168.1.2 |  192.168.2.2--------
bridge2 --------- 192.168.2.1

                    | _ _ _ 199.0.2.1

I try to du DNAT on bridge1 with iptables :
iptables -t nat -A PREROUTING -s 192.168.1.1 -d 192.168.2.1 -j DNAT
--to-destination 199.0.2.1

Without DNAT :
COMPUTER1 can ping COMPUTER 3 & COMPUTER4. So, my bridges look OK.

But, when I activate my little iptables rule, bridge1 seems to do
DNAT, packets are sent to bridge1 eth0 interface, but nothing seems to
be sent to computer2.

What did I do wrong ?
Thank you !
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux