On Tue, 21 Feb 2006 14:35:35 +0100, Gerrit Schimpf wrote:
> 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.
>
> 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/documentati...ing-HOWTO.html
--
Douglas Mayne