multiple mapping

Jose Maria Lopez jkerouac at
Wed Sep 1 19:53:51 CEST 2004

El mié, 01 de 09 de 2004 a las 09:59, Tomek Macioszek escribió:
> Hi
> I have my FIREWALL BOX with address (eth0) and local address
> Now I have SNAT:
> iptables -t nat -A POSTROUTING -s -o eth1 -j SNAT --to
> I would like to make SNAT with i.e two external address.
> iptables -t nat -A POSTROUTING -s -o eth1 -j SNAT --to
> iptables -t nat -A POSTROUTING -s -o eth1 -j SNAT --to It is good solution? Should I make alias for eth0 with address

Yes, it's a good solution, and you can use --to more than once in the
same rule. Check iptables -j SNAT --help.
You should have an alias for the IP if you need routing through the IP,
not only for the SNAT.

> Thanks for help and sorry for my English.
> Best regards
> T.  
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac at
bgSEC Seguridad y Consultoria de Sistemas Informaticos

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"

More information about the netfilter mailing list