Varnish client IP address not display

Stewart Robinson stewsnooze at
Mon Mar 19 09:02:31 CET 2012

What header are you checking on the back end?
You should be reading the x-forwarded-for header rather than some form of

Stewart Robinson

On 19 Mar 2012, at 07:53, Jewel Nuruddin <jewel.nuruddin at>

Sorry I the configuration is bellow, please ignore my previous

sub vcl_recv {
   remove req.http.X-Forwarded-For;
  set    req.http.X-Forwarded-For = client.ip;


But still it did not work for me !!!

On Mon, Mar 19, 2012 at 4:36 PM, Jewel Nuruddin <
jewel.nuruddin at> wrote:

> Hello
> My varnish is run on server and my web server run back  end
> When client browse through varnish in my web server it always show varnish
> IP(
> But I want my web server should display client IP address.
> I use the following configuration
> sub vcl_fetch {
>   remove obj.http.X-Varnish-IP;
>   set    obj.http.X-Varnish-IP = server.ip;
> }
> It did not work for me.
> Can some one please help me what should I do.
> Thanks
> Jewel

varnish-misc mailing list
varnish-misc at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list