Myatu
20-07-2010, 21:34
Originally Posted by Benygh
The alternative is to use this:
Code:
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source FA.IL.OV.ER
That line will cause all outgoing traffic to use the "FA.IL.OV.ER" IP. If this does not seem to be working for you, simply replace the "-A" in the above line with "-D" to remove it again. If it DOES work for you, then remember that a reboot will clear this information and you'll have to add it to a startup script (like /etc/rc.local) or /etc/network/interfaces (debian/ubuntu).