phrich
(usa Slackware)
Enviado em 03/09/2012 - 13:11h
Vamos fazer umas correções, veja que eu alterei a ordem de algumas coisas e fiz alguns comentários no seu conf...
No demais, basta setar o proxy nos navegadores e ser feliz:
http_port 3328
visible_hostname srv2-r610
acl all src all
acl maquinas src 192.168.1.0/24
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 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
acl srv2 src 192.168.1.1
acl proibir url_regex "/etc/squid/proibidos/sites_proibidos"
# AQUI VC ESTÁ NEGANDO O ACESSO A acl máquinas, vc deveria utilizar uma excessão, liberar o acesso com excessão, do que constar em proibir...
# Modo errado
#http_access deny maquinas proibir
#MODO CORRETO
http_access allow maquinas !proibir
http_access allow srv2
http_access deny all
icp_access deny all
htcp_access deny all
hierarchy_stoplist cgi-bin ?
cache_mem 8 MB
cache_dir ufs /var/spool/squid 100 16 256
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
icp_port 3130
hosts_file /etc/hosts