summaryrefslogtreecommitdiff
path: root/data/templates/squid/squid.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-26 16:42:44 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-28 19:42:50 +0100
commitb9a2312f02e40b16d5b85454eadd84dc3cb7bea8 (patch)
treeed114ee4619cb210a92d02416f3554531f393304 /data/templates/squid/squid.conf.tmpl
parente7649f9cf4f6beda6adb50998db3e57964bd5010 (diff)
downloadvyos-1x-b9a2312f02e40b16d5b85454eadd84dc3cb7bea8.tar.gz
vyos-1x-b9a2312f02e40b16d5b85454eadd84dc3cb7bea8.zip
webproxy: T563: add squidguard body
Diffstat (limited to 'data/templates/squid/squid.conf.tmpl')
-rw-r--r--data/templates/squid/squid.conf.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/data/templates/squid/squid.conf.tmpl b/data/templates/squid/squid.conf.tmpl
index 814f94aa7..8754e762d 100644
--- a/data/templates/squid/squid.conf.tmpl
+++ b/data/templates/squid/squid.conf.tmpl
@@ -98,6 +98,15 @@ http_port 127.0.0.1:{{ default_port }}
{# NOT insert the client address in X-Forwarded-For header #}
forwarded_for off
+{# SquidGuard #}
+{% if url_filtering is defined and url_filtering.disable is not defined %}
+{% if url_filtering.squidguard is defined and url_filtering.squidguard is not none %}
+redirect_program /usr/bin/squidGuard -c {{ squidguard_conf }}
+redirect_children 8
+redirector_bypass on
+{% endif %}
+{% endif %}
+
{% if cache_peer is defined and cache_peer is not none %}
{% for peer, config in cache_peer.items() %}
cache_peer {{ config.address }} {{ config.type }} {{ config.http_port }} {{ config.icp_port }} {{ config.options }}