snat to multiple source ip
Marco Berizzi
pupilla at hotmail.com
Tue Sep 20 16:24:04 CEST 2005
/dev/rob0 wrote:
> On Tuesday 20 September 2005 07:39, Marco Berizzi wrote:
> the source IP is set by
> iproute2 in the routing tables.
Ok, I'm not clearly explained.
I'm using SNAT to change the source ip address because iproute2 set an
ip address that I don't like.
So, I have inserted the following line in my firewall script:
iptables -t nat -I POSTROUTING -s iproute2_chosen_ip --protocol tcp
-j SNAT --to i_want_this_first_ip --to i_want_this_second_ip
But everytime I connect to the internet always "i_want_this_first_ip" is
chosen to
do the SNAT.
More information about the netfilter
mailing list