File: test2.conf

package info (click to toggle)
squidguard 1.2.0-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,924 kB
  • ctags: 243
  • sloc: perl: 2,796; yacc: 1,945; ansic: 1,458; makefile: 420; sh: 224; lex: 74
file content (33 lines) | stat: -rw-r--r-- 654 bytes parent folder | download
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
logdir /home/rkrusty/build/squidguard-1.2.0/test
dbhome /home/rkrusty/build/squidguard-1.2.0/test

src grownups {
    ip	   10.0.0.0/24	  # range 10.0.0.0  - 10.0.0.255
			  # AND
    user   foo bar	  # ident foo or bar
}

src kids {
    ip	   10.0.0.0/22	  # range 10.0.0.0 - 10.0.3.255
}

dest blacklist {
    domainlist     blacklist/domains
    urllist        blacklist/urls
    expressionlist blacklist/expressions
}

acl {
    grownups {
	pass all
    }

    kids {
	pass !blacklist all
    }

    default {
	pass none
	redirect http://info.foo.bar/cgi/blocked?clientaddr=%a&clientname=%n&clientuser=%i&clientgroup=%s&targetgroup=%t&url=%u
    }
}