I am trying to configure a squid proxy in such a way that it will be blocking all the unwanted sites I list in a file. But I can see that the configuration is not getting worked.
My config is as follows :
squid.conf
Quote:
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl cok src 192.168.1.0/24
acl blocksites url_regex "/usr/local/squid/blocked.domains.acl"
http_access allow cok
http_access deny blocksites
http_access allow manager localhost
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
# And finally deny all other access to this proxy
http_access deny all
|
blocked.domains.acl
Quote:
.orkut.com
.gmail.com
.yahoo.com
.hotmail.com
|
I can access all the sites using this squid, even the blocked ones are getting opened
Can someone help me on this ?
I also need help on the log files of squid. I don't understand a single line from squid. Can someone suggest me an efficient squid log reader ?
Version of my squid:
The command squid -v gives me the result :
Squid Cache: Version 3.0.STABLE19
Thanks in advance.