Squid Cache Manager - Access Denied
August 31st, 2006Some time ago I installed squidguard to filter the content being browsed.
Today I wanted to see what is up the proxy server, since it took a while to respond. Using the webmin interface to access the Squid Cache Manager, I kept getting access denied, i searched awhile on the net for a solution but to no avail.
Then looking at the error againI realised that i looked rather familiar. The problem was that squidguard did not allow access to the page. So I opened the squidguard.conf file and had a look.
i added the localhost address to the “Source Addresses”:
src local {
ip 127.0.0.1
}
and also added “local” to the acl section:
local {
pass all
}
which solved my problem after a squid restart. I suppose reload might have worked aswell.
So I ended up with the following:
#
# CONFIG FILE FOR SQUIDGUARD
#
dbhome /var/lib/squidguard
logdir /var/log/squidguard
# TIME RULES:
# abbrev for weekdays:
# s = sun, m = mon, t =tue, w = wed, h = thu, f = fri, a = sat
#
# time workhours {
# weekly mtwhf 08:00 - 16:30
# date *-*-01 08:00 - 16:30
# }
# SOURCE ADDRESSES:
src admin {
ip 192.xxx.xxx.xxx/24
}
src local {
ip 127.0.0.1
}
src students {
ip 192.xxx.xxx.xxx/24
}
dest adult {
domainlist dest/adult/domains
urllist dest/adult/urls
expressionlist dest/files/expressions
redirect http://localhost/forbidden.html
