diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-12-26 16:42:44 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-12-28 19:42:50 +0100 |
commit | b9a2312f02e40b16d5b85454eadd84dc3cb7bea8 (patch) | |
tree | ed114ee4619cb210a92d02416f3554531f393304 /data/templates/squid/squidGuard.conf.tmpl | |
parent | e7649f9cf4f6beda6adb50998db3e57964bd5010 (diff) | |
download | vyos-1x-b9a2312f02e40b16d5b85454eadd84dc3cb7bea8.tar.gz vyos-1x-b9a2312f02e40b16d5b85454eadd84dc3cb7bea8.zip |
webproxy: T563: add squidguard body
Diffstat (limited to 'data/templates/squid/squidGuard.conf.tmpl')
-rw-r--r-- | data/templates/squid/squidGuard.conf.tmpl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/data/templates/squid/squidGuard.conf.tmpl b/data/templates/squid/squidGuard.conf.tmpl new file mode 100644 index 000000000..907043614 --- /dev/null +++ b/data/templates/squid/squidGuard.conf.tmpl @@ -0,0 +1,18 @@ +### generated by service_webproxy.py ###
+{% 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 %}
+dbhome /opt/vyatta/etc/config/url-filtering/squidguard/db
+logdir /var/log/squid
+
+rewrite safesearch {
+ s@(.*\.google\..*/(custom|search|images|groups|news)?.*q=.*)@\1\&safe=active@i
+ s@(.*\..*/yandsearch?.*text=.*)@\1\&fyandex=1@i
+ s@(.*\.yahoo\..*/search.*p=.*)@\1\&vm=r@i
+ s@(.*\.live\..*/.*q=.*)@\1\&adlt=strict@i
+ s@(.*\.msn\..*/.*q=.*)@\1\&adlt=strict@i
+ s@(.*\.bing\..*/search.*q=.*)@\1\&adlt=strict@i
+ log rewrite.log
+}
+
+{% endif %}
+{% endif %}
|