Re: ForwardFor Option Not Working?

2009-05-18 Thread Willy Tarreau
Hi Michael,

On Mon, May 18, 2009 at 04:21:14PM +, Michael Tinnion wrote:
> 
> Hi,
> 
>  
> 
> I've very limited experience with HAProxy and I'm trying to get the 
> ForwardFor option to work but with no joy.
> 
> 
> I've set the following in my 'listen' section
> 
>  
> 
>  option httpclose
>  option forwardfor
 
indeed, that's the correct way to do it.

> and I have set the following in my tomcat (hosted by JBoss) configuration:
> 
>  
> 
>  maxKeepAliveRequests="1"
> 
>  
> 
> According to everything I have read this should make HAProxy add the 
> X-Forwarded-For header to the requests. Unfortunately I am still not seeing 
> this and the client IP address in the request has been set to that of the 
> load balancer.

Well, since almost everyone is using it, I don't really believe it does
not work. Are you sure you have "mode http" in your "listen" section ?
Also, how are you checking that the header is correctly added ? Maybe
you just mis-wrote its name where you check it ?

Regards,
Willy




ForwardFor Option Not Working?

2009-05-18 Thread Michael Tinnion

Hi,

 

I've very limited experience with HAProxy and I'm trying to get the ForwardFor 
option to work but with no joy.


I've set the following in my 'listen' section

 

 option httpclose
 option forwardfor
 
and I have set the following in my tomcat (hosted by JBoss) configuration:

 

 maxKeepAliveRequests="1"

 

According to everything I have read this should make HAProxy add the 
X-Forwarded-For header to the requests. Unfortunately I am still not seeing 
this and the client IP address in the request has been set to that of the load 
balancer.

 

I've tried this with haproxy versions: 1.3.17 and 1.3.15

 

Thanks in advance for any help and apologies for any important missing data!
Mike

_
View your Twitter and Flickr updates from one place – Learn more!
http://clk.atdmt.com/UKM/go/137984870/direct/01/