Setting a gateway tells the kernel where to send a packet destined for a
different network. You need one gateway entry for every network other
than what you decide as the localnetwork. In your case you have the
local network and then the big bad world outside. You need to have only
one gateway entry for your configuration.

Basically your routing table would have three entries.
1. For your internal interface
192.168.1.4       0.0.0.0         255.255.255.0   U     0      0       
0 eth0
2. For your external interface
202.54.xx.yy   0.0.0.0         255.255.255.240 U     0      0        0
eth1
3. Your default gateway for the router
0.0.0.0         202.54.xx.zz   0.0.0.0         UG    0      0        0
eth1


As for putting just your proxy on the net you dont need the first entry
just place entry 2 and 3 in your routing table and you are up and
running.

For startup put it in /etc/rc.d/rc.local (RedHat style) or
/etc/init.d/local (Debian style).



Mithun

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to