phrich
(usa Slackware)
Enviado em 10/01/2012 - 20:44h
Cara vou fazer umas alteraçoes aqui no seu squid.conf, analise, copie, cole e teste:
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 128 MB
maximum_object_size_in_memory 512 KB
maximum_object_size 512 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid3 20000 16 256
cache_access_log /var/log/squid3/access.log
visible_hostname Proxy_SR_SERVICOS
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
auth_param basic realm DIGITE SEU USUARIO E SENHA
auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic credentialsttl 2 hour
acl all src
acl autenticados proxy_auth REQUIRED
acl manager proto cache_object
# teste com a linha abaixo comentada
#acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 995
acl Safe_ports port 110
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl Safe_ports port 4443
acl purge method PRUGE
acl CONNECT method CONNECT
acl usuarios_livres proxy_auth "/etc/squid3/nivel1"
acl usuarios_bloq proxy_auth "/etc/squid3/nivel2"
acl livre url_regex -i "/etc/squid3/livre"
acl bloq url_regex -i "/etc/squid3/bloq"
acl negra dstdom_regex -i "/etc/squid3/negra"
# A linha abaixo vc nega com "http_access deny all"
#http_access deny !autenticados
http_access allow manager localhost
http_access deny manager
http_access deny CONNECT !SSL_ports
http_access deny !Safe_ports
http_access allow purge localhost
http_access allow purge
#http_access allow localhost
http_access allow usuarios_livres
http_access allow usuarios_bloq
http_access allow livre
http_access deny usuarios_bloq !bloq
http_access deny negra
http_access deny usuarios_bloq !negra
#A linha abaixo foi movida para cá pois se vc deixar lá em cima
#ela vai liberar tudo sem fazer os seus bloqueios
http_access allow autenticados
http_access deny all
error_directory /usr/share/squid3/errors/Portuguese
cache_mgr nome@empresa.com.br
###
Teste assim e me avise se deu certo.