msoutojunior
(usa Ubuntu)
Enviado em 01/11/2013 - 10:54h
####
#Porta do Squid#
http_port 3128
####
#Nome do Servidor#
visible_hostname CCNSYSTEMS
####
#Cache#
cache_dir ufs /var/spool/squid3 3000 16 256
#####
#Log de acesso#
access_log /var/log/squid3/acces.log squid
#####
#Liberação por time
#acl entreterimento url_regex -i "etc/squid3/regras/entreterimento"
#acl intervalo time MTWHF 12:00-14:00
#acl fim_semana time AS 06:00-23:00
#Bloqueio e Desbloqueio de Sites URL e Downloads
#acl sites_liberados url_regex -i" etc/squid3/regras/sites_liberados"
#http_access allow sites_liberados
acl sites_proibidos url_regex -i "etc/squid3/regras/sites_proibidos"
#http_access deny sites_proibidos
acl downloads_proibidos url_regex -i "\.exe\.torrent\.avi"
#http_access deny downloads_proibidos
#####
#acl all src 0.0.0.0/0.0.0.0
#http_access deny all
#Email#
cache_mgr marcos@ccnsystems.com.br
####
#Acl Portas#
acl SSL_ports port 443
acl Safe_ports port 80 #http
acl Safe_ports port 82 #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 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 901 #swat
acl Safe_ports port 22 #ssh
acl Safe_ports port 25 #smtp
acl Safe_ports port 81 #https
acl Safe_ports port 82 #SIC
acl Safe_ports port 8080 #http
acl Safe_ports port 8181 #https
acl Safe_ports port 587 #smtp
acl Safe_ports port 110 #pop
acl Safe_ports port 200 #sic
acl Safe_ports port 210 #wais
acl Safe_ports port 280 #http-mgmt
acl Safe_ports port 488 #gss-http
acl Safe_ports port 873 #rsync
acl Safe_ports port 901 #swat
acl Safe_ports port 3456 #receita
acl Safe_ports port 30000 #Bradesco
acl Safe_ports port 3001 #diario oficial
acl Safe_ports port 1025-65535 #portas altas
acl CONNECT method CONNECT
#######
#Regras acl padrão#
acl manger proto cache_object
acl localhost src 127.0.0.1/32
acl redelocal src 172.16.3.0/24
#acl liberado src 172.16.3.98/24
#http_access allow liberado
#Permissão de Bloqueio Padrão
#http_access deny manager
http_access allow localhost
http_access allow redelocal
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#http_access allow liberado
#http_access allow entreterimento intervalo
#http_access allow entreterimento fim_semana
#http_access allow sites_liberados
http_access deny sites_proibidos
http_access deny downloads_proibidos
http_access deny all
#####