| Author |
Squid & SquidGuard not working
|
|
|
| I am using RH AS4, wiht squid 2.5 and squidGuard 1.2.0, my squid is
working fine and i have configured squidguard in sauid.conf file but
nothing is redirecting.... my config file is.....
Squid.conf
-------------------
cache_dir ufs /var/spool/squid 100 16 256
http_port 3128
visible_hostname xxxxx
emulate_httpd_log on
acl srivari src 192.168.1.0/24
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl CONNECT method CONNECT
http_access allow srivari
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
redirect_program /usr/local/bin/squidGuard
redirect_program /usr/local/bin/squidGuard -c
/usr/local/squidGuard/squidGuard.conf
redirect_children 4
SquidGuard.conf
--------------------------
dbhome /blacklists
logdir /usr/local/squidGuard/log
dest ads {
domainlist ads/domains
urllist ads/urls
}
dest aggressive {
domainlist aggressive/domains
urllist aggressive/urls
}
dest audio-video {
domainlist audio-video/domains
urllist audio-video/urls
}
dest drugs {
domainlist drugs/domains
urllist drugs/urls
}
dest gambling {
domainlist gambling/domains
urllist gambling/urls
}
dest hacking {
domainlist hacking/domains
urllist hacking/urls
}
dest mail {
domainlist mail/domains
}
dest porn {
domainlist porn/domains
urllist porn/urls
}
dest proxy {
domainlist proxy/domains
}
dest violence {
domainlist violence/domains
}
dest warez {
domainlist warez/domains
urllist warez/urls
}
acl{
default {
pass !ads !aggressive !audio-video !drugs !gambling !hacking !mail
!porn !proxy !violence !warez all
redirect http://google.com
}
}
| |
| msarmadi@gmail.com 2006-04-27, 7:14 pm |
| Gops
First of all take a look to the logfiles. First see if the squidguard
gots the URLs. If so correct it's config file. If not there is sth
wrong with squid.
Hope it helps
Regards
| |
|
| In the squidguard log file I am having squid ready for request.... Is
there any prob with redirect program of squid..... pls....
| |
| msarmadi@gmail.com 2006-04-28, 1:13 pm |
| How about squid log-files?
There should be usefull information there. For example if squid fails
to load squidguard for any reason, e.g. permission denied, it is
reflected in the squid's cache.log file.
I recommend to monitor cache.log real time in a terminal, e.g. using
"tail -f cache.log" then start the squid daemon from the scratch and
see what is going on the first terminal. If squid loads the squidguard
properly it says in the cache.log and if not it shows an error message
there.
let me know the result
| |
|
| yea in the cache.log file there i find a message that cant open
squidGuard.conf file with path, what may be the reason, in the path the
file is there...
2006-05-02 18:01:29 [5823] (squidGuard): can't write to logfile
/usr/local/squidGuard/log/squidGuard.log
2006-05-02 18:01:29 [5823] (squidGuard): can't open configfile
/usr/local/squidGuard/squidGuard.conf
what can i do for this...
| |
|
| thank you very much for ur service and now squid and squidGuard is
working fine.....
thank you very much for the response.....
|
|
|
|