hierarchy_stoplist cgi-bin ? acl QUERY urlpath_regex cgi-bin \? cache_dir ufs /var/cache/squid 100 16 512 #Habilitar proxy transparente httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on no_cache deny QUERY auth_param basic children 5 auth_param basic realm Squid proxy-caching web server auth_param basic credentialsttl 2 hours auth_param basic casesensitive off refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern . 0 20% 4320 acl all src 0.0.0.0/0.0.0.0 #ips dos usuarios liberados acl ip_liberados src "/etc/squid/conf/ip_liberados" # usuarios liberados no msn acl liberamsn src "/etc/squid/conf/ip_liberamsn" #ips dos usuarios restritos #acl ip_restrito src "/etc/squid/conf/ip_restrito" #lista dos sites restritos para os usuarios restritos acl ip_restrito_sites dstdomain "/etc/squid/conf/ip_restrito_sites" #usuarios que acessam somente bancos acl ip_bancos src "/etc/squid/conf/ip_bancos" acl ip_bancos_sites dstdomain "/etc/squid/conf/ip_bancos_sites" #acls de ips completamente bloqueados para acesso a internet #acl bloqueados src "/etc/squid/conf/ip_bloqueados" 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 CONNECT method CONNECT acl redelocal src 192.168.0.0/24 #acl redelocal1 src 10.0.0.0/24 #acls de bloqueio no squid acl negasites url_regex "/etc/squid/conf/negasites" acl negapalavras url_regex "/etc/squid/conf/negapalavras" acl liberapalavra url_regex "/etc/squid/conf/liberapalavra" acl spy url_regex -i "/etc/squid/spy/spylist" #acl block_msn url_regex "/etc/squid/conf/block_msn" #acl msn dstdomain loginnet.passport.com #acl msn1 dstdomain passport.net #acl msn2 dstdomain msn.com acl msnmessenger url_regex -i gateway.dll http_access allow manager localhost http_access allow liberapalavra all http_access allow ip_liberados http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access deny spy #http_access deny ip_bloqueados #http_access deny msn http_access deny msnmessenger !liberamsn #http_access deny msn1 #http_access deny msn2 #http_access deny block_msn http_access deny negasites http_access deny negapalavras http_access deny ip_bancos !ip_bancos_sites #http_access deny ip_restrito !ip_restrito_sites #http_access allow redelocal1 http_access allow redelocal http_access deny all http_reply_access allow all icp_access allow all coredump_dir /var/cache/squid cache_log /var/log/squid/cache.log cache_access_log /var/log/squid/access.log cache_store_log /var/log/squid/store.log #redirect_program /usr/local/squirm/bin/squirm #redirect_children 10 error_directory /usr/local/squid/share/errors/Portuguese