Networking Forums

Networking Forums > Computer Networking > Linux Networking > routing problems

Reply
Thread Tools Display Modes

routing problems

 
 
Gerrit Schimpf
Guest
Posts: n/a

 
      02-21-2006, 01:35 PM
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
 
Reply With Quote
 
 
 
 
Douglas Mayne
Guest
Posts: n/a

 
      02-21-2006, 04:04 PM
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
 
Reply With Quote
 
nickallentbwa@gmail.com
Guest
Posts: n/a

 
      02-21-2006, 09:33 PM
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing problems Gregor Sändig Windows Networking 1 03-07-2006 02:25 PM
Routing problems Marco Lovadina Linux Networking 2 02-21-2005 08:05 PM
Routing problems Marco Lovadina Linux Networking 2 02-21-2005 05:58 PM
Routing problems pcfixer Linux Networking 11 09-03-2004 09:29 PM
routing problems Matthew Paterson Linux Networking 3 07-11-2003 10:58 AM



1 2 3 4 5 6 7 8 9 10 11