bestmoor
(usa Debian)
Enviado em 08/02/2012 - 22:12h
Ola Comunidade como no diz no titulo meu squid 3.1 tem um problema que descobri depois de alguns testes
ele somente atualiza as regras de bloqueio depois que faço limpeza da cache . Se alguem puder dar uma luz
segue arquivo
http_port 3128 transparent
visible_hostname kyojin
cache_mem 312 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 312 MB
maximum_object_size_in_memory 64 KB
access_log /var/log/squid3/access.log squid
cache_log /var/log/squid3/cache.log
cache_store_log /var/log/squid3/store.log
pid_filename /var/log/squid3/squid3.pid
mime_table /usr/share/squid3/mime.conf
diskd_program /usr/lib/squid3/diskd
unlinkd_program /usr/lib/squid3/unlinkd
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
acl manager proto cache_object
acl localhost src 127.0.0.1/32
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 21 # ftp
acl Safe_ports port 443 563 1863 # https
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
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
# =========================== CONTROLE DE BANDA ===============================
# Cria outras acls com os IPs que serao aplicados a regra
acl redelocal src 10.0.0.0/8
acl banda_liberada src "/etc/squid3/bloqueados/ips.txt"
acl banda_restritos src "/etc/squid3/bloqueados/iprestritos"
delay_pools 2
# Significa que teremos dois controles de banda
# Primeiro controle de banda
delay_class 1 2
# -1/-1 significa que nao teremos limites para a delay pool 1
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow banda_liberada
# Segundo controle de banda
delay_class 2 2
# Limita a banda para +- 16 kbytes
delay_parameters 2 16000/16000 16000/16000
delay_access 2 allow banda_restritos
#cache_mgr webmaster
#mail_program mail
#cache_effective_user proxy
cache_effective_user squid3
#cache_effective_group proxy
cache_effective_group squid3
#httpd_suppress_version_string off
error_directory /usr/share/squid3/errors/Portuguese
#################### regras de bloqueio ######################
acl libera src "/etc/squid3/bloqueados/ip_liberado"
http_access allow libera
acl site_permitido dstdomain "/etc/squid3/bloqueados/url_liberado"
http_access allow site_permitido
#acl administracao arp "/etc/squid3/bloqueados/mac.txt"
#http_access allow administracao
acl filmel urlpath_regex -i \.mpeg$ \.avi$
acl bloqueados url_regex -i "/etc/squid3/bloqueados/block.txt"
#acl download urlpath_regex \.exe$ \.zip$ \.arj$ \.tar.gz$ \.tgz$ \.rpm$ \.mp3$
acl manha time 12:00-13:29
#acl msn url_regex -i /gateway/gateway.dll
#acl sitesmsn url_regex "/etc/squid3/bloqueados/msn.txt"
#acl tarde time 18:00-23:00
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny filmel
#http_access allow ips
http_access deny bloqueados !manha
#!tarde
#http_access deny msn sitesmsn
#http_access allow rede_interna
#icp_access deny all
#debug_options 33,2
http_access allow localhost
http_access allow redelocal
http_access deny all
#dns_testnames 8.8.8.8
cache_dir ufs /var/spool/squid3 8192 16 256