Re: haproxy configuration to use forwardfor with websockets

2013-05-13 Thread Peter Saitz
if this issue is still present in the latest version of IE, I think I last tested it with IE8) On Sun, May 12, 2013 at 11:34 PM, Baptiste bed...@gmail.com wrote: Hi, My answers inline. On Sun, May 12, 2013 at 11:25 PM, Peter Saitz peter.sa...@gmail.com wrote: 1. For http, I should set

Re: haproxy configuration to use forwardfor with websockets

2013-05-13 Thread Peter Saitz
or source IP persistence, don't make any difference between browsers. Baptiste On Mon, May 13, 2013 at 8:41 AM, Peter Saitz peter.sa...@gmail.com wrote: 3. is there a way for haproxy to detect this scenario? Or how would I create special block of options/rules for such clients in haproxy

Re: haproxy configuration to use forwardfor with websockets

2013-05-12 Thread Peter Saitz
websockets? On Sun, May 12, 2013 at 5:59 AM, Baptiste bed...@gmail.com wrote: On Sat, May 11, 2013 at 10:47 PM, Peter Saitz peter.sa...@gmail.com wrote: A side question: all traffic is directed to B server (second server in configuration), the BAYEUX_BROWSER cookie is attached but it is always

Re: haproxy configuration to use forwardfor with websockets

2013-05-12 Thread Peter Saitz
3. If cookie is not accepted by client's browser, how can I ensure that all those clients are redirected to a single server? On Sun, May 12, 2013 at 2:21 PM, Peter Saitz peter.sa...@gmail.com wrote: I see, hmm, reason why I went this way originally was to ensure stickiness of single browser

Re: haproxy configuration to use forwardfor with websockets

2013-05-11 Thread Peter Saitz
One more question if I may: The haproxy.cfg file I attached, if you examine it, does options there make haproxy attach x-forwarded-for header to the http upgrade message? On Fri, May 10, 2013 at 10:06 PM, Peter Saitz peter.sa...@gmail.com wrote: Thank you guys, I think you pretty much

Re: haproxy configuration to use forwardfor with websockets

2013-05-11 Thread Peter Saitz
:43 PM, Baptiste bed...@gmail.com wrote: Hi Peter, At first sight, I can't see any reason why HAProxy would not insert the X-Forwarded-For header. Baptiste On Sat, May 11, 2013 at 7:26 PM, Peter Saitz peter.sa...@gmail.com wrote: One more question if I may: The haproxy.cfg file I

Fwd: haproxy configuration to use forwardfor with websockets

2013-05-10 Thread Peter Saitz
I am having problem where my app server is not able to retrieve X-FORWARDED-FOR being behind haproxy and using websockets. It works when websockets are not used, only plain http. The haproxy cfg is pretty simple, but I guess there is a problem I do not see in the config file. I am attaching my

Re: haproxy configuration to use forwardfor with websockets

2013-05-10 Thread Peter Saitz
Thank you guys, I think you pretty much explained and cover it to such depth that it is quite clear to me now. I use haproxy as a load balancer, not sure it I want it to be a transparent proxy. I will try to capture and retain ip upon the upgrade/handshake request. On Fri, May 10, 2013 at 2:14