neilson
(usa Outra)
Enviado em 30/09/2009 - 09:13h
http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
cache_mem 100 MB
cache_swap_low 90
cache_swap_high 98
maximum_object_size 1048576 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 200 KB
ipcache_size 2048
ipcache_low 90
ipcache_high 98
fqdncache_size 1024
cache_replacement_policy lru
memory_replacement_policy lru
######### PARÂMETROS da AUTENTICAÇÃO ############
#auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/usuarios
#auth_param basic program /usr/lib/squid/pam_auth /etc/shadow
#auth_param basic children 5
#auth_param basic realm ENTRE COM SEU LOGIN E SENHA
#auth_param basic credentialsttl 2 hours
#auth_param basic casesensitive off
#acl all src 192.168.254.0/255.255.255.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 8080 9443
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
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl bloq_arquivos url_regex -i "/etc/squid/sites.txt"
acl ipsreservados src "/etc/squid/ipsreservados.txt"
http_access allow ipsreservados bloq_arquivos
acl leonardo src 192.168.254.22
acl 4shared url_regex 4shared
http_access allow 4shared leonardo
acl all src 192.168.254.0/24
############## gerenciamento de banda ###############
delay_pools 1
delay_class 1 2
delay_parameters 1 -1/-1 32768/32768
delay_access 1 deny ipsreservados
delay_access 1 allow all
####################################################
http_access deny bloq_arquivos
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow all
cache_effective_user squid
cache_effective_group squid
visible_hostname srvfire.sinetel.com.br
error_directory /usr/share/squid/errors/Portuguese
#httpd_accel_host virtual
#httpd_accel_port 80
#httpd_accel_with_proxy on
#httpd_accel_uses_host_header on
#coredump_dir /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
ssl_unclean_shutdown on