Network ACLs
How to use a Network ACL in Auto Provisioning
Deny list example
# Deny list example
sub vcl_recv {
if (req.http.host == "www.mydomain.com") { # any required condition to trigger the ACL check
if (aclplus.match(client.ip, network_acl.get("acl_c4_mydenylist", "none"))) {
# Any action is allowed here, for this example we block the request
call deny_request;
}
}
}if (aclplus.match(client.ip, network_acl.get("acl_c4_deny1", "none"))
|| aclplus.match(client.ip, network_acl.get("acl_c4_deny2", "none"))
) {
# Block the request if the IP is present in any ACL
call deny_request;
}Allow list example
Last updated
Was this helpful?
