Is there a way to change client.ip?
For example, I would like to set up an ACL to block certain IPs, but since
the instances are behind a load balancer the only thing I have to work with
is the x-forwarded-for header. I've tried something like this:
sub vcl_recv {
if (req.http.X-Forwarded-For) {
set client.ip = req.http.X-Forwarded-For;
}
}
But of course that kind of thing doesn't compile.
Can someone please advise me on this issue or the broader question about
implementing ACLs via x-forwarded-for headers for those of us stuck behind
another load balancer?
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc