Rick Matthews wrote:

chloong wrote:


I try to use the squidguard to block certain website and also downloaded the blacklist and used it.

Some time i able to block the site but some not.... why this happen?
i tested using :
echo "http://e777.net 10.3.2.1/- - GET" | squidGuard -d -c /usr/local/squidGuard/squidGuard.conf


and it show that squidGuard work just fine... it redirect me to my html. But when come to browser, everything different, no website was blocked....



When it works from the command line yet fails from the browser it is typically a permissions problem.


Start by looking in the squidGuard.log file (possibly in
/usr/local/squidGuard/log/squidGuard.log, but it could be elsewhere).
squidGuard writes to its log file every time it starts, so if you do not find a log file it is probably because squidGuard cannot
write to the log directory. squidGuard is run with the same user and group ID as Squid (cache_effective_user and cache_effective_group in squid.conf). The squidGuard configuration and database files must be readable for this user and/or group and the squidGuard log directory must be writable for this user and/or group. If not squidGuard will go into the "pass all for all" emergency mode.


Rick





Thanks Rick! It works!
the .db file is not the same user/group with squid.

After changing them, everything works just fine!

Thanks

--
Loong Chee How
Systems and Network Engineer
Internet Professional Services
MCSB Systems (M) Berhad
Ground Floor, Wisma Mirama,
Jalan Wisma Putra,
50460 Kuala Lumpur
Malaysia.
Tel: +60 (3) 2141 7400
DID: +60 (3) 2147 4918
Fax: +60 (3) 2148 8010
http://www.mcsb.com
email : [EMAIL PROTECTED]









Reply via email to