routing problems

routing problems

Post by Gerrit Schimp » Wed, 22 Feb 2006 22:35:35



Hello people,

i want all my connections from 1 of my windows clients to 1 public ip , lets say 1.2.3.4
gets over my proxy on my server in my lan.

my client 192.168.3.3
my server 192.168.3.50

all connections from client to the public address 1.2.3.4 should go to my proxy on my
server, the proxy should connect to 1.2.3.4 on internet then.

My idea was to add a routing on my client to use local net instead of the default gw, and
i added eth0:0 on my server to listen on 1.2.3.4.

So far its possible to connect my proxy from the client when sending a request to 1.2.3.4,
but when the proxy on server want to connect 1.2.3.4 from the internet, he is responsing
himself instead of using his default gw.

how can i add a routing on my server to make him able to use default gw when tryining to
connect 1.2.3.4 instead.

kindly regards
Gerrit

 
 
 

routing problems

Post by Douglas Mayn » Thu, 23 Feb 2006 01:04:06



> Hello people,

> i want all my connections from 1 of my windows clients to 1 public ip , lets say 1.2.3.4
> gets over my proxy on my server in my lan.

> my client 192.168.3.3
> my server 192.168.3.50

> all connections from client to the public address 1.2.3.4 should go to my
> proxy on my server, the proxy should connect to 1.2.3.4 on internet then.

> My idea was to add a routing on my client to use local net instead of the
> default gw, and i added eth0:0 on my server to listen on 1.2.3.4.

Probably, all clients should use default gateway.  You are asking for
trouble with exceptions at the client level.

Quote:

> So far its possible to connect my proxy from the client when sending a
> request to 1.2.3.4, but when the proxy on server want to connect 1.2.3.4
> from the internet, he is responsing himself instead of using his default
> gw.

> how can i add a routing on my server to make him able to use default gw
> when tryining to connect 1.2.3.4 instead.

> kindly regards
> Gerrit

Note: comment inline.

This sounds like a network design issue.  Draw a picture, and trace each
path.

This is the definitive reference for iptables, which allows for
prerouting and postrouting of network packets.

http://www.netfilter.org/documentation/HOWTO//packet-filtering-HOWTO....

--
Douglas Mayne

 
 
 

routing problems

Post by nickallent.. » Thu, 23 Feb 2006 06:33:19


if you mean a web proxy e.g. squid, then you don't need to change the
routing on the client, but configure the client's browser instead.

in konqueror this is under Settings, Configure Konqueror, Proxy

hope that's what you meant.

N.