On 11 August 2012 19:19, Anton Kiryushkin <[email protected]> wrote:
> Hello all.
>
> I want to use haproxy with tcp mode. But application see external IP server.
> Can I change my configuration haproxy what my application seen client IP?

You can achieve this with TPROXY, I believe. It requires kernel
support, and has routing and complexity implications for your
infrastructure. Here's a post referenced from the main HAProxy
website, describing this:
http://blog.loadbalancer.org/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/

You might alternatively request that your application/server vendor
implements "PROXY" protocol support, which passes the client IP
information in-band:
http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt

If you have the option of using HTTP, I suggest you will find that
using the X-Forwarded-For "standard" is a /far/ simpler solution than
either of these.

HTH,
Jonathan
-- 
Jonathan Matthews
Oxford, London, UK
http://www.jpluscplusm.com/contact.html

Reply via email to