Article delegate-en/3532 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]
[Reference:<_A3531@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Multihomed HTTP proxy and SRCIF
05 Oct 2006 19:27:27 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


Hi,

In message <_A3531@delegate-en.ML_> on 10/06/06(04:04:17) I wrote:
 |In message <_A3516@delegate-en.ML_> on 10/04/06(02:12:52)
 |you "Igor Lidin" <pxqgqbdyi-aipiirbl27tr.ml@ml.delegate.org> wrote:
 | |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"
 |
 |SRCIF seems not interpreted when it is used in INETD.  Instead, you can
 |use it in more usual way without INETD as follows:
 |
 |  -P10.0.0.2:3129 SERVER=http SRCIF=10.0.0.2

I found why SRCIF is disabled with INETD.  Simply it's not initialzed.
It can be fixed as the enclosed patch.  It will be applied to the next
release (9.2.5-pre12).  Thank you for your notice.

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller


*** 1001/src/delegated.c	Sat Sep 30 07:57:31 2006
--- src/delegated.c	Fri Oct  6 04:20:46 2006
***************
*** 2952,2957 ****
--- 2953,2961 ----
  
  	if( scannedGlobal && !rescanGlobal )
  		return;
+ 	if( rescanGlobal ){
+ 		scanEnv(Conn,P_SRCIF,scan_SRCIF);
+ 	}
  	rescanGlobal = 0;
  	scannedGlobal = 1;
  

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