diff --git a/src/opnsense/service/templates/OPNsense/Proxy/squid.conf b/src/opnsense/service/templates/OPNsense/Proxy/squid.conf index 08a5f7fb5..611884fa7 100644 --- a/src/opnsense/service/templates/OPNsense/Proxy/squid.conf +++ b/src/opnsense/service/templates/OPNsense/Proxy/squid.conf @@ -193,13 +193,13 @@ http_access allow whiteList http_access deny blackList {% endif %} + {% if helpers.exists('OPNsense.proxy.forward.acl.remoteACLs.blacklists') %} -{% for blacklist in helpers.toList('OPNsense.proxy.forward.acl.remoteACLs.blacklists.blacklist') %} -{% if blacklist.enabled=='1' %} +{% for blacklist in helpers.toList('OPNsense.proxy.forward.acl.remoteACLs.blacklists.blacklist') if blacklist.enabled=='1' %} +{% if loop.first %} # ACL list (Deny) remoteblacklist http_access deny remoteblacklist -{% break %} -{% endif %} +{% endif %} {% endfor %} {% endif %}