Using ACL with non-IP fields

Dridi Boukelmoune dridi at varni.sh
Fri Mar 31 12:05:49 CEST 2017


> Is there any way I can get the same result as this but without using
> client.ip?

Yes: std.ip(string, ip_fallback)

    if (std.ip(req.http.X-Real-Ip, "some_address") ~ trustedips) {

See man vmod_std, or search the online docs.

Dridi



More information about the varnish-misc mailing list