pessoal, estive analisando o access.log de 2 servidores com lusca, e percebi
que só tenho TCP_MISS, nenhum hit, muito estranho, a maioria dos sites
acessados possuem conteúdo que seriam cacheados......

o squid.conf é bem simples, só bloqueio algumas extensões, de resto, é tudo
liberado, tenho uma regra para redirecionar o fluxo da porta 80 para 3128, e
com o tail eu vejo as linhas do access.log fluirem normalmente, mas somente
com TCP_MISS, tanto pra exe, imagens jpg, e tudo mais.

# gerais
http_port                               3128 transparent
cache_effective_user                    squid
cache_effective_group                   squid
visible_hostname                        middle-earth
dns_nameservers                         127.0.0.1
shutdown_lifetime                       5 seconds
pid_filename                            /usr/local/squid/logs/squid.pid
coredump_dir                            none
logfile_rotate                          1
cache_mgr                               nao-disponivel
icp_port                                0
ipcache_size                            1024
ipcache_low                             90
ipcache_high                            95
log_fqdn                                off

# refresh pattern padrao
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern (cgi-bin|\?)    0       0%      0
refresh_pattern .               0       20%     4320

# logs
access_log                              /cache/access1.log
cache_log                               /cache/cache1.log
cache_store_log                         /cache/store1.log
#access_log none
#cache_log none
#cache_store_log none

# memoria
cache_mem                               512 MB
cache_swap_low                          90
cache_swap_high                         95
maximum_object_size                     128 MB
minimum_object_size                     1 KB
maximum_object_size_in_memory           512 KB
minimum_object_size_in_memory           1 KB

# troca
memory_replacement_policy               heap GDSF
cache_replacement_policy                heap LFUDA

# cache em disco
cache_dir                               aufs /cache/squid1 200000 32 256

# acl
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

# ports
acl SSL_ports port 443 563
acl Safe_ports port 20 21 70 80 81 90 210 334 554 563 1025-65535

acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

acl ext_proibidos urlpath_regex -i
"/usr/local/etc/squid/downloads_bloqueados.txt"
http_access deny ext_proibidos

acl rede_wireless src 10.0.0.0/8
http_access allow rede_wireless
http_access deny all



-- 
ENIO RODRIGO MARCONCINI
gtalk: eni...@gmail.com
skype: eniorm
msn: /dev/null

.: FreeBSD -:- OpenBSD -:-Slackware Linux :.
Have trouble with Windows - reboot!
Have trouble with Unix - be root!
-------------------------
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

Responder a