Hi,

I'm trying to get squidGuard up & running but I just can't get it to
filter anything.

Here's some pertinent information:

RedHat 7 (all updates applied)
Squid-2.3.STABLE4-1
squidGuard-1.2.0

I compiled squidGuard using the following flags:

CC="gcc" CFLAGS="-O3" ./configure \
--verbose --prefix=/bin/squidguard \
--with-sg-config=/usr/local/sg/filter.conf \
--with-sg-logdir=/usr/local/sg/logs \
--with-sg-dbhome=/usr/local/sg/db

I have the following line in my squid.conf:

redirect_program /bin/squidguard/bin/squidGuard

Squid runs as user "squid".  The perms / ownership on the files needed
by squidGuard look like this:

/usr/local/sg
drwxr-xr-x    3 squid    squid        4096 Feb  7 06:14 db
-rw-rw-rw-    1 squid    squid         229 Feb  7 06:16 filter.conf
drwxr-xr-x    2 squid    squid        4096 Feb  7 06:00 logs

/usr/local/sg/db
drwxr-xr-x    2 squid    squid        4096 Feb  7 06:14 porn

/usr/local/sg/db/porn
-rw-rw-rw-    1 squid    squid     1293816 Feb  7 06:14 domains
-rw-rw-rw-    1 squid    squid      707988 Feb  7 06:14 urls

I have the following entries in the squidGuard log file

2002-02-07 06:00:24 [9345] init domainlist
/usr/local/src/sg/squidGuard-1.2.0/test/blacklist/domains
2002-02-07 06:00:24 [9345] init urllist
/usr/local/src/sg/squidGuard-1.2.0/test/blacklist/urls
2002-02-07 06:00:25 [9372] init domainlist
/usr/local/src/sg/squidGuard-1.2.0/test/blacklist/domains
2002-02-07 06:00:25 [9372] init urllist
/usr/local/src/sg/squidGuard-1.2.0/test/blacklist/urls
2002-02-07 06:00:25 [9372] init expressionlist
/usr/local/src/sg/squidGuard-1.2.0/test/blacklist/expressions
2002-02-07 06:00:25 [9398] init domainlist
/usr/local/src/sg/squidGuard-1.2.0/test/blacklist/domains
2002-02-07 06:00:25 [9398] init urllist
/usr/local/src/sg/squidGuard-1.2.0/test/blacklist/urls

I assume those entries showed up when I ran make test?

I'm trying to filter some porn sites.  I have the following in
filter.conf:

dest porn {
 domainlist porn/domains
 urllist    porn/urls
    }

    acl {
         default {
             pass !porn all
             redirect
http://localhost/cgi/blocked?clientaddr=%a&clientname=%n&clientuser=%i&c
lientgroup=%s&url=%u
         }
     }

As I understand it, domainlist & urllist should be pulled from
/usr/local/sg/db/porn

I have several urls defined in domains & urls, but I'm able to access
all of them.

PS shows a running squidGuard process.

Squid works fine on it's own.

Does anyone see a reason why this doesn't work?

Thanks a bunch!

Reply via email to