Change client.ip based on x-forwaded-for headers?

Stephen Wood smwood4 at gmail.com
Tue Aug 6 18:08:40 CEST 2013


That's perfect, Lasse! Thank you for the information.

I had settled on putting the VCL in a jinja template and iterating over a
list of ips (x-forward-for headers), each one creating a separate entry
into sub vcl_recv to send an error 403.


On Tue, Aug 6, 2013 at 2:00 AM, Lasse Karstensen <
lkarsten at varnish-software.com> wrote:

> On Mon, Aug 05, 2013 at 02:05:05PM -0700, Stephen Wood wrote:
> > Is there a way to change client.ip?
>
> Yes, you can do this with the ipcast vmod:
>
>         https://github.com/lkarsten/libvmod-ipcast
>
>
> --
> With regards,
> Lasse Karstensen
> Varnish Software AS
>



-- 
Stephen Wood
Dev/Ops Engineer
Moz, Inc.
Website: www.heystephenwood.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130806/4eff1544/attachment.html>


More information about the varnish-misc mailing list