On Sat, Mar 22, 2003 at 04:56:42PM -0600, Rick Matthews wrote......
> Andi Hari writes:
> >
> > Hi, my squidguard looks not working.
> >
> > Below are my squid.conf,squidguard.conf
> >
> --- squid.conf listing clipped -----
>
> I've made a few recommended changes to your squidGuard.conf below.
> If your squidGuard has been working properly (excluding userquota),
> then userquota should work for you using the squidGuard.conf below.
Hi
I've followed this thread with interest, and so this morning decided to
give the time quotas a try. My squid and squidGuard set-up has been
clicking along nicely for many months since I set it up, so I thought it
would be a simple matter of making a couple edits to my squidGuard.conf.
Unfortunately, it didn't work out that way. I added the line
userquota 300 60 daily
to a src section
and restarted squid, only to find that squidGuard wouldn't load. It
gave the following error msgs:
2003-03-23 21:09:50 [30823] syntax error in configfile
/etc/squid/squidGuard.conf line 63
Of course, line 63 is the userquota line. I've appended my
squidGuard.conf to the bottom of this post.
Any thoughts on why I can't even get to first base on this one?
Using Debian Sid, and squidGuard -v gives:
SquidGuard: 1.2.0 Sleepycat Software: Berkeley DB 4.1.25: (December 19,
2002)
Thanks, Kevin
-----------------
squidGuard.conf
# CONFIG FILE FOR SQUIDGUARD
#
dbhome /var/lib/squidguard/db
logdir /var/log/squid
#
# 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
}
time studytime {
weekly mtwh 15:00 - 19:00
}
time ryanfuntime {
weekly * 00:00 - 15:00
weekly * 19:00 - 24:00
weekly friday 00:00 - 24:00
weekly saturday 00:00 - 24:00
weekly sunday 00:00 - 24:00
}
time wakeuptime {
weekly mtwhf 06:00 - 07:30
}
#
# SOURCE ADDRESSES:
#
src ryan {
ip 10.10.10.153
}
src alison {
ip 10.10.10.154
}
src hawkwood {
ip 10.10.10.152-10.10.10.250
# userquota 300 60 daily
}
src adult {
ip 10.10.10.12-10.10.10.151
}
#
# DESTINATION CLASSES:
#
dest porn {
domainlist blacklists/porn/domains
urllist blacklists/porn/urls
redirect
http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u
log blocked.log
}
dest local {
domainlist local/domains
}
#
# ACCESS CONTROL LISTS
#
acl {
ryan within ryanfuntime {
pass !porn any
} else {
pass local none
}
alison within wakeuptime {
pass local none
} else {
pass !porn any
}
hawkwood {
pass !porn any
}
adult {
pass any
}
default {
pass none
redirect
http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u
}
}
## end of squidGuard.conf