|
I am not really sure what the masq does different
but I only can assume it will look to see what you current IP address is first
and then SNAT with that. This can take more time/processes if you have a
lot of traffic and is needless if your internet IP address never changes.
To use the SNAT rule just replace the -j MASQUERADE with -j SNAT --to-source
$EXT_IP
Also looking at your command if you only want one
IP address you don't need to specify the mask just the IP address. Also if
you change it to -s 192.168.0.0/24 it will allow any source address from
192.168.0.x.
iptables -t nat -A POSTROUTING -s
192.168.0.2/255.255.255.255 -o eth0 -j MASQUERADE"
|
- -j MASQUERADE Markus Sj�str�m
- Re: -j MASQUERADE Ramin Alidousti
- RE: -j MASQUERADE Aldo S. Lagana
- RE: -j MASQUERADE Joe Patterson
- -j MASQUERADE Chris Hoeschen
- -j MASQUERADE Markus Sj�str�m
