#
# Recommended minimum configuration:
#
# Squid normally listens to port 3128
http_port 3128
http_port 3129 intercept
acl bloqueados url_regex -i "/usr/local/etc/squid/bloqueados"
http_access deny bloqueados
acl palavrasproibidas dstdom_regex "/usr/local/etc/squid/palavrasproibidas"
http_access deny palavrasproibidas
acl block_geral dstdomain .nba.com .facebook.com
http_access deny block_geral
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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 allow localhost manager
http_access deny manager
http_access allow localnet
http_access allow localhost
http_access deny all
cache_mem 512 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 30000 KB
maximum_object_size_in_memory 40 KB
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
#pid_filename /var/log/squid/squid.pid
memory_pools off
#diskd_program /usr/local/squid/diskd
#unlinkd_program /usr/local/libexec/squid/unlinkd
quick_abort_max 16 KB
quick_abort_pct 95
quick_abort_min 16 KB
request_header_max_size 20 KB
reply_header_max_size 20 KB
request_body_max_size 0 KB
cache_mgr
[email protected]
cache_effective_user squid
cache_effective_group squid
httpd_suppress_version_string on
visible_hostname unbound.ccbsumare.local
cache_dir ufs /var/squid/cache 45000 16 256
coredump_dir /var/squid/cache
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
# ---- Cache do Windows Update ----
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern msgruser.dlservice.microsoft.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern windowsupdate.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern
www.microsoft.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
dns_timeout 10 seconds
dns_nameservers 192.168.0.5 10.1.1.2 8.8.8.8 # DNS Server
vary_ignore_expire on
request_header_access From deny all
request_header_access Server deny all
request_header_access Link deny all
request_header_access Via deny all
request_header_access X-Forwarded-For deny all
#Paginas de Errors
error_directory /usr/local/etc/squid/errors/pt-br/
#FIM