#DIRETORIO CACHE NO HD
cache_dir ufs /var/spool/squid/cache 48 16 256
# Localização do log de acessos do Squid
#cache_replacement_policy heap LFUDA
#memory_replacement_policy heap GDSF
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
#emulate_httpd_log on
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 10 20% 2280
acl all src 0.0.0.0/0.0.0.0
cache_store_log /var/log/squid/store.log
#emulate_httpd_log on
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 10 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 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 591 # filemaker
acl Safe_ports port 544 # filemake
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
acl SSL_ports port 443 # https
acl SSL_ports port 465 # YAHOO - SMTP (SSL)
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl SSL_ports port 995 # YAHOO - POP3 (SSL)
acl purge method PURGE
acl FTP proto FTP
acl CONNECT method CONNECT
#LIBERACOES PADROES
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 allow CONNECT FTP
http_access deny CONNECT !SSL_ports
## LISTAS DE CONTROLE DE ACESSOS
#acl rede-interna src 192.168.0.0/24
## Libera para a rede local e bloqueia acesso externo
http_access allow all
#http_access deny !rede-interna
#http_access allow rede-interna
#http_access deny all
#cache_effective_user radical
#cache_effective_group radical
error_directory /usr/share/squid/errors/Portuguese