192.168.164.111 ip юзверя из группы ADMINПолный набор acl + http_access:
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
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 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 Safe_ports port 5222 5223 # jabber
acl Safe_ports port 5999 # CVSup
acl Safe_ports port 8080 81 8008 8081 # other web ports
acl CONNECT method CONNECT
acl jabber port 5222 5223 # jabber
acl icq_ports port 5190 4000 4040 5201 443 # icq
acl other_ports port 8080 8008 81 8081
acl SSL_ports port 119 443 444 563 5190 8080 8008 8081
acl comita src 192.168.164.0/255.255.252.0 213.182.168.0/255.255.255.0
acl wrktime time MTWHF 9:00-21:00
acl postwrk time MTWHF 18:00-21:00
acl ADMIN proxy_auth "/etc/squid3/users/users.admin"
acl icq_dst dstdomain login.icq.com
acl crypt32 url_regex -i ^http://www.download.windowsupdate.com/msdownload/update/v3/s...$
acl crypt32cab url_regex -i ^http://www.download.windowsupdate.com/msdownload/update/v3/s...$
acl music urlpath_regex -i \.(MP3|mp3|mpeg|avi|ra|ram)$
acl banner url_regex "/etc/squid3/banner.acl"
acl blocked url_regex "/etc/squid3/blocked.acl"
acl bad_site url_regex "/etc/squid3/bad_site.acl"
acl ncsa_users proxy_auth REQUIRED
http_access allow ncsa_users
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access allow CONNECT jabber
http_access allow crypt32 comita
http_access allow crypt32cab comita
http_access allow ADMIN !bad_site
# NO_CACHE
# no_cache deny all
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
# And finally deny all other access to this proxy
http_access deny all
Подправил bad_sites.acl. С включённым debug_options ALL, 9 при попытке зайди на запрещённый acl-м сайт в cache.log пусто. На сайт заходит без проблем
cache.log:
2010/04/19 10:20:12| Starting Squid Cache version 3.0.STABLE8 for x86_64-pc-linux-gnu...
access.log:
1271658056.404 83 192.168.164.111 TCP_MISS/200 5559 GET http://odnoklassniki.ru/ grigoryn DIRECT/213.33.198.218 text/html
1271658056.474 154 192.168.164.111 TCP_MISS/200 729 GET http://sitecheck2.opera.com/? grigoryn DIRECT/91.203.99.45 text/xml
1271658056.634 38 192.168.164.111 TCP_REFRESH_MODIFIED/200 666 GET http://odnoklassniki.ru/favicon.ico grigoryn DIRECT/213.33.198.222 image/x-icon
1271658056.874 47 192.168.164.111 TCP_MISS/304 483 GET http://www.tns-counter.ru/V13a***R>*odnoklassniki_ru/ru/UTF-8/tmsec=odnoklassniki_site/ grigoryn DIRECT/217.73.200.222 -
1271658056.911 66 192.168.164.111 TCP_MISS/200 386 GET http://counter.yadro.ru/hit? grigoryn DIRECT/88.212.196.102 image/gif