:help:
Segue as regras
http_port 5128 transparent
visible_hostname squidserver
cache_effective_user squid
cache_effective_group squid
cache_mgr
[email protected]
#Configuracao do cache
cache_mem 64 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 512 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
dns_nameservers 127.0.0.1 189.17.1.130 200.255.255.66 200.255.255.70
dns_defnames on
cache_dir aufs /var/cache/squid01 2048 16 256
#cache_dir diskd /var/cache/squid01 2048 16 256 Q1=64 Q2=72
cache_store_log none
cache_access_log none
#/var/log/squid/access.log
error_directory /usr/share/squid/errors/Portuguese
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 # 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 Safe_ports port 901 # swat
acl purge method PURGE
acl CONNECT method CONNECT
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
acl redelocal src 192.168.0.0/16
http_access allow localhost
http_access allow redelocal
http_access allow all
http_reply_access allow all
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
# Bloqueia acesso externo
http_access deny all
#memory_replacement_policy heap LRU
memory_replacement_policy heap GDSF
#memory_replacement_policy heap LFUDA
#cache_replacement_policy heap LRU
#cache_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
half_closed_clients off
detect_broken_pconn on
pipeline_prefetch on
# O que nao bater nas regras acima, os valores abaixo segura como padrao...
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
zph_mode tos
zph_local 0x02
zph_sibling 0x02
zph_option 136
zph_parent 0
forwarded_for off
memory_pools_limit 0
icp_hit_stale on
store_avg_object_size 128 KB
store_objects_per_bucket 20
já tem + ou - 2 semanas q 3 semanas q venho testando configurações.. antes mesmo usava 4 diretorios de diskd,
cache_dir diskd /var/cache/squid01 750 16 256 Q1=64 Q2=72
cache_dir diskd /var/cache/squid02 750 16 256 Q1=64 Q2=72
cache_dir diskd /var/cache/squid03 750 16 256 Q1=64 Q2=72
cache_dir diskd /var/cache/squid04 750 16 256 Q1=64 Q2=72
a navegação parecia q era ótima. muit rapido mesmo .. mas só aguantava 5 horas e consumia a memoria toda.. sobrava apenas 4 ate travar a maquina..
hoje uso
aufs consgue aguentar 15 horas..rsrs mas consome a memorias toda do mesmo jeito
tenho q dar reboot's diarios .. as vzes da vontade de voltar ao webproxy do mk .. mas não gosto muito.. não tem nem comparação com squid.. a performace é outra coisa, as regras q eu uso acho q não pode ser mais.. já tentei de quase tudo... estou usando Ubuntu Server rodando apenas o basico na maquina.. (ssh, bind9, squid 2.7) mas mesmo assim 512mb não guenta.. só me resta isso agora, se não der jeito vou usar Debian, inclusive é minha preferida..
grato se puder me ajudar..:dong: