klebrr
(usa Linux Mint)
Enviado em 23/10/2009 - 09:59h
#Porta Padrão
http_port 3128
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log squid
hosts_file /etc/hosts
error_directory /usr/share/squid/errors/Portuguese
#Regras gerais
acl all src 192.168.0.0/255.255.255.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 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 Libera_IP src "/etc/squid/ip_Liberados"
#------------------------------------------
acl negado url_regex -i "/etc/squid/negado"
#------------------------------------------
http_access allow Libera_IP
#---------------------------------
#exclui das regras de bloqueio os IPS Liberados
http_access deny negado !Libera_IP
#---------------------------------
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
http_access allow localhost
# Reinicie o squid com "#squid -k reconfigure"
# Certifique-se que o ip que deseja testar não esteja na regra Libera_IP (liberado)