Check the squidGuard.log file. squidGuard logs both good and bad
events to the log file, so an *empty* log file means something is
wrong.

When squidGuard tests work and production doesn't it may be file
ownership and permissions. Everything in your /usr/local/squidGuard
and below should be owned by the same user and group as listed in your
squid.conf file for <cache_effective_user> and <cache_effective_group>.

>          domainlist      porn/domains.db
>          urllist         porn/urls.db

Drop the ".db". SquidGuard will automatically use the .db files if
they are present and the plain text files if no ".db" files exist.

>          redirect        302:http://www.google.com

Personal preference here, but I don't use the 302: on my redirects.
With the 302: the browser address bar shows the address of the 
redirect page (in this case, http://www.google.com). Without the 
302:, the browser address bar shows the original requested url while
displaying the redirect page. I think it is less confusing, 
especially if you redirect to a "blocked" message. But as I said, 
it's a personal preference item.

Hope that helps!

Rick Matthews

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Davis
> Sent: Thursday, June 06, 2002 10:56 AM
> To: [EMAIL PROTECTED]
> Subject: Can't get squidguard to block anything
> 
> 
> Hi,
> 
> Got squid running, but squidguard will not block anything.  It seems to 
> have no effect.  My experience sez that most wounds of this type are 
> self-inflicted (being in a hurry), and I'm sure I'm missing something basic.
> 
> The static tests worked (/usr/local/bin/squidGuard -c 
> /usr/local/squidGuard/squidGuard.conf < test.block > test.block.out)
> 
> generated a file with the redirect url in it.
> 
> Can anyone point me in the right direction to get this working?
> 
> Here is my squidGuard.conf ;
> 
> 
> logdir  /usr/local/squidGuard/log
> dbhome  /usr/local/squidGuard/db
> 
> dest porn {
>          domainlist      porn/domains.db
>          urllist         porn/urls.db
>          redirect        302:http://www.google.com
>          logfile         porn.log
> }
> 
> acl {
> 
>          default {
>                  pass !porn all
>          }
> }
> 
> Thanks,
> 
> -Jeff
> 
> 
> Jefferson K. Davis
> Technology and Information Systems Manager
> Standard School District
> 1200 North Chester Ave
> Bakersfield, CA  93308
> USA
> 661-392-2110 ext 120
> 
> 

Reply via email to