Dobry den,
snazim se sprovoznit SquidGuard nainstalovany primo z repozitaru. Nejak ale vubec nefunguje.
squidguard.conf vypada takto:
# CONFIG FILE FOR SQUIDGUARD
#
dbhome /var/lib/squidGuard/db
logdir /var/log/squidGuard
#
# 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
}
#
# REWRITE RULES:
#
rew dmz {
s@://admin/@://admin.foo.bar.de/@i
s@://foo.bar.de/@://www.foo.bar.de/@i
}
#
# SOURCE ADDRESSES:
#
src admin {
ip 1.2.3.4 1.2.3.5
user root foo bar
within workhours
}
src foo-clients {
ip 172.16.2.32-172.16.2.100 172.16.2.100 172.16.2.200
}
src bar-clients {
ip 172.16.4.0/26
}
#
# DESTINATION CLASSES:
#
dest good {
}
dest local {
}
dest adult {
domainlist dest/adult/domains
urllist dest/adult/urls
expressionlist dest/adult/expressions
redirect http://admin.foo.bar.de/cgi/blocked?clientaddr=%a+clientname=%n+clientuser=%i+clientgroup=%s+targetgroup=%t+url=%u
}
acl {
admin {
pass any
}
foo-clients within workhours {
pass good !in-addr !adult any
} else {
pass any
}
bar-clients {
pass local none
}
default {
pass local none
rewrite dmz
redirect http://admin.foo.bar.de/cgi/blocked?clientaddr=%a+clientname=%n+clientuser=%i+clientgroup=%s+targetgroup=%t+url=%u
}
}
Postup jsem zkousel i primo z jejich stranek, ale nepomohlo.
po prikazu
squidGuard -C all
se nic nedeje a v logu je tohle:
2008-08-18 20:33:07 [4429] New setting: dbhome: /var/lib/squidGuard/db
2008-08-18 20:33:07 [4429] New setting: logdir: /var/log/squidGuard
2008-08-18 20:33:07 [4429] Added User: root
2008-08-18 20:33:07 [4429] Added User: foo
2008-08-18 20:33:07 [4429] Added User: bar
2008-08-18 20:33:07 [4429] destblock good missing active content, set inactive
2008-08-18 20:33:07 [4429] destblock local missing active content, set inactive
2008-08-18 20:33:07 [4429] init domainlist /var/lib/squidGuard/db/dest/adult/domains
2008-08-18 20:33:07 [4429] Error db_open: No such file or directory
2008-08-18 20:33:07 [4429] going into emergency mode
vite nekdo prosim jak to sprovoznit a kde je chyba?
Dekuji