squid.conf (opnsense-core-20.7.4) | : | squid.conf (opnsense-core-20.7.5) | ||
---|---|---|---|---|
skipping to change at line 359 | skipping to change at line 359 | |||
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 | refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 | |||
refresh_pattern . 0 20% 4320 | refresh_pattern . 0 20% 4320 | |||
# Squid Options | # Squid Options | |||
{% if helpers.exists('OPNsense.proxy.general.dnsV4First') %} | {% if helpers.exists('OPNsense.proxy.general.dnsV4First') %} | |||
{% if OPNsense.proxy.general.dnsV4First == '1' %} | {% if OPNsense.proxy.general.dnsV4First == '1' %} | |||
# dns_v4_first reverses the order of preference to make Squid contact dual-stack websites over IPv4 first | # dns_v4_first reverses the order of preference to make Squid contact dual-stack websites over IPv4 first | |||
dns_v4_first on | dns_v4_first on | |||
{% endif %} | {% endif %} | |||
{% endif %} | {% endif %} | |||
{% if helpers.empty('OPNsense.proxy.general.enablePinger') %} | ||||
pinger_enable off | ||||
{% endif %} | ||||
{% if helpers.exists('OPNsense.proxy.general.logging.enable.accessLog') %} | {% if helpers.exists('OPNsense.proxy.general.logging.enable.accessLog') %} | |||
{% if OPNsense.proxy.general.logging.enable.accessLog == '0' %} | {% if OPNsense.proxy.general.logging.enable.accessLog == '0' %} | |||
# Disable access logging | # Disable access logging | |||
access_log none | access_log none | |||
{% else %} | {% else %} | |||
{% if OPNsense.proxy.general.logging.ignoreLogACL|default('') != '' %} | {% if OPNsense.proxy.general.logging.ignoreLogACL|default('') != '' %} | |||
# ignore source hosts from access.log | # ignore source hosts from access.log | |||
acl accesslog_ignore src {{ OPNsense.proxy.general.logging.ignoreLogACL.replace( ',', ' ') }} | acl accesslog_ignore src {{ OPNsense.proxy.general.logging.ignoreLogACL.replace( ',', ' ') }} | |||
{% endif %} | {% endif %} | |||
{% if OPNsense.proxy.general.logging.target|default('') == 'syslog' %} | {% if OPNsense.proxy.general.logging.target|default('') == 'syslog' %} | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added |