X-Forwarded-For where?

Hernán Marsili hernan at cmsmedios.com
Wed Sep 3 03:25:23 CEST 2014

Hi,I need to obtain the real ip the the client, not the ip of the CDN

I found example with this on the vcl_recv. Others with similar code o the
vcl_miss and similar code on vcl_deliver.r

remove req.http.X-Forwarded-For;
set req.http.X-Forwarded-For = req.http.rlnclientipaddr;

I try them all, all of them work. But, which is the most efficient way? :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20140902/2c38405c/attachment.html>

More information about the varnish-misc mailing list