summaryrefslogtreecommitdiff
path: root/www/squidguard/files/sgcfg.in
blob: 8d57a821c1dc0fc09cb3d8e34193b89b7f52d245 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
     }
}