joaovitorlinux
(usa Ubuntu)
Enviado em 29/10/2007 - 12:44h
http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
#bloquear por extensão
acl extensoes urlpath_regex -i \.exe$ \.$zip \.src$ \.pif$ \.asf$ \.arj$ \.com$ \.bat$ \.scr$ \.mov$ \.wmv$ \.wma$ \.mp3$ \.wmf$ \.mpe$ \.mpeg$ \.mpg$ \.pps$ \.ppt$
cache_mem 64 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 32 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 512 16 256
cache_access_log /var/log/squid/access.log
visible_hostname kurumin
dns_nameservers 200.176.2.10
ftp_user kurumin@kurumin.com.br
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
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 SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 901 # SWAT
acl Safe_ports port 8080
acl purge method PURGE
acl CONNECT method CONNECT
acl rede_interna src 192.168.0.0
acl msn url_regex /gateway/gateway.dll
acl ip_especiais src "/etc/squid/ip_especiais.txt"
acl liberado url_regex "/etc/squid/liberado.txt"
acl negado src "/etc/squid/ip_bloqueado.txt"
acl liberado2 url_regex "/etc/squid/liberado2.txt"
acl bloqueado src "/etc/squid/ip_vendas"
# A acl "proibidos" é usada para fazer bloqueio baseado em palavras
acl proibidos dstdom_regex "/etc/squid/proibidos"
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
http_access allow msn
http_access allow ip_especiais
http_access deny proibidos
http_access deny extensoes
http_access deny negado
http_access deny all !liberado
http_access deny bloqueado !liberado
http_access allow rede_interna
#acl bloqueados url_regex -i "/etc/squid/bloqueados"
http_access allow all
#===================== Controle de Banda =================================
acl total src "/etc/squid/banda_total.txt"
acl limitada src "/etc/squid/banda_limitada.txt"
delay_pools 2
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow total
delay_class 2 2
delay_parameters 2 6000/6000 6000/6000
delay_access 2 allow limitada