>>>>> "EJ" == Eugene Joubert <[EMAIL PROTECTED]> writes:
EJ> Hi, Could any one please send me an example of a config file where
EJ> you use time declarations and acl's. I am new to using squidguard
EJ> and don't quite understand the config file yet.....
EJ> I have managed to get the squidguard working with all the default
EJ> values....
EJ> Hugely appreciated
EJ> PS: Also would appreciated if you have some good reading on how
EJ> squidguard works (in lehmans terms). I have visited squidguard.org,
EJ> but they expect you to be more than a beginner...
Eugene,
Here is my config file. Hope this helps....
#
# Configuration File for SquidGuard
#
dbhome /usr/local/squidGuard/db
logdir /usr/local/squidGuard/log
time reasonable-hours {
weekly * 10:00-23:30
}
source kids {
user xxxxx
user yyyyy
user zzzzz
}
source adults {
user aaaaa
user bbbbb
}
dest aggressive {
log aggressive.log
domainlist aggressive/domains
urllist aggressive/urls
}
dest hacking {
log hacking.log
domainlist hacking/domains
urllist hacking/urls
}
dest violence{
log violence.log
domainlist violence/domains
urllist violence/urls
}
dest gambling{
log gambling.log
domainlist gambling/domains
urllist gambling/urls
}
dest porn{
log porn.log
domainlist porn/domains
urllist porn/urls
}
dest warez{
log warez.log
domainlist warez/domains
urllist warez/urls
}
dest local-ok{
domainlist local-ok/domains
urllist local-ok/urls
}
dest local-block{
log local-block.log
domainlist local-block/domains
urllist local-block/urls
}
acl {
adults {
pass local-ok !local-block !aggressive !hacking !violence !gambling
!porn !warez all
pass all
}
kids within reasonable-hours {
pass local-ok !local-block !aggressive !hacking !violence !gambling
!porn !warez all
pass all
} else {
redirect
http://localhost/cgi-bin/squidGuard-time.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&url=%u&targetclass=%t
}
default {
pass none
redirect
http://localhost/cgi-bin/squidGuard-denied.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&url=%u&targetclass=%t
}
}
--
Jake Colman
Principia Partners LLC Phone: (201) 209-2467
Harborside Financial Center Fax: (201) 946-0320
902 Plaza Two E-mail: [EMAIL PROTECTED]
Jersey City, NJ 07311 www.principiapartners.com