Varnish client IP address not display

Gašper Furman gasper.furman at delo.si
Mon Mar 19 08:46:24 CET 2012


Hello

in vcl_recv add something like this:

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

Best regards,

Gašper

On 03/19/2012 08:36 AM, Jewel Nuruddin wrote:
> Hello
> My varnish is run on 10.70.18.22 server and my web server run back  
> end 10.70.18.30
> When client browse through varnish in my web server it always show 
> varnish IP(10.70.18.22)
> 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 varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
-- 
Gašper Furman
Spletni razvoj
Web Development

Delo, d. d.
Dunajska 5, 1000 Ljubljana
T: +386 1 47 37 946
E: gasper.furman at delo.si <mailto:gasper.furman at delo.si>

<http://www.delo.si> <http://www.slovenskenovice.si> 
<http://www.deloindom.si> <http://www.polet.si> <http://www.pogledi.si>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120319/d3f3b51d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mail_logotipi_si.jpg
Type: image/jpeg
Size: 4535 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120319/d3f3b51d/attachment-0005.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mail_logotipi_si3.jpg
Type: image/jpeg
Size: 4051 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120319/d3f3b51d/attachment-0006.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mail_logotipi_si2.jpg
Type: image/jpeg
Size: 5520 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120319/d3f3b51d/attachment-0007.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mail_logotipi_si4.jpg
Type: image/jpeg
Size: 2639 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120319/d3f3b51d/attachment-0008.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mail_logotipi_si5.jpg
Type: image/jpeg
Size: 1963 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20120319/d3f3b51d/attachment-0009.jpg>


More information about the varnish-misc mailing list