On 5/23/2014 6:30 AM, Mike Baroukh wrote: > > Hi. > > I'm using shorewall 4.4.11 (debian 6) on a host with only 1 interface. > This interface have a second IP with netmask 255.255.255.255. > > I try to use this second ip for outgoing traffic when destination port > is 80. > > I can't figure how to do this. > It seems than I should use "masq" file but it seems to be for system > with 2 distinct networks. > But is it possible to route local traffic through a specific IP ? > > With iptables, it should be something like > -t nat -A POSTROUTING -o eth0 -p tcp -dport 80 -j SNAT --to-source xxx
<interface> 0.0.0.0/0 <second IP> tcp 80 -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
