Re: [PATCH] Memory corruption building Proxy Protocol V2 header

2014-07-16 Thread Dave McCowan
Hi Willy, Yes, I changed my variable names after testing to clean up and failed. Is my obvious corrected patch the correct fix? Or should we clamp down on the use of global chunks being passed downstream? --Dave On Wed, Jul 16, 2014 at 4:16 PM, Willy Tarreau wrote: > Hi Dave, > > On Wed, Ju

Re: Operations this evening

2014-07-16 Thread Willy Tarreau
Operations are completed, everything is back to normal. For those who would be doing some filtering, the mail/web server's IP address changed from 88.191.124.161 to 195.154.117.161, but I'm sure nobody cares :-) For IPv6 we'll check later, it's been down for some time already. Willy

Re: Fwd: Error Logs in Haproxy

2014-07-16 Thread Cyril Bonté
Hi Peter, Le 16/07/2014 17:28, Peter M Souter a écrit : Yeah, I looked in the logs before and I couldn't find the errors. But either I didn't look hard enough or someone's changed the settings since I last looked: cat /var/log/capd/haproxy.log | grep 'has no server available!' | wc -l 46 But a

Re: Adding Serial Number to POST Requests

2014-07-16 Thread Baptiste
On Wed, Jul 16, 2014 at 7:04 PM, Jonathan Matthews wrote: > On 16 Jul 2014 16:56, "Zuoning Yin" wrote: >> >> We later also got the help from Willy. He provided us a configuration >> which solved our problem. To benefit other people, I just posted it here. > > I had meant to chime in on this thr

Re: Load balancing FTP with HAProxy behind a firewall

2014-07-16 Thread Baptiste
On Wed, Jul 16, 2014 at 6:34 PM, Dennis Jacobfeuerborn wrote: > On 16.07.2014 15:31, Nicolas Zedde wrote: >>> -Original Message- >>> From: Dennis Jacobfeuerborn [mailto:denni...@conversis.de] >>> Sent: Wednesday, July 16, 2014 1:22 PM >>> To: haproxy@formilux.org >>> Subject: Re: Load bala

Re: ACL ordering/processing

2014-07-16 Thread Pavlos Parissis
On 16/07/2014 08:31 πμ, Baptiste wrote: > On Tue, Jul 15, 2014 at 7:14 PM, Pavlos Parissis > wrote: >> On 15/07/2014 05:49 μμ, Baptiste wrote: >>> On Tue, Jul 15, 2014 at 12:40 AM, bjun...@gmail.com >>> wrote: Hi folks, I've a question regarding the ordering/processing of ACL

Re: [PATCH] Memory corruption building Proxy Protocol V2 header

2014-07-16 Thread Willy Tarreau
Hi Dave, On Wed, Jul 16, 2014 at 02:16:52PM -0400, Dave McCowan wrote: > Hi Willy, Emeric-- > A commit on 6/24 changed the way ssl_sock_get_remote_common_name() > works. > I agree with this refactoring, unfortunately both make_proxy_line_v2() > and the caller of make_proxy_line_v2() are us

Re: Conditionally disable TCP_NODELAY

2014-07-16 Thread Lukas Tribus
Hi Patrick, > It would be nice to be able to control the usage of TCP_NODELAY. Right > now it looks like haproxy immediately turns the flag on upon any > frontend or server connection. When doing bulk data transfers, this can > have a negative impact on performance. HAProxy uses MSG_MORE to con

Re: Binaries for HAProxy.

2014-07-16 Thread Kuldip Madnani
Thanks Ryan/Peter. I installed the required devel packages and the compilation went fine but i could see a message at the bottom(skipping incompatible /usr/lib/libcrypt.so when searching for -lcrypt) .Is it severe or can be ignored? gcc -g -o haproxy src/haproxy.o src/sessionhash.o src/base64.o

Operations this evening

2014-07-16 Thread Willy Tarreau
Hi all, a quick mail to tell you that due to an IP address change on the main server, the mailing list might be inoperant for a few minutes this evening (european time) and that the web site will be cut for the same time. So don't panic even if things don't go as we expect. I'll send another mail

RE: Using a WhiteList in HAProxy 1.5

2014-07-16 Thread JDzialo John
Thanks Baptiste and Neil. I do have multiple subnets I just posted one for the case. I agree if you have only one it’s easier to handle in an acl. Using deny unless worked perfectly! From: n...@iamafreeman.com [mailto:n...@iamafreeman.com] On Behalf Of Neil - HAProxy List Sent: Wednesday, J

[PATCH] Memory corruption building Proxy Protocol V2 header

2014-07-16 Thread Dave McCowan
Hi Willy, Emeric-- A commit on 6/24 changed the way ssl_sock_get_remote_common_name() works. I agree with this refactoring, unfortunately both make_proxy_line_v2() and the caller of make_proxy_line_v2() are using the global trash chunk as a workspace resulting in a memory overwrite. I'v

Conditionally disable TCP_NODELAY

2014-07-16 Thread Patrick Hemmer
It would be nice to be able to control the usage of TCP_NODELAY. Right now it looks like haproxy immediately turns the flag on upon any frontend or server connection. When doing bulk data transfers, this can have a negative impact on performance. However I do not think this should be a global optio

Re: Binaries for HAProxy.

2014-07-16 Thread Neil - HAProxy List
And lets not do too much to dampen any pressure to get haproxy 1.5 into rhel7 and ubuntu1404 Neil On 16 Jul 2014 16:12, "Ghislain" wrote: > > >> Just put http://nd-build-01.linux-appliance.net/repos/centos/ >> haproxy/haproy-centos-6x.repo under /etc/yum.repos.d/ >> and issue yum install haproxy

Re: Adding Serial Number to POST Requests

2014-07-16 Thread Jonathan Matthews
On 16 Jul 2014 16:56, "Zuoning Yin" wrote: > > We later also got the help from Willy. He provided us a configuration which solved our problem. To benefit other people, I just posted it here. I had meant to chime in on this thread earlier. What happens when your HAProxy layer loses state - be i

Re: Load balancing FTP with HAProxy behind a firewall

2014-07-16 Thread Dennis Jacobfeuerborn
On 16.07.2014 15:31, Nicolas Zedde wrote: >> -Original Message- >> From: Dennis Jacobfeuerborn [mailto:denni...@conversis.de] >> Sent: Wednesday, July 16, 2014 1:22 PM >> To: haproxy@formilux.org >> Subject: Re: Load balancing FTP with HAProxy behind a firewall >> >> Have you considered usi

Re: Using a WhiteList in HAProxy 1.5

2014-07-16 Thread Neil - HAProxy List
Hi If you only have one range and it does not change often then a acl file should be avoided. http-request deny unless src 123.123.123.123/123 If you have more than one range a acl should be used Only if you have many or they change often would a file suit. Is clearer imho Neil On 16 Jul 2014

Re: Using HAProxy to Control Client Cache

2014-07-16 Thread Baptiste
On Wed, Jul 16, 2014 at 6:11 PM, Baptiste wrote: > On Wed, Jul 16, 2014 at 5:56 PM, JDzialo John wrote: >> >> Hi Everyone, >> >> >> >> I am implementing a cache control policy on all our web servers and was >> curious if anyone ever uses haproxy to handle cache control. >> >> >> >> On IIS we are

Re: Using HAProxy to Control Client Cache

2014-07-16 Thread Baptiste
On Wed, Jul 16, 2014 at 5:56 PM, JDzialo John wrote: > > Hi Everyone, > > > > I am implementing a cache control policy on all our web servers and was > curious if anyone ever uses haproxy to handle cache control. > > > > On IIS we are using Etags, Last-Modified and Cache Control maxage to force

Re: Using a WhiteList in HAProxy 1.5

2014-07-16 Thread Baptiste
On Wed, Jul 16, 2014 at 5:45 PM, JDzialo John wrote: > > Hi Guys, > > > > I want to only allow certain internal company IP addresses to have access to > one of my web farms. I am using haproxy 1.5 on Debian 7. > > > > I am using a whitelist.lst file with the following contents... > > > >

Using HAProxy to Control Client Cache

2014-07-16 Thread JDzialo John
Hi Everyone, I am implementing a cache control policy on all our web servers and was curious if anyone ever uses haproxy to handle cache control. On IIS we are using Etags, Last-Modified and Cache Control maxage to force client browsers to check the etag hash. If the etag value has changed get

Re: Adding Serial Number to POST Requests

2014-07-16 Thread Zuoning Yin
We later also got the help from Willy. He provided us a configuration which solved our problem. To benefit other people, I just posted it here. Willy's response ### > I > actually asked this question in gmane and Baptiste also suggested that we > could do this in h

Using a WhiteList in HAProxy 1.5

2014-07-16 Thread JDzialo John
Hi Guys, I want to only allow certain internal company IP addresses to have access to one of my web farms. I am using haproxy 1.5 on Debian 7. I am using a whitelist.lst file with the following contents... 10.0.0.0/8 Here is my frontend configuration... fronte

Fwd: Error Logs in Haproxy

2014-07-16 Thread Peter M Souter
Yeah, I looked in the logs before and I couldn't find the errors. But either I didn't look hard enough or someone's changed the settings since I last looked: cat /var/log/capd/haproxy.log | grep 'has no server available!' | wc -l 46 But at least I can confirm I got the correct setup! :) On Wed,

Re: Binaries for HAProxy.

2014-07-16 Thread Ghislain
Just put http://nd-build-01.linux-appliance.net/repos/centos/haproxy/haproy-centos-6x.repo under /etc/yum.repos.d/ and issue yum install haproxy. of course you do trust the security of your entire server on this repo ? before doing that just be sure of what this implies :) there is no

Re: Error Logs in Haproxy

2014-07-16 Thread Baptiste
On Wed, Jul 16, 2014 at 4:22 PM, Peter M Souter wrote: > Hello All! > > I'm fairly new to Haproxy and I'm configurting it with puppet as a reverse > proxy for several web apps. > > An issue I'm running into right now is that we're not getting error logs in > a file, they're just sent to stdout lik

Re: Binaries for HAProxy.

2014-07-16 Thread Kobus Bensch
I just downloaded the standard source off haproxy website Kobus Bensch *Address:* *Phone:* *Email:*22 & 24 | Frederick Sanger Road | Guildford | Surrey | GU2 7YD 0207 871 3890 kobus.ben...@trustpayglobal.com On 16 July 2014 15:18, Thomas Heil wrote: > Hi, > > On 16.07.2014 16:14, Kobus Be

Re: Binaries for HAProxy.

2014-07-16 Thread Peter M Souter
> I was trying to compile HAProxy 1.5.2 with SSL support on my box but was facing below error.Am i missing some pre requisites.Could anybody help: Pre-reqs are: sudo yum -y install pcre-devel gcc make openssl-devel Taken from https://github.com/nmilford/rpm-haproxy On Wed, Jul 16, 2014 at 3:22

Re: Binaries for HAProxy.

2014-07-16 Thread Ryan O'Hara
On Wed, Jul 16, 2014 at 09:22:46AM -0500, Kuldip Madnani wrote: > Thanks Ryan/Mathew. > > I was trying to compile HAProxy 1.5.2 with SSL support on my box but was > facing below error.Am i missing some pre requisites.Could anybody help: > Step 1 : tar xzvf haproxy-1.5.2.tar.gz > > Step 2 : cd hap

Re: Binaries for HAProxy.

2014-07-16 Thread Peter M Souter
I've made a custom RPM I've been using for version 1.5.1 and I've hosted it here: https://bitbucket.org/PeteMS/haproxy-rpm-vagrant/downloads I adapted the spec from https://github.com/nmilford/rpm-haproxy On Wed, Jul 16, 2014 at 3:18 PM, Ryan O'Hara wrote: > On Wed, Jul 16, 2014 at 09:07:48AM

Re: Binaries for HAProxy.

2014-07-16 Thread Kuldip Madnani
Thanks Ryan/Mathew. I was trying to compile HAProxy 1.5.2 with SSL support on my box but was facing below error.Am i missing some pre requisites.Could anybody help: Step 1 : tar xzvf haproxy-1.5.2.tar.gz Step 2 : cd haproxy-1.5.2 Step 3 : make TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1

Error Logs in Haproxy

2014-07-16 Thread Peter M Souter
Hello All! I'm fairly new to Haproxy and I'm configurting it with puppet as a reverse proxy for several web apps. An issue I'm running into right now is that we're not getting error logs in a file, they're just sent to stdout like so: Message from syslogd@localhost at Jul 16 11:17:06 ... HAPROXY

Re: Binaries for HAProxy.

2014-07-16 Thread Mathew Levett
Hello Kuldip, Ok in that case you can probably use the following command to install the binary. yum install haproxy however this may be an older 1.4 version, if you want to build the latest version you can use the guide here and simply skip over the Transparent/T_Proxy part. http://blog.loadbal

Re: Binaries for HAProxy.

2014-07-16 Thread Ryan O'Hara
On Wed, Jul 16, 2014 at 09:07:48AM -0500, Kuldip Madnani wrote: > My Linux Distribution is : > > Red Hat Enterprise Linux Server release 6.3 (Santiago) HAProxy is not included in RHEL 6.3. You will need RHEL 6.4 with Load Balancer AddOn or RHEL7. Ryan > On Wed, Jul 16, 2014 at 9:03 AM, Mathew L

Re: Binaries for HAProxy.

2014-07-16 Thread Thomas Heil
Hi, On 16.07.2014 16:14, Kobus Bensch wrote: > Hi > > I have built my own RPM with a spec file and it works great. I can > share the rpm if anybody is interested > I would be interestet. Can you share your source rpm? > > > Kobus Bensch > > *Address:* > *Phone:** > **Email:* 22 & 24 | Freder

Re: Binaries for HAProxy.

2014-07-16 Thread Thomas Heil
Hi, On 16.07.2014 16:07, Kuldip Madnani wrote: > My Linux Distribution is : > > Red Hat Enterprise Linux Server release 6.3 (Santiago) > As far as I know redhat or centos 6.x has only haproxy 1.4 packages in his repo. You might want to use my repo at http://nd-build-01.linux-appliance.net/repos/

Re: Binaries for HAProxy.

2014-07-16 Thread Kobus Bensch
Hi I have built my own RPM with a spec file and it works great. I can share the rpm if anybody is interested Kobus Bensch *Address:* *Phone:* *Email:*22 & 24 | Frederick Sanger Road | Guildford | Surrey | GU2 7YD 0207 871 3890 kobus.ben...@trustpayglobal.com On 16 July 2014 15:07, Kuldip M

Re: Binaries for HAProxy.

2014-07-16 Thread Kuldip Madnani
My Linux Distribution is : Red Hat Enterprise Linux Server release 6.3 (Santiago) On Wed, Jul 16, 2014 at 9:03 AM, Mathew Levett wrote: > Hi Kuldip, > > I think you may need to provide a little more information, it may be that > your Linux distribution may already have haproxy in their reposit

Re: Binaries for HAProxy.

2014-07-16 Thread Mathew Levett
Hi Kuldip, I think you may need to provide a little more information, it may be that your Linux distribution may already have haproxy in their repository. However the information supplied does not really show what your running. Do you know the distribution name? If its Debian then something like

Binaries for HAProxy.

2014-07-16 Thread Kuldip Madnani
Hi, Where can i find the compiled binaries for haproxy.My system configuration is this : $ uname -a Linux 2.6.32-279.22.1.el6.x86_64 #1 SMP Sun Jan 13 09:21:40 EST 2013 x86_64 x86_64 x86_64 GNU/Linux Thanks & Regards, Kuldip

RE: Load balancing FTP with HAProxy behind a firewall

2014-07-16 Thread Nicolas Zedde
> -Original Message- > From: Dennis Jacobfeuerborn [mailto:denni...@conversis.de] > Sent: Wednesday, July 16, 2014 1:22 PM > To: haproxy@formilux.org > Subject: Re: Load balancing FTP with HAProxy behind a firewall > > Have you considered using SFTP instead? It's more secure and doesn't su

Re: Load balancing FTP with HAProxy behind a firewall

2014-07-16 Thread Dennis Jacobfeuerborn
On 16.07.2014 10:39, Nicolas Zedde wrote: > Hi everyone, > > I use HAProxy to publish my websites for months now and it works like a > charm. Thank you for that. > Today, I have to setup FTP access through HAProxy and I face the hideous > protocol caveats with the data channel. > I want all FTP

Re: Load balancing FTP with HAProxy behind a firewall

2014-07-16 Thread Baptiste
On Wed, Jul 16, 2014 at 11:47 AM, Rainer Duffner wrote: > >> hdr(host) ACL only applies to HTTP. >> Furthermore, I'm not sure there is a notion of Host header in FTP ;) > > > Last time I looked (admittedly with 1.4) into FTP+HAProxy, the > end-result was that it was just not possible. > > AFAIK, y

Re: Load balancing FTP with HAProxy behind a firewall

2014-07-16 Thread Rainer Duffner
> hdr(host) ACL only applies to HTTP. > Furthermore, I'm not sure there is a notion of Host header in FTP ;) Last time I looked (admittedly with 1.4) into FTP+HAProxy, the end-result was that it was just not possible. AFAIK, you can use LVS for that on Linux.

Re: Load balancing FTP with HAProxy behind a firewall

2014-07-16 Thread Baptiste
On Wed, Jul 16, 2014 at 10:39 AM, Nicolas Zedde wrote: > Hi everyone, > > I use HAProxy to publish my websites for months now and it works like a > charm. Thank you for that. > Today, I have to setup FTP access through HAProxy and I face the hideous > protocol caveats with the data channel. > I

Load balancing FTP with HAProxy behind a firewall

2014-07-16 Thread Nicolas Zedde
Hi everyone, I use HAProxy to publish my websites for months now and it works like a charm. Thank you for that. Today, I have to setup FTP access through HAProxy and I face the hideous protocol caveats with the data channel. I want all FTP traffic to be NATed to HAProxy through my firewall, then

RE: SSL on plain TCP mode

2014-07-16 Thread Lukas Tribus
Hi Steven, >> The idea is that haproxy takes the SSL connect, then forwards plain TCP >> to the mail server on port 25 - thereby providing an SMTP over SSL >> connection. Please keep in mind that implicit SSL on a dedicated TCP port (SMTPS, port 465) will work, but STARTSSL on port 25 will not w