All pastes #831006 Raw Edit

Someone

public text v1 · immutable
#831006 ·published 2007-12-24 13:41 UTC
rendered paste body
http_port 3128 transparent
visible_hostname FRIRON - Servidor_Proxy (by jlaudirt@yahoo.com.br)
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
#auth_param basic program /usr/libexec/ncsa_auth/ncsa_auth /etc/squid/passwd
#auth_param basic children 5
#auth_param basic realm Entre com o usuario e a senha. Lembre-se, voce esta sendo vigiado!
#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 grpacessorestrito proxy_auth "/etc/squid/grpacessorestrito"
#acl grpacessototal proxy_auth "/etc/squid/grpacessototal"
#acl bloqueios_url url_regex "/etc/squid/bloqueios_url"
#acl liberados_url url_regex "/etc/squid/liberados_url"
acl acesso_total src "/etc/squid/novo/acesso_total"
acl acesso_restrito src "/etc/squid/novo/acesso_restrito"
acl liberado url_regex -i "/etc/squid/novo/liberado"
acl download url_regex -i "/etc/squid/novo/download"
acl bloqueado url_regex -i "/etc/squid/novo/bloqueado"
#acl carintexto url_regex -i "/etc/squid/novo/carin"
#acl carin src 192.168.0.14
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 20 21       # ftp
acl Safe_ports port 49005	# tecnomix saf
acl Safe_ports port 443 563     # https, snews
acl Safe_ports port 110         #POP
acl Safe_ports port 25          #SMTP
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 Safe_ports port 1863        #Libera MSN
acl Safe_ports port 1393        #porta E-mensseger
acl CONNECT method CONNECT
#configuracao default do squid
#acl autenticacao proxy_auth REQUIRED
#http_access allow grpacessototal
#http_access deny bloqueios_url !liberados_url
#http_access allow grpacessorestrito
acl manager proto cache_object
#http_access allow autenticacao
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow acesso_total
http_access allow liberado !bloqueado
http_access allow liberado !acesso_restrito
#http_access deny carin !carintexto
http_access deny download
http_access deny bloqueado
http_access allow acesso_restrito !download !bloqueado
http_access deny all
http_reply_access allow all
icp_access allow all
deny_info http://192.168.0.1/download.htm download
deny_info http://192.168.0.1/bloqueado.htm bloqueado
cache_mem 64 MB
## tamanho maximo de objetos em cache na memoria ##
maximum_object_size_in_memory 128 KB

## tamanho maximo de objetos no cache do disco ##
maximum_object_size 512 MB

## tamanho minimo de objetos no cache do disco ##
minimum_object_size 0 KB

## parametros para esvaziar o cache quando necessario ##
cache_swap_low 90
cache_swap_high 95
coredump_dir /var/cache/squid
cache_dir ufs /var/cache/squid 100 16 256
access_log /var/log/squid/access.log squid
cache_store_log /var/log/squid/store.log
cache_log /var/log/squid/cache.log