Hello Rishi,
Debarshi 'Rishi' Ray wrote:
I need machines on the 192.168.0.x network to be able to access the proxy 172.16.16.2 on the 172.16.16.x network. The router is 172.16.16.144. I have set 192.168.0.144 as the gateway on the 192.168.0.x machines. The machines on the 192.168.0.x network can ping each other, can ping 172.16.16.144, but not any other machine on 172.16.16.x. It seems that the outward packets are getting routed but they are lost on the way back to the 192.168.0.x network.
What is the gateway for the machines in the 172.16.16.x network ?.
What would be the exact 'route' command to fix this. I would like to avoid the iptables/ipchains and the NAT way of setting this up.
May be the answer to your problems lies in adding a static route on the "gateway" machine to the internet.
use : route add net 192.168.0.0/255.255.255.0 gw 172.16.16.144 eth0( or eth1 depending on the internal interface of the gateway)
This will make sure that any packets destined for the network 192.168.0.0 ( which is behind the router) is sent by the gateway to the router and not to the internet.
Richard