Bonno Bloksma a écrit : > > +---------------------------------------------------------------------------+ > | EXTIF="eth0" | > | INTNET1="192.168.0.0/24" | > | INTNET2="192.168.1.0/24" | > | EXTIP1="123.123.123.11" | > | EXTIP2="123.123.123.12" | > | | > | iptables -t nat -A POSTROUTING -o $EXTIF -s $INTNET1 -j SNAT --to $EXTIP1 | > | iptables -t nat -A POSTROUTING -o $EXTIF -s $INTNET2 -j SNAT --to $EXTIP2 | > | | > +---------------------------------------------------------------------------+
Looks fine. > But it also states: > ----<quote>-------------- > Anyways, for the example case shown above, you will need to persuade the > routing system to direct packets from 192.168.0.x via 123.123.1233.11 and > packets from 192.168.1.x via 123.123.123.12. That is the hardest part and > adding Masq on top of correct routing is easy. Irrelevant. Just ignore that part. All you need is SNAT, and assign all external addresses to the external interface. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/54aecfa7.9060...@plouf.fr.eu.org