mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
Proxy: don't try to force cachemanager access to use icap when enabled, it's highly unlikely the icap server understands these requests.
Originally all http_access tags where filtered in 25449ffd49 , it seems like a slip of the pen to wrap the cache manager as well (probably nobody uses this combination)
This commit is contained in:
parent
58e3c45655
commit
1da0a432a4
@ -138,20 +138,6 @@ http_access deny bannedHosts
|
||||
{% endif %}
|
||||
|
||||
# Only allow cachemgr access from localhost
|
||||
{% if helpers.exists('OPNsense.proxy.forward.icap.enable') and OPNsense.proxy.forward.icap.enable == '1' %}
|
||||
{% if helpers.exists('OPNsense.proxy.forward.icap.ResponseURL') %}
|
||||
adaptation_access response_mod allow localhost manager
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.proxy.forward.icap.RequestURL') %}
|
||||
adaptation_access request_mod allow localhost manager
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.proxy.forward.icap.ResponseURL') %}
|
||||
adaptation_access response_mod deny manager
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.proxy.forward.icap.RequestURL') %}
|
||||
adaptation_access request_mod deny manager
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
http_access allow localhost manager
|
||||
http_access deny manager
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user