squid
http_port 3128
visible_hostname Servidor # Servidor = Nome Servidor
cache_mgr email@dominio.com.br # Email do administrador
error_directory /usr/share/squid3/errors/Portuguese # Mensagem erro em Portugues
# Configurar Cache
hierarchy_stoplist cgi-bin ?
cache_mem 32 MB # Memoria usada pelo cache, recomendado usar 1/3
maximum_object_size_in_memory 64 KB # Define tamanho maximo dos objetos na ram
maximum_object_size 100 MB # Define o tamanho maximo dos objetos no cache do disco
minimum_object_size 0 KB # Tamanho minimo dos objetos no cache
cache_dir ufs /var/spool/squid3 2048 16 256
refresh_pattern ^ftp: 360 20% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
access_log /var/log/squid3/access.log # Caminho de log de acesso do Squid
cache_log /var/log/squid3/cache.log # Caminho de log do cache
# Controle de Acesso
acl localhost src 10.1.0.18/24 # Ip do servidor
acl localhost src 10.1.0.0/24 # Ip da rede
acl manager proto cache_object # Obter informações sobre o estado do Squid
# Apenas o servidor ira obter informacoes do Squid
http_access allow manager localhost
http_access deny manager
# PURGE serve para limpar/excluir objetos armazenados no cache
acl purge method PURGE
http_access allow purge localhost
http_access deny purge
# Portas que serão Liberadas
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