#Porta Proxy
http_port 3128
#hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 64 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 30000 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 4000 KB
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_swap_log /var/log/squid/swap.log
dns_nameservers 200.204.0.10/200.204.0.138
#Bloqueio e Liberacao de Sites
acl ipsliberados src "/etc/squid/liberados/ips.txt"
acl arquivosliberados src "/etc/squid/liberados/arquivos.txt"
acl arquivosbloqueados urlpath_regex -i "/etc/squid/bloqueados/arquivos.txt"
acl bloqueados url_regex -i "/etc/squid/bloqueados/block.txt"
acl liberados url_regex -i "/etc/squid/liberados/unblock.txt"
acl rede_interna src 200.200.0.0/16
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 to_localhost dst 127.0.0.0/8
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 CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny arquivosbloqueados !arquivosliberados
http_access allow ipsliberados
http_access deny bloqueados !liberados
http_access allow rede_interna
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
http_access deny all
icp_access allow all
visible_hostname servidor