Enviado em 12/09/2011 - 21:07h
Boa a noite a todos, tenho uma dúvida e preciso da ajuda de vcs em relação a configuração que eu segui de alguns tutorias. O meu squid.conf tá bacana ou está muito ruim?? estou aceitando sugestões...# Porta do Squid
http_port 3128
# Nome do servidor
visible_hostname servidor
cache_mgr webmaster@localhost
error_directory /usr/share/squid3/errors/Portuguese
# Cache
hierarchy_stoplist cgi-bin ?
cache_mem 256 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 300 MB
minimum_object_size 0 KB
cache_swap_low 70
cache_swap_high 95
cache_dir ufs /var/spool/squid3 2048 16 256
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
# Logs de acesso
access_log /var/log/squid3/access.log
cache_log /var/log/squid3/cache.log
# Regras acl_http
acl localhost src 127.0.0.1/32
acl rede_interna src 192.168.0.0/24
acl manager proto cache_object
http_access allow manager localhost
http_access deny manager
acl purge method PURGE
http_access allow purge localhost
http_access deny purge
acl Safe_ports port 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 80 # http
acl Safe_ports port 210 # wais
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 443 # https
acl Safe_ports port 488 # gss-http
acl Safe_ports port 563 # nntps
acl Safe_ports port 591 # filemaker
acl Safe_ports port 631 # cups
acl Safe_ports port 777 # multiling http
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # swat
acl Safe_ports port 1025-65535 # unregistered ports
http_access deny !Safe_ports
acl connect method CONNECT
acl SSL_ports port 443 # https
acl SSL_ports port 563 # nntps
acl SSL_ports port 873 # rsync
http_access deny connect !SSL_ports
# Permissões e bloqueios
acl maqtrab src "etc/squid3/maqtrab"
acl proibidos url_regex -i "/etc/squid3/proibidos"
http_access deny proibidos !maqtrab
acl extensoes urlpath_regex -i "/etc/squid3/extensoes"
http_access deny extensoes !maqtrab
acl downloads url_regex -i "/etc/squid3/downloads"
http_access deny downloads !maqtrab
# Controle de banda
delay_pools 2
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow maqtrab
delay_class 2 2
#delay_parameters 2 70000/70000 70000/70000
#delay_parameters 2 0/0 0/0
# Limite número de conexões por usuário
acl CONEXOES maxconn 8
http_access deny CONEXOES rede_interna
# Permisão rede local e servidor
http_access allow localhost
http_access allow rede_interna
# Bloqueio de usuarios fora da rede
http_access deny all