Thanks once again.
Now It is not working.
The setup:
Laptop with squid -eth0- 192.168.168.2
PC -eth0 - 192.168.168.1
Laptop -ppp0- 142.62.32.3
ISP - ppp0 address -142.62.32.19
Next - I gave command echo "1" > /proc/sys/net/ipv4/ip_forward
Then added default route in my home PC:
route add -net default eth0
With this set up I should be able to ping 142.62.32.19 - But I am not.
I can ping ppp0 interface 142.62.32.3 - implying that the default route created in the pc is ok.
I need not mention that I can ping the eth0 interfaces (from both ) of each other, and that I can browse internet from both the nodes - the possibility of network being down is not there.
Laptop kernel routing table:
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
142.62.32.19 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.168.0 0.0.0.0 255.255.255.252 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 lo
0.0.0.0 142.62.32.19 0.0.0.0 UG 0 0 0 ppp0
Code:
PC kernel routing table:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.168.0 0.0.0.0 255.255.255.252 U 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
Only possiblity - the ip forwarding is not working !!!
Am I missing out on something ? In the simplest of the configuration as above this should work.
Prabhat Soni