mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-04 14:26:13 -04:00
www/squid: same for SslPorts
This commit is contained in:
parent
3ab6e06aaa
commit
b560bdb92b
2 changed files with 5 additions and 6 deletions
|
|
@ -362,12 +362,14 @@
|
|||
</OptionValues>
|
||||
</youtube>
|
||||
<safePorts type="CSVListField">
|
||||
<default>80:http,21:ftp,443:https,70:gopher,210:wais,1025-65535:unregistered ports,280:http-mgmt,488:gss-http,591:filemaker,777:multiling http</default>
|
||||
<Default>80:http,21:ftp,443:https,70:gopher,210:wais,1025-65535:unregistered ports,280:http-mgmt,488:gss-http,591:filemaker,777:multiling http</Default>
|
||||
<mask>/^([ \-0-9a-zA-Z:,])*/u</mask>
|
||||
<Required>Y</Required>
|
||||
</safePorts>
|
||||
<sslPorts type="CSVListField">
|
||||
<Default>443:https</Default>
|
||||
<Mask>/^([ \-0-9a-zA-Z:,])*/u</Mask>
|
||||
<Required>Y</Required>
|
||||
</sslPorts>
|
||||
<remoteACLs>
|
||||
<blacklists>
|
||||
|
|
|
|||
|
|
@ -219,12 +219,9 @@ acl blockmimetypes_requests req_mime_type {{element}}
|
|||
{% endif %}
|
||||
|
||||
# ACL - SSL ports, default are configured in config.xml
|
||||
# Configured SSL ports (if defaults are not listed, then they have been removed from the configuration!):
|
||||
{% if helpers.exists('OPNsense.proxy.forward.acl.sslPorts') %}
|
||||
{% for element in OPNsense.proxy.forward.acl.sslPorts.split(",") %}
|
||||
{% for element in OPNsense.proxy.forward.acl.sslPorts.split(",") %}
|
||||
acl SSL_ports port {{element.split(":")[0]}} # {{element.split(":")[1]|default('unknown')}}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
# Default Safe ports are now defined in config.xml
|
||||
# ACL - Safe_ports
|
||||
|
|
|
|||
Loading…
Reference in a new issue