Ok, I just did a fresh install of Red Hat 7.2 this morning. I installed
squidGuard 1.2.0, and BerkeleyDB 3.2.9. Everything went fine. I've got my
blacklists in /var/lib/squidGuard/blacklists, log files in /var/log/squid,
and config file in /etc/squid. Now, everything worked up to the the
testing phase (after the install). I went through like the install doc
says, and I'm to the point where I create the test.pass & test.block. I
did this:
/usr/local/bin/squidGuard -c /etc/squid/squidGuard.conf < test.pass >
test.pass.out
/usr/local/bin/squidGuard -c /etc/squid/squidGuard.conf < test.block >
test.block.out
wc -l test.pass (gave me 2)
wc -l test.pass.out (gave me 2)
wc -w test.pass.out (gave me 0)
wc -l test.block (gave me 2)
wc -l test.block.out (gave me 2)
diff test.block test.block.out | egrep -ic '^> ..* [0-9.]+/..* ..* [a-z]+$'
(gave me 0)
more test.block.out
Now, from what I was reading, the diff line should have given me 2 as
well. the more test.block.out displayed 2 empty lines. Any suggestions
what I'm doing wrong here? I've pasted my conf file and test.pass &
test.block files below.
Thanks,
David
squidGuard.conf:
dbhome /var/lib/squidGuard/blacklists
logdir /var/log/squid
destination bl_ads
{
domainlists ads/domains
urllist ads/urls
redirect http://1x1.gif
}
destination bl_audio-video
{
domainlist audio-video/domain
urllist audio-video/urls
log stopped.log
}
destination bl_drugs
{
domainlist drugs/domain
urllist drugs/urls
log stopped.log
}
destination bl_gambling
{
domainlist gambling/domain
urllist gambling/urls
log stopped.log
}
destination bl_hacking
{
domainlist hacking/domain
urllist hacking/urls
log stopped.log
}
destination bl_porn
{
domainlist porn/domain
urllist porn/urls
log stopped.log
}
destination bl_violence
{
domainlist violence/domain
urllist violence/urls
log stopped.log
}
destination bl_warez
{
domainlist warez/domain
urllist warez/urls
log stopped.log
}
src limits_hosts
{
ip 192.168.0.1
}
time authtime
{
weekly s 06:00 - 23:30
weekly a 06:00 - 23:59
weekly f 06:00 - 23:59
weekly mtwh 06:00 - 22:30
}
acl
{
limit_hosts within authtime
{
pass !bl_ads !bl_drugs !bl_gambling !bl_hacking !bl_porn
!bl_violence !bl_warez all
redirect http://cgi-bin/squidGuard.cgi
}
else
{
pass none
redirect http://timeblock.html
}
default
{
pass none
redirect
}
}
test.pass & test.block:
http://www.yahoo.com 66.218.71.88/- - GET
http://astalavista.box.sk 208.255.131.198/- - GET