<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Configure HAProxy with TPROXY kernel for full transparent proxy</title>
	<atom:link href="http://blog.loadbalancer.org/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.loadbalancer.org/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/</link>
	<description>When a single point of failure is not an option</description>
	<pubDate>Fri, 30 Jul 2010 12:17:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daniel</title>
		<link>http://blog.loadbalancer.org/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/comment-page-1/#comment-941</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 18 Mar 2010 23:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.loadbalancer.org/blog/?p=106#comment-941</guid>
		<description>Hello Malcolm,
I try to implement haproxy in transparent mode like in your how-to.
I add rules in iptables, but when I try to access to the service, the result is "503 Service Unavailable".
Without the line "source 0.0.0.0 usesrc clientip" all works correctly, obviously without transparency.
Have you got any ideas? Where I'm wrong?
Thanks! Daniel</description>
		<content:encoded><![CDATA[<p>Hello Malcolm,<br />
I try to implement haproxy in transparent mode like in your how-to.<br />
I add rules in iptables, but when I try to access to the service, the result is &#8220;503 Service Unavailable&#8221;.<br />
Without the line &#8220;source 0.0.0.0 usesrc clientip&#8221; all works correctly, obviously without transparency.<br />
Have you got any ideas? Where I&#8217;m wrong?<br />
Thanks! Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Smith</title>
		<link>http://blog.loadbalancer.org/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/comment-page-1/#comment-912</link>
		<dc:creator>Bob Smith</dc:creator>
		<pubDate>Tue, 02 Mar 2010 23:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.loadbalancer.org/blog/?p=106#comment-912</guid>
		<description>Here is my question.  I have a simple setup with HAProxy and 2 backend servers.  Works like a charm except that on these backend servers I look at the HTTP_HOST with RewriteCond to do various things.  When I turn logging on it looks like the "Host" that I am getting is either the IP address or nothing.  I have looked at the documentation, but any idea how I can get the backend server to "see" what the URL is?</description>
		<content:encoded><![CDATA[<p>Here is my question.  I have a simple setup with HAProxy and 2 backend servers.  Works like a charm except that on these backend servers I look at the HTTP_HOST with RewriteCond to do various things.  When I turn logging on it looks like the &#8220;Host&#8221; that I am getting is either the IP address or nothing.  I have looked at the documentation, but any idea how I can get the backend server to &#8220;see&#8221; what the URL is?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand Phulwani</title>
		<link>http://blog.loadbalancer.org/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/comment-page-1/#comment-900</link>
		<dc:creator>Anand Phulwani</dc:creator>
		<pubDate>Mon, 01 Feb 2010 07:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.loadbalancer.org/blog/?p=106#comment-900</guid>
		<description>Dear Malcolm,

After Reading The Documentation I Had An Hint That This Is An Inbound Proxy And Works For Basically For Web Server Managed In A Kind Of Cluster.
So Actually This Is Just Different For What I Am Trying To Do With Squid.

Thanks,
Anand</description>
		<content:encoded><![CDATA[<p>Dear Malcolm,</p>
<p>After Reading The Documentation I Had An Hint That This Is An Inbound Proxy And Works For Basically For Web Server Managed In A Kind Of Cluster.<br />
So Actually This Is Just Different For What I Am Trying To Do With Squid.</p>
<p>Thanks,<br />
Anand</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malcolm Turnbull</title>
		<link>http://blog.loadbalancer.org/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/comment-page-1/#comment-899</link>
		<dc:creator>Malcolm Turnbull</dc:creator>
		<pubDate>Sun, 31 Jan 2010 19:46:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.loadbalancer.org/blog/?p=106#comment-899</guid>
		<description>Anand,

1) I guess squid is an outbound proxy (standard) and HAProxy is an inbound proxy (reverse), like Pound.
2) Why would you be running Google talk servers? (this is a reverse proxy not outbound)
3) Yes, but I'm not sure exactly what you are after...
4) Not directly, but you just terminate the HTTPS with stunnel or Pound first...so yes.</description>
		<content:encoded><![CDATA[<p>Anand,</p>
<p>1) I guess squid is an outbound proxy (standard) and HAProxy is an inbound proxy (reverse), like Pound.<br />
2) Why would you be running Google talk servers? (this is a reverse proxy not outbound)<br />
3) Yes, but I&#8217;m not sure exactly what you are after&#8230;<br />
4) Not directly, but you just terminate the HTTPS with stunnel or Pound first&#8230;so yes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand Phulwani</title>
		<link>http://blog.loadbalancer.org/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/comment-page-1/#comment-898</link>
		<dc:creator>Anand Phulwani</dc:creator>
		<pubDate>Sun, 31 Jan 2010 13:10:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.loadbalancer.org/blog/?p=106#comment-898</guid>
		<description>Dear Malcolm,

I know its very stupid to ask such newbie questions but that is all what i have right now.

1) How is Haproxy different from squid.
2) Transparent squid does not works with gtalk, is that a problem with Haproxy too, if it runs with tproxy.
3) Does Haproxy support acl (based on time,based on url regex).
4) Can we also use acl on HTTPS or in other words how does Haproxy handles HTTPS.

Your reply would indeed be a lot of help to me.
Expecting your positive reply.
Thanks,
Anand Phulwani</description>
		<content:encoded><![CDATA[<p>Dear Malcolm,</p>
<p>I know its very stupid to ask such newbie questions but that is all what i have right now.</p>
<p>1) How is Haproxy different from squid.<br />
2) Transparent squid does not works with gtalk, is that a problem with Haproxy too, if it runs with tproxy.<br />
3) Does Haproxy support acl (based on time,based on url regex).<br />
4) Can we also use acl on HTTPS or in other words how does Haproxy handles HTTPS.</p>
<p>Your reply would indeed be a lot of help to me.<br />
Expecting your positive reply.<br />
Thanks,<br />
Anand Phulwani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malcolm Turnbull</title>
		<link>http://blog.loadbalancer.org/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/comment-page-1/#comment-889</link>
		<dc:creator>Malcolm Turnbull</dc:creator>
		<pubDate>Tue, 05 Jan 2010 13:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.loadbalancer.org/blog/?p=106#comment-889</guid>
		<description>Hanlin,

Er... no idea.. It probably won't work with Apache on the same host as HAProxy... But If Apache is on the same host why do you need HAProxy anyway?</description>
		<content:encoded><![CDATA[<p>Hanlin,</p>
<p>Er&#8230; no idea.. It probably won&#8217;t work with Apache on the same host as HAProxy&#8230; But If Apache is on the same host why do you need HAProxy anyway?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hanlin</title>
		<link>http://blog.loadbalancer.org/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/comment-page-1/#comment-868</link>
		<dc:creator>hanlin</dc:creator>
		<pubDate>Sat, 24 Oct 2009 15:48:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.loadbalancer.org/blog/?p=106#comment-868</guid>
		<description>Hello,I have got a probelm like this:
haproxy bind on a public IP,the apache server is on the same machine with haproxy'server (haproxy's server have two eth with public and private ip)
Whitout “source 0.0.0.0 usesrc clientip” it work.
could they at the same machine?

(please note: the other apache server is not on the same machine wich haproxy'server,and I have set the default gateway on the backend server to point at the internal interface on the haproxy instance,it can work)

Have you got ideas?
thanks</description>
		<content:encoded><![CDATA[<p>Hello,I have got a probelm like this:<br />
haproxy bind on a public IP,the apache server is on the same machine with haproxy&#8217;server (haproxy&#8217;s server have two eth with public and private ip)<br />
Whitout “source 0.0.0.0 usesrc clientip” it work.<br />
could they at the same machine?</p>
<p>(please note: the other apache server is not on the same machine wich haproxy&#8217;server,and I have set the default gateway on the backend server to point at the internal interface on the haproxy instance,it can work)</p>
<p>Have you got ideas?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malcolm Turnbull</title>
		<link>http://blog.loadbalancer.org/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/comment-page-1/#comment-854</link>
		<dc:creator>Malcolm Turnbull</dc:creator>
		<pubDate>Fri, 25 Sep 2009 10:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.loadbalancer.org/blog/?p=106#comment-854</guid>
		<description>You need something more like: 

&lt;code&gt;frontend blah
acl notsms url_sub !sms use_backend backend1 
acl sms url_sub sms use_backend backend2

backend backend1
source 0.0.0.0 usesrc clientip
server server1 x.x.x.x:10000 cookie XXX.COM check&lt;/code&gt;

&lt;em&gt;NB. I haven't tested this just off the top of my head....&lt;/em&gt;.
Check out the HAProxy manual and mailing list for more specific help on ACLs...</description>
		<content:encoded><![CDATA[<p>You need something more like: </p>
<p><code>frontend blah<br />
acl notsms url_sub !sms use_backend backend1<br />
acl sms url_sub sms use_backend backend2</p>
<p>backend backend1<br />
source 0.0.0.0 usesrc clientip<br />
server server1 x.x.x.x:10000 cookie XXX.COM check</code></p>
<p><em>NB. I haven&#8217;t tested this just off the top of my head&#8230;.</em>.<br />
Check out the HAProxy manual and mailing list for more specific help on ACLs&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malcolm Turnbull</title>
		<link>http://blog.loadbalancer.org/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/comment-page-1/#comment-853</link>
		<dc:creator>Malcolm Turnbull</dc:creator>
		<pubDate>Fri, 25 Sep 2009 09:52:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.loadbalancer.org/blog/?p=106#comment-853</guid>
		<description>Willy suggests starting HAProxy as root because it can then jail itself in a chroot and drop all of its privileges  before starting the instances. This is not possible if it is not started as root because only root can execute chroot()</description>
		<content:encoded><![CDATA[<p>Willy suggests starting HAProxy as root because it can then jail itself in a chroot and drop all of its privileges  before starting the instances. This is not possible if it is not started as root because only root can execute chroot()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gael</title>
		<link>http://blog.loadbalancer.org/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/comment-page-1/#comment-849</link>
		<dc:creator>Gael</dc:creator>
		<pubDate>Thu, 17 Sep 2009 17:43:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.loadbalancer.org/blog/?p=106#comment-849</guid>
		<description>Hi Malcolm and thanks for your brilliant article!

I have wasted a couple of days trying to debug the kernel which was throwing SOFT LOCKUP bugs. After investigation it was down to having 2 vCPU in the VM (from VMWare) I was using. Moving back to only one vCPU did the trick. Hope this can help someone else!

In your post, you have commented the following line:
#	uid 99
#	gid 99

Therefore, haproxy is running as root. 

I know it produces the following error if haproxy is run with another user then root:
"Starting haproxy: [ALERT] 259/184020 (3497) : [/usr/sbin/haproxy.main()] Some configuration options require full privileges, so global.uid cannot be changed."

So it seems compulsory to run haproxy as root.
I am now wondering if this can cause any problem related to using root to run haproxy.

Thanks in advance for your answer!

Gael</description>
		<content:encoded><![CDATA[<p>Hi Malcolm and thanks for your brilliant article!</p>
<p>I have wasted a couple of days trying to debug the kernel which was throwing SOFT LOCKUP bugs. After investigation it was down to having 2 vCPU in the VM (from VMWare) I was using. Moving back to only one vCPU did the trick. Hope this can help someone else!</p>
<p>In your post, you have commented the following line:<br />
#	uid 99<br />
#	gid 99</p>
<p>Therefore, haproxy is running as root. </p>
<p>I know it produces the following error if haproxy is run with another user then root:<br />
&#8220;Starting haproxy: [ALERT] 259/184020 (3497) : [/usr/sbin/haproxy.main()] Some configuration options require full privileges, so global.uid cannot be changed.&#8221;</p>
<p>So it seems compulsory to run haproxy as root.<br />
I am now wondering if this can cause any problem related to using root to run haproxy.</p>
<p>Thanks in advance for your answer!</p>
<p>Gael</p>
]]></content:encoded>
	</item>
</channel>
</rss>
