Article delegate-en/3516 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] Multihomed HTTP proxy and SRCIF
03 Oct 2006 17:13:02 GMT "Igor Lidin" <pxqgqbdyi-c2jtqbemqbvr.ml@ml.delegate.org>
Golden Telecom


Hi,

I'm trying to setup multi-IP HTTP proxy on a machine which has multiple
network interfaces.

My goal is to setup multiple http proxies on multihomed server to allow
proxy clients to present different IPs to remove http servers.

I've tried any variants of SRCIF, pointing delegated to IP of secondary
interface:

INETD="10.0.0.2:3129 - - - - - SERVER=http SRCIF=10.0.0.2"
or
INETD="10.0.0.2:3129 - - - - - SERVER=http SRCIF=10.0.0.2:*"
or
INETD="10.0.0.2:3129 - - - - - SERVER=http SRCIF=10.0.0.2:*:http"

but it doesn't help - delegated makes requests to remote http servers using
first network interface (for example, 10.0.0.1), but NOT specified in SRCIF:

10/03 20:46:53.38 [2295] 1+0: -- Fork(SequentialServer): 2292 -> 2295
10/03 20:46:53.38 [2295] 1+1: INETD PARAM[0] SRCIF=10.0.0.2
10/03 20:46:53.38 [2295] 1+1: INETD PARAM[1] SERVER=http
10/03 20:46:53.38 [2295] 1+1: REMITTABLE =
http,https/{80,443},ftp,http,https/{80,443},ftp
10/03 20:46:53.39 [2295] 1+1: (0) accepted [43]
-@[10.0.0.100]client.domain.com:4066 (0.007s)(1)
10/03 20:46:53.39 [2295] 1+1: IGNORE request: Keep-Alive: 300^M
10/03 20:46:53.39 [2295] 1+1: Proxy: host=client.domain.com; User-Agent:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20060918
Firefox/2.0
10/03 20:46:53.39 [2295] 1+1: HCKA:[0] keep-alive; host=client.domain.com;
(User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1)
Gecko/20060
10/03 20:46:53.39 [2295] 1+1: REQUEST - GET
http://dl14cg.rapidshare.de/cgi-bin/uploadjs.cgi?uploadid=325917160231166819
&r=44 HTTP/1.1^M
10/03 20:46:53.39 [2295] 1+1: PATH>
http://dl14cg.rapidshare.de:80!10.0.0.2.domain.com:3129!client.domain.com:40
66!anonymous@client.domain.com;1159894013
10/03 20:46:53.39 [2295] 1+1: REQUEST = [http://dl14cg.rapidshare.de:80/]
GET /cgi-bin/uploadjs.cgi?uploadid=325917160231166819&r=44 HTTP/1.1^M
10/03 20:46:53.44 [2295] 1+1: ConnectToServer connected [24]
{130.117.156.29:80 <- 10.0.0.1:57149} [0.053s]
10/03 20:46:53.44 [2295] 1+1: willSTLS_SV: ServerFlags=10

Note that even if SRCIF = 10.0.0.2, delegated uses 10.0.0.1 (primary
interface) to connect to remote web server.

Real world IPs and CNAMEs are changed.

Thank you for your help!


  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V