Commit 77919c0c authored by Jos Schellevis's avatar Jos Schellevis

Proxy work in progress, add extra mimetype block on request

parent a89dc172
...@@ -107,6 +107,7 @@ acl blockuseragents browser {{element}} ...@@ -107,6 +107,7 @@ acl blockuseragents browser {{element}}
# ALC - Block MIME types - User defined (mimetype) # ALC - Block MIME types - User defined (mimetype)
{% for element in OPNsense.proxy.forward.acl.mimeType.split(",") %} {% for element in OPNsense.proxy.forward.acl.mimeType.split(",") %}
acl blockmimetypes rep_mime_type {{element}} acl blockmimetypes rep_mime_type {{element}}
acl blockmimetypes_requests req_mime_type {{element}}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
...@@ -172,7 +173,8 @@ http_access deny blockuseragents ...@@ -172,7 +173,8 @@ http_access deny blockuseragents
{% if helpers.exists('OPNsense.proxy.forward.acl.mimeType') %} {% if helpers.exists('OPNsense.proxy.forward.acl.mimeType') %}
# ACL list (Deny) blockmimetypes # ACL list (Deny) blockmimetypes
http_access deny blockmimetypes http_reply_access deny blockmimetypes
http_access deny blockmimetypes_requests
{% endif %} {% endif %}
# Deny requests to certain unsafe ports # Deny requests to certain unsafe ports
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment