maikinhogiven
(usa Ubuntu)
Enviado em 16/03/2010 - 22:52h
#squid
http_port 3128 transparent
visible_hostname firewall
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
#cache
cache_mem 128 MB
maximum_object_size_in_memory 64 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
maximum_object_size 256 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir diskd /var/spool/squid 20000 16 256 Q1=64 Q2=72
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
hosts_file /etc/hosts
refresh_pattern ^ftp: 10 20% 2280
refresh_pattern ^gopher: 10 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 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 1065-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 631 #cups
acl Safe_ports port 777 #multilink http
acl Safe_ports port 901 #Swat
acl purge method PURGE
acl CONNECT method CONNECT
acl acesso_total src "/etc/squid/acesso_total"
http_access allow acesso_total
acl acesso_restrito src "/etc/squid/acesso_restrito"
http_access allow acesso_restrito
acl bloqueado url_regex -i "/etc/squid/bloqueado"
http_access deny bloqueado
#bloqueio downloads
acl downloads url_regex -i \.avi \.wmf \.rmvb \.mp3 \.wma \.wmv \.flv \.exe \.scr \.cmd \.bat \.wav \.mpeg \.mpg \.mov \.pif \.torrent \.vbs \.zip \.rar
http_access deny downloads
http_access deny all