summaryrefslogtreecommitdiff
path: root/www/squidguard/files/sgcfg.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/squidguard/files/sgcfg.in')
-rw-r--r--www/squidguard/files/sgcfg.in41
1 files changed, 41 insertions, 0 deletions
diff --git a/www/squidguard/files/sgcfg.in b/www/squidguard/files/sgcfg.in
new file mode 100644
index 000000000000..8d57a821c1dc
--- /dev/null
+++ b/www/squidguard/files/sgcfg.in
@@ -0,0 +1,41 @@
+#
+# SAMPLE CONFIG FILE FOR SQUIDGUARD
+# (for further configuration options see the
+# documentation and http://www.squidguard.org/)
+#
+dbhome DATADIR
+logdir LOGDIR
+
+#
+# TIME RULES:
+# abbrev for weekdays:
+# s = sun, m = mon, t =tue, w = wed, h = thu, f = fri, a = sat
+time workhours {
+ weekly mtwhf 08:00 - 16:30
+ date *-*-01 08:00 - 16:30
+}
+
+#
+# SOURCE ADDRESSES
+#
+source sample-clients {
+ ip 10.0.0.0/24
+}
+
+#
+# DESTINATION CLASSES
+#
+DEST_CLASSES
+
+acl {
+ sample-clients within workhours {
+ pass BLACKLIST_DIRS !in-addr any
+ } else {
+ pass any
+ }
+
+ default {
+ pass none
+ redirect http://admin.foo.bar.no/cgi/blocked?clientaddr=%a+clientname=%n+clientident=%i+srcclass=%s+targetclass=%t+url=%u
+ }
+}