Hello all,

    We have 2 networks, say A and B.  Let A be 192.168.1.0/255.255.255.0
and
B 192.168.2.0/255.255.255.0.   B is under my control and A is not.  In
fact, it will be very difficult to to make some changes in any settings
(like route, etc) in A.

    These 2 network are separated by some 10 KMs and we have a leased
line between them.  I just set the router (cisco) on my
side(B)(192.168.2.254) as the gateway for the network A.  Similarly,
they also set the router on their side as the gateway for our network.
Now, we can access any machine on their side and vice versa.

    In network A, they are running a squid proxy, say at 192.168.1.1
port 3128.  I want people on my side to use that proxy server.  This is
because they have a internet leased line with a very high bandwidth and
we don't.  If I set "proxy settings" in my browser, it works fine.  But
I don't want to go to every machine in my network and do this in every
browser.  This is because, if the leased line gets affected, I will have
to do some alternative arrangements.

    I don't think I can do this using dhcp. Can I ?

    Can I use iptables to forward only those packets on port 80 to that
proxy server on port 3128 ?  If so, how ?   This is what I thought of
doing.  Please advice me where I am wrong :

I tell everyone (through dhcp) that 192.168.2.1 is the default gateway
(it has only one interface).  For 192.168.2.1, the default gateway is
192.168.2.254.  In 192.168.2.1 port forward everything coming in port 80
to the proxy on the other side on port 3128.  And I just forward all
other packets (probably to the other network) to the other side.

    Is this possible ?  If so, could you please tell me what all I sould
do.  If not, is there any other way to do this ?  I don't want to change
any network settings because it will be very difficult to make people on
the other side do the corresponding changes in their configurations.

    Kindly give your advice.

Thanks,
Prasanna David

ps.  I am a very lazy person

--
----------------------------<G Prasanna
David>----------------------------
AU-KBC Research Centre,    [EMAIL PROTECTED]
MIT Campus of Anna University,   [EMAIL PROTECTED]
Chromepet, Chennai - 600 044,   [EMAIL PROTECTED]
Tamil Nadu, INDIA.
Ph : 91-44-223 2711, 223 4885;   Fax : 91-44-223 1034
--




_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

Reply via email to