On Mon, Mar 11, 2013 at 9:15 PM, Maxime Ducharme <mducha...@woozworld.com> wrote: > > 2013/3/11 Thomas Heil <h...@terminal-consulting.de> >> >> Hi, >> >> On 11.03.2013 20:56, Maxime Ducharme wrote: >> > Hello >> > >> > Is there any option like "mod_realip" in nginx but for haproxy ? >> > >> this could be done with >> -- >> option forwardfor header X-Real-IP >> -- >> >> > We have a situation where we could have haproxy behind a load balancer >> > and would like to be able to use per-ip acl or rate limits. We need >> > "src" to be same as the IP location in a header sent by the front load >> > balancer >> > >> If haproxy sees the original IP and the service behind haproxy also >> needs to the the original IP, you should use >> "haproxy tproxy snat". Most of the tools cant cope with the Header >> X-Real-IP or X-Forwarded-For. > > > Haproxy currenlty is behing another load balancer and cannot see the > original IP except by reading the header sent by the other load balancer > > I am trying to acheive same but using "hrd" functions but still looking for > better solution >
If you wanted to "client" IP address to load balance and/or sticky, how about using a cookie instead ? Cheers Arne