Re: snat to multiple source ip

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



/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.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux