[CentOS] router NAT problem

Thu Jun 11 21:35:48 UTC 2009
Robert Spangler <mlists at zoominternet.net>

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