hervalg
(usa Debian)
Enviado em 17/11/2009 - 13:40h
vaini, abaixo o squid.conf, de acordo com as alterações que vc sugeriu:
#
http_port 3128
#
#
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl Apache rep_header Server ^Apache
broken_vary_encoding allow apache
access_log /var/log/squid/access.log squid
#Default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#Defaults:
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 21 443 563 70 210 1025-65535 10000
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 15000
acl CONNECT method CONNECT
#Cache
cache_mem 32 MB
cache_swap_low 97
cache_swap_high 98
#Default configuration:
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
ftp_passive on
auth_param basic program /usr/lib/squid/ncsa_auth /opt/squid/usuarios
auth_param basic children 5
auth_param basic realm Autenticacao para uso do Proxy
acl pass proxy_auth REQUIRED
acl minha_rede src 172.27.0.0/24
acl minha_rede src 200.99.199.0/24
acl minha_rede src 201.12.140.3
acl proibido url_regex "/opt/squid/proibido.txt"
acl permitido url_regex "/opt/squid/permitido.txt"
acl MsnSources url_regex -i "/opt/squid/sites.msn"
acl MsnDomains dstdomain -i "/opt/squid/sites.msn"
acl MsnUrls urlpath_regex -i "/opt/squid/sites.msn"
acl MsnProgram req_mime_type application/X-msn-messenger
acl MsnManual dstdomain byrdr.omega.contacts.msn.com local-bay.contacts.msn.com byfiles.storage.msn.com akhtm.nspmotion.com blufiles.storage.msn.com
www.gowindowslive.com view.atdmt.com local-sn.contacts.msn.com ec.atdmt.com tkrdr.storage.msn.com livefiles19.vo.msecnd.net
www.sqm.microsoft.com sqmserver.dll switch.atdmt.com rsi.hotmail.com nspmotion.com icover.com.br rad.msn.com rmd.atdmt.com t.msn.com
external_acl_type ler_admin %LOGIN /opt/squid/ler
acl admin external ler_admin
http_access allow MsnManual
http_access allow all MsnSources MsnDomains MsnUrls MsnProgram
http_access deny !minha_rede
http_access deny !pass
http_access allow permitido
http_access allow admin
http_access deny proibido
http_access allow all
miss_access allow all