I wasn't getting errors, squidguard was definately running, and with those minimal confs I was running it at the command line just trying to figure out what was going on.

I wasn't loading the libraries, strange that there wasn't an error...

I'll have a look over your presentation, see if that helps and let you know.

Thanks again,
m.

c. murdock wrote:
Are you sure it's running? I've been using sG on OpenBSD for a number of years, but when I moved to v. 3.4, it was no longer automatically loading the BerkeleyDB libraries upon reboot. It showed errors in the logs about not being able to start squidGuard or somesuch; I can't remember the exact error message, but you can fix it by adding the following to your /etc/rc.local file, before starting squid:

/sbin/ldconfig -m /usr/local/BerkeleyDB.4.0/lib

(Changing the path to match the location of your BerkeleyDB, of course.)

I never had to do this with oBSD 3.3 and under, but you have to do it on 3.5 also. I have also had difficulty using the BerkeleyDB from ports; since it's files are installed in multiple directories under /usr/local, squidGuard couldn't find it since it expects it to be all in one directory. I've been using 4.0.14 (downloaded from the sG site) sucessfully. I tried 4.2.52, but couldn't get it to compile.

BTW, I recently presented a preconference at ALA on running squid, squidGuard, & DansGuardian on OpenBSD, and here are the materials from it; basically it's a howto about how to install, maintain, & monitor them, if anyone is interested:

http://meadvillelibrary.org/os/osfiltering-ala/

Cindy

_________________________
Cindy Murdock
Network Administrator
Meadville Public Library | Crawford County Federated Library System
meadvillelibrary.org | ccfls.org


On Wednesday 14 July 2004 03:49 pm, Mike Robinson wrote:

We were running a filter on redhat9 and have just moved to openBSD.

Everything seemed good until I noticed that squidGuard wasn't
actually redirecting anything.

Stripping the config file down works:
###
logdir /var/squid/logs/squidGuard/
dbhome /etc/squid/blacklists

acl {
    default {
        pass none
        redirect http://gonowhere.com
    }
}
###

stepping up to this fails:
###
logdir /var/squid/logs/squidGuard/
dbhome /etc/squid/blacklists


dest porn { domainlist porn/domains




acl { default { pass !porn all redirect http://gonowhere.com } } ###

Everything passes.

I've compiled against both db2 and db3, same results.

No errors in the log file.  All the paths are correct and permissions
all look right.

m.





Reply via email to