schmite
(usa Debian)
Enviado em 07/02/2008 - 10:42h
Ainda não consegui uma solução para o problema.
Para facilitar, segue o conteudo do squid.conf:
http_port 3128 transparent
cache_mem 8 MB
maximum_object_size 4096 KB
cache_dir ufs /var/spool/squid 100 64 64
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
emulate_httpd_log on
error_directory /usr/share/squid/errors/Portuguese
visible_hostname BLOQUEADOR_DE_INTERNET_XMT
acl QUERY urlpath_regex cgi-bin \?
no_cache allow query
#cache deny QUERY
#acl apache rep_header Server ^Apache
#broken_vary_encoding allow apache
#hosts_file /etc/hosts
#refresh_pattern ^ftp: 1440 20% 10080
#refresh_pattern ^gopher: 1440 0% 1440
#refresh_pattern . 0 20% 4320
#>>>>> ACLs Gerais <<<<<
acl all src 0.0.0.0/0.0.0.0
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 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 563
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 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
always_direct allow all
#>>>>> Minhas ACLs <<<<<
acl network src 10.0.0.0/24
acl socios arp 00:03:0d:2a:ea:92 00:30:4f:34:b1:22
acl bsites dstdomain "/etc/squid/bsites.txt"
acl bpalavras url_regex -i "/etc/squid/bpalavras.txt"
acl extensoes urlpath_regex .mov$ .wma$ .scr$ .exe$ .mp3$ .avi$ .mpg$ .mpeg$ .bat$
acl msn port 1863
acl lpalavras url_regex -i "/etc/squid/lpalavras.txt"
#>>>>> Diretivas http_access <<<<<
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#>>>>> Regras da minha ACL <<<<<
http_access deny msn !socios
http_access deny extensoes !socios
http_access deny bpalavras !socios
http_access deny bsites !socios
http_access allow lpalavras
http_access allow network
http_access deny all
icp_access allow all