[squid-users] url_rewrite_program is ignored by squid
Moataz Elmasry
zaza1851983ml at googlemail.com
Wed Jun 29 17:12:28 UTC 2016
Hi all,
I'm trying to use squid with squidguard, but it seems that squid3 is
somehow ignoring the url_rewrite_program completely. While starting squid
I'm getting the message:
"
helperOpenServers: Starting 0/20 'squidGuard' processes
helperOpenServers: No 'squidGuard' processes needed
"
And nothing is being directed to squidguard.
Just to be sure, I tried a simple bash program as well as a php program to
handle the redirection, and I'm receiving a similar message and nothing is
being redirected.
Config files are listed below. All files are owned by the user "proxy"
OS: ubuntu 16.04
squid: 3.5.12-1ubuntu7.2
squidguard: 1.5-5
Here's squid.conf
"
pinger_enable off
url_rewrite_access allow all
url_rewrite_program /usr/bin/squidGuard -c /etc/squidguard/squidGuard.conf
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 443 # https
acl Safe_ports port 1025-65535 # unregistered ports
acl CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
acl whitelist dstdomain play.google.com
http_access allow whitelist
http_access deny all
http_port 3128
coredump_dir /var/spool/squid
"
And here's squidGuard.conf
"
dbhome /var/lib/squidguard/db
logdir /var/log/squidguard
dest ads {
domainlist ads/domains
}
dest whitelist {
domainlist whitelist/domains
}
acl {
default {
pass whitelist none
redirect http://www.contensi.com
}
}
"
Any ideas what the problem is?
Thanks
Moataz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160629/618fdc99/attachment-0001.html>
More information about the squid-users
mailing list