ACLs to match Headers

James Pearson james at
Fri Sep 5 19:37:18 CEST 2014

Excerpts from Geoffrey Schwartz's message of 2014-09-05 09:12:54 -0700:
> Is it possible to use an ACL and match it against, say, the X-Forwarded-For
> header?  We're using Varnish (v3.0.5) in a load-balanced environment and it
> would be nice to not have to write up a regular expression for each IP
> address/range we need to match against.

You can convert the string into an IP type:
 - P
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <>

More information about the varnish-misc mailing list