From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Leblond Date: Sat, 14 Sep 2002 12:14:18 +0000 Subject: Re: [LARTC] iptable for multiple ip address Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Le jeu 12/09/2002 =E0 21:49, Jose Luis Domingo Lopez a =E9crit : =20 > iptables -t nat -A POSTROUTING --out-interface $WAN_IF \ > --jump SNAT --to-source $START_PUB_IP-$END_PUB_IP >=20 > The only limitation I see with this approach is that IP addresses must > be contiguous, but I think this is a typical scenario, because our ISP > tend to give addresses in blocks :) But you can put multiple --to-source so there's no limitation. -- Eric Leblond eric@regit.org _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/