----- Original Message -----
From: "Rolan Mallare" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 9:25 AM
Subject: Re: [plug] Routing


>
> Sir here are the info you needed.

ok got your problem.. its indeed a routing problem

according to your topology:

internet
^
|
v
[eth0:203.xxx.xxx.xxx]
PROXY server
[eth0:0 192.139.144.252]
^
|
v
[eth0:0 192.139.144.1]
GATEWAY server
[eth1:192.168.2.2]
^
|
v
client1 - 192.168.2.x
client2 - 192.168.2.y
client3 - 192.168.2.z

PROXY routing table
destination - gateway - netmask - interface
203.xxx.xxx.xxx - 0.0.0.0 - 255.255.255.xxx - eth0
192.139.144.0 - 0.0.0.0 - 255.255.255.0 - eth0:0
0.0.0.0 - 203.xxx.xxx.xxx - 0.0.0.0 - eth0

GATEWAY routing table
destination - gateway - netmask - interface
192.139.144.0  - 0.0.0.0 - 255.255.255.0 - eth0
192.168.2.0 - 0.0.0.0 - 255.255.255.0 - eth1
no default route

here is really what happened when one of your clientX ping your proxy
server.

1. from clientX ping (or other) packets reaches your proxy server because
the routing table from clientX to gateway server says so
2. upon receiving and replying ping packets from proxy server to clientX and
the destination address is 192.168.2.xxx, your proxy server consult its
routing table but found no match for that destination address, therefore it
will forward that destiantion ip adress of 192.168.2.xxx  to the *default
route* which is 203.xxx.xxx.xxx... that is why you dont have any replies or
properly deliver those packets from your proxy server.

to solve this problem, add a static route for network segment 192.168.2.0/24
at your proxy server pointing to 192.139.144.1 as gateway.

the command for this is at root user:

route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.139.144.1

and your proxy server routing table will look like this:

PROXY routing table
destination - gateway - netmask - interface
203.xxx.xxx.xxx - 0.0.0.0 - 255.255.255.xxx - eth0
192.168.2.0 - 192.139.144.1 - 255.255.255.0 - eth0:0
192.139.144.0 - 0.0.0.0 - 255.255.255.0 - eth0:0
0.0.0.0 - 203.xxx.xxx.xxx - 0.0.0.0 - eth0


happy learning,

fooler.


_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to