mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
(proxy) stack remote acl's
This commit is contained in:
parent
8362757267
commit
8a0a35e82a
@ -128,7 +128,7 @@ acl blackList url_regex {{element|replace(".","\.")}}
|
||||
{% 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' %}
|
||||
acl remoteblacklist dstdomain "/usr/local/etc/squid/acl/{{blacklist.filename}}"
|
||||
acl remoteblacklist_{{blacklist.filename}} dstdomain "/usr/local/etc/squid/acl/{{blacklist.filename}}"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
@ -264,14 +264,12 @@ http_access deny blackList
|
||||
|
||||
{% 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' %}
|
||||
{% if loop.first %}
|
||||
# ACL list (Deny) remoteblacklist
|
||||
# ACL list (Deny) remoteblacklist_{{blacklist.filename}}
|
||||
{% if helpers.exists('OPNsense.proxy.forward.icap.enable') and OPNsense.proxy.forward.icap.enable == '1' %}
|
||||
adaptation_access response_mod deny remoteblacklist
|
||||
adaptation_access request_mod deny remoteblacklist
|
||||
{% endif %}
|
||||
http_access deny remoteblacklist
|
||||
adaptation_access response_mod deny remoteblacklist_{{blacklist.filename}}
|
||||
adaptation_access request_mod deny remoteblacklist_{{blacklist.filename}}
|
||||
{% endif %}
|
||||
http_access deny remoteblacklist_{{blacklist.filename}}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user