Re: multiple outbound NAT

2015-01-08 Thread Paul van der Vlis
Op 08-01-15 om 14:36 schreef Bonno Bloksma: > Hi Paul, > >>> At one place I have a Debian wheezy machine that acts as router / firewall >>> using iptables and default routing. >>> I used to have just 1 ip number on the uplink interface. And a simple >>> $IPTABLES --table nat -A POSTROUTING -o

Re: multiple outbound NAT

2015-01-08 Thread Pascal Hambourg
Bonno Bloksma a écrit : > > +---+ > | EXTIF="eth0" | > | INTNET1="192.168.0.0/24" | > | INTNET2="192.168.1.0/24"

RE: multiple outbound NAT

2015-01-08 Thread Bonno Bloksma
Hi Igor, >> [...] >> Due to several reasons I now have to use more than 1 outbound ip address to >> make clear from which internal segment the traffic is coming from. >> So traffic coming from 172.16.20.0/24 needs to use $WORLD_IP1 >> And traffic coming from 172.16.22.0/24 needs to use $WORLD_IP2

RE: multiple outbound NAT

2015-01-08 Thread Bonno Bloksma
Hi Paul, >> At one place I have a Debian wheezy machine that acts as router / firewall >> using iptables and default routing. >> I used to have just 1 ip number on the uplink interface. And a simple >> $IPTABLES --table nat -A POSTROUTING -o $WORLD_IF -j MASQUERADE line >> in my firewall scri

Re: multiple outbound NAT

2015-01-08 Thread Paul van der Vlis
Hi Bonno, Op 08-01-15 om 07:57 schreef Bonno Bloksma: > Hi, > > At one place I have a Debian wheezy machine that acts as router / firewall > using iptables and default routing. > I used to have just 1 ip number on the uplink interface. And a simple > $IPTABLES --table nat -A POSTROUTING -o $W