I think I've made a mistake with my configuration. I can't 
retrieve the ip adresse of my clients in my logs, I have just the ip 
adresse of my varnish and I am becoming mad...

I'll be really glad to obtain some help here.

This is our architecture :
WEB ==> Haproxy => Varnish => Nginx

A part of our HaProxy Configuration :
frontend http-in bind 11.22.33.44:80 option httplog option forwardfor option 
http-server-close default_backend varnish backend varnish balance url_param id 
option forwardfor option http-server-close hash-type consistent server v01 
192.168.0.18:80 check observe layer7 server v02 192.168.0.19:80 check observe 
layer7 
Varnish Configuration for XForwardfor  :
sub vcl_recv {
set req.backend = bingo-fuel; if (req.restarts == 0) { if 
(req.http.x-forwarded-for) { set req.http.X-Forwarded-For = 
req.http.X-Forwarded-For + ", " + client.ip; } else { set 
req.http.X-Forwarded-For = client.ip; }
} 
And last, some part of my nginx configuration with :
set_real_ip_from  192.168.0.18;
real_ip_header X-Forwarded-For; 
Regards,
Clem

Reply via email to