Squidguard installation on RedHat 9

Logfiles

After installation, the various logfiles can be found in the /var/log/squidGuard/ direcctory.
This directory contains both the general logfile of the squidGuard system, as well as the blocked.log file that contains the rejected requests.

Customizing

The configuration of the squidGuard system can be found in /etc/squid/squidGuard.conf.
Changes to this file need to be activated by restarting the http daemon. ('service squid restart' for RedHat users)

Customizing the filters can be done by editing the database files.
These file can be found in the /var/spool/squidGuard/db/ directory.
In that directory are a number of sub directory, one for each section.
The custom directory is where the changes should be made.
This way, the normal subtree can be kept up-to-date with the automatic blacklist sync-job..

In the custom directory is a local-block and a local-ok directory.
To block something, put it in the block directory, to allow something that is perhaps blocked somewhere else, put it in the ok directory.
It will have precedence over the block files.

For instance, blocking yahoo.com can be done by editing the /var/spool/squidGuard/db/local-block/domains file
and by simply placing a line with yahoo.com in the file.
That's all.

Activate the changes by executing :
su squid -s /bin/sh -c "/usr/sbin/squidGuard -c /etc/squid/squidGuard.conf -C all"

Extra info

A very good installation guide. (if I had seen it earlier, I wouldn't have made this one.;-)

http://squidguard.mesd.k12.or.us/