[Gllug] iptables SNAT ranges

- Tethys tethys at gmail.com
Fri Sep 21 10:51:52 UTC 2007


On 9/21/07, Alain Williams <addw at phcomp.co.uk> wrote:

> So, if eth0 is your outgoing interface, it looks as if you can do:
>
>         iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source 21.21.21.1-21.21.21.4 --to-source 21.21.21.6-21.21.21.10
>
> I've not tried this.

Yes, that's what I thought, but iptables complains that multiple
--to-source arguments aren't supported.

Tet

-- 
Perl is like vise grips. You can do anything with it but it is the
wrong tool for every job. -- Bruce Eckel
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list