Re: router NAT problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux