[root@localhost ~]# echo "1" >/proc/sys/net/ipv4/ip_forward
[root@localhost ~]# iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
[root@localhost ~]# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=26 ttl=128 time=0.201 ms
64 bytes from 192.168.1.2: icmp_seq=27 ttl=128 time=0.165 ms
64 bytes from 192.168.1.2: icmp_seq=28 ttl=128 time=0.176 ms
64 bytes from 192.168.1.2: icmp_seq=29 ttl=128 time=0.191 ms
64 bytes from 192.168.1.2: icmp_seq=30 ttl=128 time=0.197 ms
64 bytes from 192.168.1.2: icmp_seq=31 ttl=128 time=0.170 ms
64 bytes from 192.168.1.2: icmp_seq=32 ttl=128 time=0.204 ms
64 bytes from 192.168.1.2: icmp_seq=33 ttl=128 time=0.197 ms
64 bytes from 192.168.1.2: icmp_seq=34 ttl=128 time=0.173 ms
64 bytes from 192.168.1.2: icmp_seq=35 ttl=128 time=0.186 ms
64 bytes from 192.168.1.2: icmp_seq=36 ttl=128 time=0.191 ms