Soul_Keeper
(usa Ubuntu)
Enviado em 03/06/2010 - 21:44h
Galera estou tentando à dias rodar o HAVP no squid e não estou obtendo sucesso...
Tenho plena certeza que o problema está no squid.conf. Já googleei e não achei a solução!
http://img101.imageshack.us/img101/827/printjpg.jpg
Ai vai meu squid.conf
##SQUID BY RAFAEL RAMON##
http_port 3128 transparent
##CACHE CONFIG##
cache_mem 1280 MB
maximum_object_size 1024 MB
maximum_object_size_in_memory 128 KB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid3 150000 16 256
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
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 WINDOWS UPDATE##
refresh_pattern windowsupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern
www.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
refresh_pattern download.windowsupdate.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
refresh_pattern update.microsoft.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
access_log /var/log/squid3/access.log squid
cache_log /var/log/squid3/cache.log
##HAVP##
cache_peer 127.0.0.1 parent 8080 0 no-query no-digest no-netdb-exchange default
cache_peer_access 127.0.0.1 allow all
acl Scan_HTTP proto HTTP
never_direct allow Scan_HTTP
dns_nameservers 201.10.128.2 201.10.120.3
acl all src
acl transoeste src 192.168.1.0/255.255.255.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563 873
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 873 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
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 901 # swat
acl Safe_ports port 1025-65535 # portas altas
acl purge method PURGE
acl CONNECT method CONNECT
acl dominiobloqueado url_regex -i "/etc/squid3/dobloq"
acl ipbloqueado src "/etc/squid3/ipbloq"
acl bloqueado2 url_regex -i "/etc/squid3/bloqued2"
acl msnliberado src "/etc/squid3/msnliberado"
acl msn url_regex -i gateway.dll
acl msn2 dstdomain loginnet.passport.com
acl msn3 rep_mime_type -i ^application/x-msn-messenger$
acl palavrasb url_regex "/etc/squid3/palavrasb"
acl sites url_regex -i "/etc/squid3/sites"
acl ipliberado src "/etc/squid3/ipliberado"
acl restritos src "/etc/squid3/restritos"
acl bloqueado url_regex "/etc/squid3/bloqued"
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny dominiobloqueado
http_access deny ipbloqueado
http_access allow ipliberado
http_access allow sites
http_access deny bloqueado
http_access allow msnliberado
http_access deny msn
http_access deny msn2
http_access deny msn3
http_access deny bloqueado2
http_access allow restritos
http_access deny palavrasb
http_access allow transoeste
http_access allow localhost
http_access deny all
cache_mgr Rafael_Ramon
visible_hostname SQUID_TRANSOESTE
deny_info
http://www.transoeste.com.br/deny.html palavrasb bloqueado bloqueado2
http_access deny all
error_directory /usr/share/squid3/errors/pt-br