There are two linux boxes on my network. 192.168.168.51 is a router and has a vpn-connection, 192.168.168.50 is a guest
this is done on 192.168.168.51:
echo 1 > /proc/sus/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.168.50 -o ppp0 -j MASQUERADE
iptables -t mangle -A POSTROUTING -s 192.168.168.50 -o ppp0 -j TTL --ttl-inc 1
this on 192.168.168.50:
ip route add default via 192.168.168.51
ping somehost from 192.168.168.51:
64 bytes from somehost: icmp_seq=1 ttl=61 time=4.33 ms
and ping somehost form 192.168.168.50:
64 bytes from somehost: icmp_seq=1 ttl=60 time=5.59 ms
So, ttls differ, but should be equal.
Yes, I am trying to hide from my ISP, though it is legal for my case, don't want them to spot me. Please help.
kernels are 2.6.23 for 192.168.168.51 and 22.214.171.124 for 192.168.168.50