Re: limiting conn-curs per-ip using x-forwarded-for

2015-03-24 Thread Klavs Klavsen
Can I perhaps do something like: tcp-request content track-sc2 hdr(X-Forwarded-For) acl conn_limit_hit sc2_conn_cur gt 2 ? Klavs Klavsen wrote on 03/24/2015 01:11 PM: Hi, We would like to limit how many connections a given IP can send to our backend. Our setup is like this: haproxy -

Re: OCSP stappling full support

2015-03-24 Thread Jeff Mitchell
No, Ha just replied with that same message to a ton of different threads on the mailing list. On Tue, Mar 24, 2015 at 6:10 AM, Pierre Ozoux pie...@ozoux.net wrote: Hi! I don't understand, do you mean that HAProxy OCSPStappling is easier now? Can you point to the documentation? Thanks,

Re: limiting conn-curs per-ip using x-forwarded-for

2015-03-24 Thread Jarno Huuskonen
Hi, On Tue, Mar 24, Klavs Klavsen wrote: #create a stick-table of 30 IPs for storing active IPs, 5 minute timeout stick-table type ip size 30 expire 5m store gpc0 #populate the table with the X-Forwarded-For header stick store-request hdr(X-Forwarded-For) You've created type ip stick table,

RE: How can i get haproxy reload its configuration

2015-03-24 Thread jeff saremi
Subject: Re: How can i get haproxy reload its configuration From: Vincent Bernat Date: 2015-03-24 12:07:34 Message-ID: 87619q61kp.fsf () zoro ! exoscale ! ch ❦ 24 mars 2015 07:45 -0400, jeff saremi  : #!/bin/sh pidfile=/data/haproxy.pidhaproxy -db \ -f /haproxy-1.5.8/haproxy.cfg

Re: limiting conn-curs per-ip using x-forwarded-for

2015-03-24 Thread Klavs Klavsen
hmm. it says: : 'stick' ignored because frontend 'nocache' has no backend capability. it seems it has to be on the backend.. When set on the backend, I get an entry in the list: # table: kk.dk-ds-backend, type: ip, size:1024, used:1 0x14b25c8: key=10.27.174.10 use=0 exp=296637 server_id=0

Re: limiting conn-curs per-ip using x-forwarded-for

2015-03-24 Thread Klavs Klavsen
I tried acl allowed sc2_conn_cur lt 2 block unless allowed it blocked every access :( Klavs Klavsen wrote on 03/24/2015 01:19 PM: Can I perhaps do something like: tcp-request content track-sc2 hdr(X-Forwarded-For) acl conn_limit_hit sc2_conn_cur gt 2 ? Klavs Klavsen wrote on 03/24/2015

Re: limiting conn-curs per-ip using x-forwarded-for

2015-03-24 Thread Klavs Klavsen
Tried converting it to type: string.. but its always empty :( # table: nocache, type: string, size:1024, used:0 # table: nocache, type: ip, size:30, used:0 The frontend config is: mode http acl allowed sc2_conn_cur lt 2 balance roundrobin default_backend ds-backend option httplog

limiting conn-curs per-ip using x-forwarded-for

2015-03-24 Thread Klavs Klavsen
Hi, We would like to limit how many connections a given IP can send to our backend. Our setup is like this: haproxy - varnish - haproxy - webservers and we'd like to have the frontend behind varnish (we call it nocache :) limit concurrent connections any IP can have.. (to 1 or 2 is the

Re: OCSP stappling full support

2015-03-24 Thread Pierre Ozoux
Hi! I don't understand, do you mean that HAProxy OCSPStappling is easier now? Can you point to the documentation? Thanks, Pierre Written with a mobile device, sorry for typos.. On 23 mars 2015, at 22:36, Ha Quan Le nlp...@shaw.ca wrote: Thank you for support, we have fixed our issues.

Re: How can i get haproxy reload its configuration

2015-03-24 Thread Vincent Bernat
❦ 24 mars 2015 07:45 -0400, jeff saremi jeffsar...@hotmail.com : #!/bin/sh pidfile=/data/haproxy.pidhaproxy -db \ -f /haproxy-1.5.8/haproxy.cfg -p $pidfile \ -sf $(cat $pidfile) The shell does variable substitution first, then execute the line. Hence, $pidfile is expanded to , not

How can i get haproxy reload its configuration

2015-03-24 Thread jeff saremi
I posted another question on this which i got no responses for: http://marc.info/?l=haproxym=142670306228452w=2 Is there anything i am doing wrong? or this thing never worked? I'm sure others have gone though this too. I'd appreciate any hints. thanks Jeff #!/bin/sh

250 euros offerts pour parier sur le GNT à Marseille

2015-03-24 Thread ZEturf
Title: Grand National du Trot - Marseille Borely Si vous ne voyez pas correctement ce message, visualisez notre version en ligne. Pour tre sr de recevoir tous nos emails, ajoutez newslet...@email.zeturf.com votre carnet dadresses Pour ne plus recevoir

Re: timeout values for redis?

2015-03-24 Thread Nathan Williams
i should probably add... setting all members to backups means of course that only the first server to pass the check will actually receive traffic (unless you're using option allbackups). this works perfectly for us, but may not work for you depending on your use-case. On Tue, Mar 24, 2015 at

RE: Retrying a request on other servers

2015-03-24 Thread Lukas Tribus
Is this a feature of HaProxy? and if so what is the corresponding option to enable it. Basically, i want Harpoxy to resend the request which as already received a 503 from one server, to another server in the same backend. Thats not supported, no. Lukas

Re: HAProxy signal queue not working correctly

2015-03-24 Thread Ha Quan Le
Thanks, I sent request previously to you but I have done it. Ha. - Original Message - From: Alan Fitton alan.fit...@ig.com To: Willy Tarreau w...@1wt.eu Cc: haproxy@formilux.org Sent: Tuesday, March 24, 2015 2:01:59 PM Subject: RE: HAProxy signal queue not working correctly Hi,

Re: How can i get haproxy reload its configuration

2015-03-24 Thread Ha Quan Le
Thanks, I sent request previously to you but I have done it. Ha. - Original Message - From: jeff saremi jeffsar...@hotmail.com To: haproxy@formilux.org Sent: Tuesday, March 24, 2015 3:22:09 PM Subject: RE: How can i get haproxy reload its configuration From:

Re: limiting conn-curs per-ip using x-forwarded-for

2015-03-24 Thread Ha Quan Le
Thanks, I sent request previously to you but I have done it. Ha. - Original Message - From: Klavs Klavsen k...@vsen.dk To: Mark S. mark.staudin...@nyi.net, haproxy@formilux.org Sent: Tuesday, March 24, 2015 10:56:03 AM Subject: Re: limiting conn-curs per-ip using x-forwarded-for

Re: timeout values for redis?

2015-03-24 Thread Ha Quan Le
Thanks, I sent request previously to you but I have done it. Ha. - Original Message - From: Jim Gronowski jgronow...@ditronics.com To: haproxy@formilux.org haproxy@formilux.org Sent: Tuesday, March 24, 2015 1:25:33 PM Subject: timeout values for redis? Does anyone have any

Re: How can i get haproxy reload its configuration

2015-03-24 Thread Andy Walker
Ha, For my sanity, and probably the sanity of hundreds of others, could you please stop doing whatever it is you are doing with your email client? This mailing list is invaluable to me, but this extra nonsensical activity is causing me to reconsider being a subscriber. Thanks, Andy On Mar 24,

Re: How can i get haproxy reload its configuration

2015-03-24 Thread Ha Quan Le
Thanks, I sent request previously to you but I have done it. Ha. - Original Message - From: jeff saremi jeffsar...@hotmail.com To: haproxy@formilux.org Sent: Tuesday, March 24, 2015 8:52:20 AM Subject: RE: How can i get haproxy reload its configuration Subject: Re: How can i get

Re: limiting conn-curs per-ip using x-forwarded-for

2015-03-24 Thread Ha Quan Le
Thanks, I sent request previously to you but I have done it. Ha. - Original Message - From: Jarno Huuskonen jarno.huusko...@uef.fi To: Klavs Klavsen k...@vsen.dk Cc: haproxy@formilux.org Sent: Tuesday, March 24, 2015 9:23:04 AM Subject: Re: limiting conn-curs per-ip using

Re: limiting conn-curs per-ip using x-forwarded-for

2015-03-24 Thread Ha Quan Le
Thanks, I sent request previously to you but I have done it. Ha. - Original Message - From: Jarno Huuskonen jarno.huusko...@uef.fi To: Klavs Klavsen k...@vsen.dk Cc: haproxy@formilux.org Sent: Tuesday, March 24, 2015 12:58:21 PM Subject: Re: limiting conn-curs per-ip using

Re: using backend node details in acls/response manipulation

2015-03-24 Thread Ha Quan Le
Thanks, I sent request previously to you but I have done it. Ha. - Original Message - From: Martin Nikolov martin.martinniko...@gmail.com To: haproxy@formilux.org Sent: Tuesday, March 24, 2015 3:36:36 PM Subject: using backend node details in acls/response manipulation Hi guys,

Re: Retrying a request on other servers

2015-03-24 Thread Ha Quan Le
Thanks, I sent request previously to you but I have done it. Ha. - Original Message - From: jeff saremi jeffsar...@hotmail.com To: haproxy@formilux.org Sent: Tuesday, March 24, 2015 4:12:32 PM Subject: Retrying a request on other servers Is this a feature of HaProxy? and if so

Re: limiting conn-curs per-ip using x-forwarded-for

2015-03-24 Thread Klavs Klavsen
Mark S. wrote on 03/24/2015 03:36 PM: Hi Klavs, Try using this in the backend section for the track-sc2 statement to use the previous instance of the Forwarded-For header. I have a version of this working in a similar fashion, but I am using a stick-table type binary instead of string - it

timeout values for redis?

2015-03-24 Thread Jim Gronowski
Does anyone have any feedback on sane timeout values for load balancing redis? The testing config I was using had 'timeout client 5' and I was getting consistent client disconnects in the logs. I increased it to two minutes and things have improved significantly, though I do see client

RE: How can i get haproxy reload its configuration

2015-03-24 Thread jeff saremi
From: jeffsar...@hotmail.com To: haproxy@formilux.org Subject: RE: How can i get haproxy reload its configuration Date: Tue, 24 Mar 2015 08:52:20 -0400 Subject: Re: How can i get haproxy reload its configuration From: Vincent Bernat Date: 2015-03-24 12:07:34 Message-ID: 87619q61kp.fsf () zoro

using backend node details in acls/response manipulation

2015-03-24 Thread Martin Nikolov
Hi guys, I'm wondering if it is possible to use things like selected backend node's ip, name or port as variables. My goal is to set a header in the http response with the selected backend's details to a certain set of source ip addresses (hence the acl, which is the easy part). I searched in the

Retrying a request on other servers

2015-03-24 Thread jeff saremi
Is this a feature of HaProxy? and if so what is the corresponding option to enable it. Basically, i want Harpoxy to resend the request which as already received a 503 from one server, to another server in the same backend. And i'd like to control how many tries to do. I looked at that options:

RE: HAProxy signal queue not working correctly

2015-03-24 Thread Alan Fitton
Hi, I've been trying out this logging, and a few variations of my own, on one of the RHEL5 (2.6.18-371.9.1.el5) systems that was exhibiting the problem more frequently. I am seeing what you saw, signals queued and processed without any issue.. It's strange, I can't figure out why the problem