Re: [ANNOUNCE] experimental spam filtering

2016-09-27 Thread Willy Tarreau
Hi Tim, On Wed, Sep 28, 2016 at 01:51:36AM +0200, Tim Düsterhus wrote: > Hi > > On 22.09.2016 17:41, Willy Tarreau wrote: > > For now it only adds the "x-bogosity" header to the e-mail and still > > delivers it so that I can monitor the activity, but the purpose is to > > very quickly switch to d

Re: [ANNOUNCE] experimental spam filtering

2016-09-27 Thread Tim Düsterhus
Hi On 22.09.2016 17:41, Willy Tarreau wrote: For now it only adds the "x-bogosity" header to the e-mail and still delivers it so that I can monitor the activity, but the purpose is to very quickly switch to dropping those marked as spam (which are the majority of those people complain about).

Re: mode tcp and http type acls and keepalive

2016-09-27 Thread David Birdsong
I managed to disable keepalive properly and now I see the problem completely resolve itself. Is there some way to use mixed-content frontends w/ a previously opened connection and still detect HTTP (the default HTTP acl)? On Mon, Sep 26, 2016 at 11:10 AM David Birdsong wrote: > I have a fronten

[Patch] BUILD: Make use of accept4() on OpenBSD.

2016-09-27 Thread Daniel Jakots
Hi, Here's a diff to make use of accept4() on OpenBSD. I just committed it on OpenBSD [0] so it'd be nice to see it being committed upstream. The patch is attached. I am not subscribed to the list so please keep me in Cc. [0]: https://marc.info/?l=openbsd-ports-cvs&m=147499593424771&w=2 Cheers,

Rate limiting using HAProxy

2016-09-27 Thread Samrat Roy
Hello Sir, I am trying to implement rate limiting feature using HAroxy. My requirement is to do rate limiting using a custom header . I have created the below config file. I have configured 40 request are allowed in 10 sec and anything above 40 should give 429 error. But I am facing one problem

Re: status=-1 in log file

2016-09-27 Thread Dave Blakey
If the request was abarted before a complete response could be received, so a timeout was hit, something like that. On Tue, Sep 27, 2016 at 2:18 PM, Jonathan Dulize wrote: > Hi everybody, > > In my logs files of happroxy access sometimes i have this status code for > the http return code : statu

status=-1 in log file

2016-09-27 Thread Jonathan Dulize
Hi everybody, In my logs files of happroxy access sometimes i have this status code for the http return code : status=-1 What does it mean? An idea? How can i do? Thanks. Jonathan DULIZE Solution Engineer E-Mail : jdul...@premaccess.com Mobile : +41 78 720 38 76 Siège social Premaccess SA Ro

Re: redirect with variables

2016-09-27 Thread Aristedes Maniatis
On 27/09/2016 6:10pm, Aristedes Maniatis wrote: > I'd like to redirect subdomains in a generic way like this: > > acme.example.com -> acme.example2.com > > > I tried this: > > redirect prefix http://%[hdr(host),field(1,'.')].example2.com code 301 unless > { hdr_end(host) -i .example2.com } >

redirect with variables

2016-09-27 Thread Aristedes Maniatis
I'd like to redirect subdomains in a generic way like this: acme.example.com -> acme.example2.com I tried this: redirect prefix http://%[hdr(host),field(1,'.')].example2.com code 301 unless { hdr_end(host) -i .example2.com } but haproxy 1.6 doesn't like the %[hdr()] notation in this location