On 4/19/05, Balaji Palanisamy <balaji_p@xxxxxxxxxxxx> wrote:
Hi,
The description of your network is not clear
I need to connect to a machine through a particular gateway since
the machine will accept connection only if it is coming from that
gateways IP. I have two connections of that one is fast and I use that
regularly but remote server wont accept connection from that gateway.
why not ? are you doing a NAT with the gateway IP ? How else will the
server know you are accessing from the gateway IP?
I added route to xxx.com to use gateway 202.71.147.xxx
#route add -host xxx.com gw 202.71.147.xxx
SIOCADDRT: Network is unreachable
Does not work because your gateway IP must be in the same segment as your
host .
It is logical , think of it this way
|--------E
|----------D--------|
|-----------B--------|
A-------|
|-----------C--------|
|
|(Internet)
To go to D you specify that A should go through B.
If I specify that A can reach E through D , it will get confused as to how
to reach D first .
(that is what you are trying to do ) .
Even if you have specified that A should go through B to reach D , you will
not be able to
assign D as a gw on your host as it is not directly reachable from A.
Dont know about Win2k though .
Hope this helps
bye
Balaji
when the only tool you have is hammer
every problem looks like nail
Date: Tue, 19 Apr 2005 16:38:21 +0530
From: Anto Paul <antopaul@xxxxxxxxx>
Subject: [Ilugc] connect to an IP through a separate gateway
To: ILUGC <ilugc@xxxxxxxxxxxxx>
Message-ID: <8f1005a105041904086ae128dd@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1
Hi all,
I need to connect to a machine through a particular gateway since
the machine will accept connection only if it is coming from that
gateways IP. I have two connections of that one is fast and I use that
regularly but remote server wont accept connection from that gateway.
My IP address is 192.168.4.66 and usually use the gateway
192.168.4.16. But when connecting to site xxx.com I need to use
gateway 202.71.147.xxx. I already have this routing table.
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.4.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
0.0.0.0 192.168.4.16 0.0.0.0 UG 0 0 0
eth0
I added route to xxx.com to use gateway 202.71.147.xxx
#route add -host xxx.com gw 202.71.147.xxx
SIOCADDRT: Network is unreachable
What is wrong with this. I can visit the site through browser but cant
ping as it is blocking.
BTW. In win2k just setting the gateway to 202.71.147.xxx works.
I changed the original IP address and hostnames.
--
Anto Paul
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin@xxxxxxxxxxxx
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc