Just a quick note to update the list here. It seems we have solved Hement's
problem about blocking sites. I just wanted to pass this on to the list as
an FYI.
Regards, A
-----Original Message-----
From: Hement Gopal [mailto:hementg@cns.wits.ac.za]
Sent: Friday, April 23, 2004 10:55 AM
To: angela@jobsearchnetwork.ca
Subject: Re: [squid-users] blocking sites ?
i've been wrecking my brain the whole day...and you instructions were spot
on!!!
thanks a million angela!!!
squid -k reconfig now executes without any errors!! i had to remove spaces
from a few other lines too.
now i need to get cracking on domains list and see if that works!!
i may just end up bugging you some more next week....if that's ok.
have a super weekend!!
rgds,
hement
------------------------------------------------------------
Angela Burrell wrote:
Hi Hement
I hope I can help.
First, check that the first character in squidGuard.conf isn't a space.
I had the same error with my logfile. It seems like your squidGuard is
ignoring your logdir command in the conf file, and trying to write a log in
/usr/local/squidGuard/logs/squidGuard.log
Does this file exist?
I had a similar error, what I did, was I created a link from where
squidGuard was trying to make the log, to where I actually wanted the log to
be.
ln -s <directory/filename you want it to go> <dir/filename it's trying
towrite to>
in my case I did# ln -s /var/log/squidGuard/squidGuard.log
/var/log/squidGuard/log/squidGuard.log (it was trying to go into a second
log directory.)
So you would do:# ln -s /usr/local/squid/var/logs/squidGuard.log
/usr/local/squidGuard/logs/squidGuard.log
Hopefully that takes care of the log error. Let me know how it goes.
Regards, A
-----Original Message-----
From: Hement Gopal [mailto:hementg@cns.wits.ac.za]
Sent: Friday, April 23, 2004 10:23 AM
To: angela@jobsearchnetwork.ca
Subject: Re: [squid-users] blocking porn sites ?
hi angela
i have installed squidguard but am getting th following errors:
2004-04-23 16:22:33 [8752] parse error in configfile
/usr/local/squidGuard/squidGuard.conf line 1
2004-04-23 16:22:33 [8752] going into emergency mode
2004-04-23 16:22:33 [8753] (squidGuard): can't write to logfile
/usr/local/squidGuard/logs/squidGuard.log
2004-04-23 16:22:33 [8753] parse error in configfile
/usr/local/squidGuard/squidGuard.conf line 1
2004-04-23 16:22:33 [8753] going into emergency mode
2004-04-23 16:22:33 [8754] (squidGuard): can't write to logfile
/usr/local/squidGuard/logs/squidGuard.log
2004-04-23 16:22:33 [8754] parse error in
configfile/usr/local/squidGuard/squidGuard.conf line 1
2004-04-23 16:22:33 [8754] going into emergency mode
my squidgaurd.conf file is :-
[root@max squidGuard]# vi squidGuard.conf
logdir /usr/local/squid/var/logs/
dbhome /usr/local/squidGuard/db
dest porn { domainlist porn/domains
urllist porn/urls
}
acl {
default {
pass !porn all
redirect
http://localhost/cgi/blocked?clientaddr=%a&clientname=%n&clientuser=%i&clien
tgroup=%s&url=%u
}
}
can you help?
rgds,hement
---------------------------------
Angela Burrell wrote:
Hi Hement
I run squid version 2.4.STABLE7 and squidGuard version 1.2.0 (Berkeley
DB3.3.11)
My squidGuard blocks porn sites in the url list. Here is my squidGuard.conf
file (a small part of it)
I hope this can help you.
------------------ SNIP -----------------
# CONFIGURATION DIRECTORIES
dbhome /usr/share/squidGuard-1.2.0/blacklists # directory that contains the
url lists
logdir /var/log/squidGuard
# SOURCE ADDRESSES: (IP addresses of the users
# just an example of one
src lancomputers {
iplist lancomputers/ips
}
# DESTINATION CLASSES:
# only the porn class shown here: where squidGuard should look for the
# porn URLs and domain names that are banned.
dest porn {
domainlist porn/domains
urllist porn/urls
redirect http://www.google.ca
log /var/log/squidGuard/badurls.log
}
# ACLs (access control lists) - ip addresses defined above
lancomputers {
pass !porn all
redirect http://www.google.ca # or page of your choice
}
default {
pass none
redirect http://www.google.ca # or page of your choice
}
-------------------- END ---------------------
Please try this in your squidGuard.conf file and let me know if it works.
This setup works for my company.
Regards, A
-----Original Message-----
From: Hement Gopal [mailto:hementg@cns.wits.ac.za]
Sent: Thursday, April 22, 2004 9:42 AM
To: squid-usersSubject: [squid-users] blocking porn sites ?
hi all
i am running Squid Cache: Version 2.4.STABLE1. I've tried to implement a
block to porn sites using the acls with thefollowing entries :
acl porn1 url_regex /usr/local/squid/etc/porn1
http_access deny porn1
http_access allow all
but it doesn't seem to work.....(no errors....i am just able to browse to
any site from the blocked url list)
can anyone assist?
rgds,hement gopal
Received on Mon Apr 26 2004 - 07:56:31 MDT
This archive was generated by hypermail pre-2.1.9 : Fri Apr 30 2004 - 12:00:02 MDT