Hello @jlago3577,
Following Varnish documentation, you can block IPs with the following blocks:
acl unwanted {
"localhost";
"192.168.1.0"/24; /* and everyone on the local network */
}
sub vcl_recv {
if (client.ip ~ unwanted) {
return(synth(403, "Access denied."));
}
}
Varnish 6.0 supports IPv6, so there shouldn't be any problems.
Regarding the possible cause, it may be the recently fixed memory leak you shared, but we will need to wait until that fix is included in a new modSecurity release for our internal tools to automatically update to the latest version. The version 3.0.4
was released more than a year ago, so the new fix is yet to be included.