[CentOS] router NAT problem
Robert Spangler
mlists at zoominternet.net
Thu Jun 11 21:35:48 UTC 2009
On Thursday 11 June 2009 14:14, Mintairov Mikhail wrote:
> iptables -F
> iptables -F -t nat
> iptables -P FORWARD ACCEPT
> iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.127.0/24 -j SNAT
> --to-source [my internet ip]
I know how some like to do the SNAT thing, but a simple rule will get this
done also
iptables -t nat -A POSTROUTE -o ppp0 -j MASQUERADE
As to your problem look at your rules with the following and ensure that the
SNAT rule is there
iptables -L -v -n | less -SCi
--
Regards
Robert
Linux User #296285
http://counter.li.org
More information about the CentOS
mailing list