[15] Comentário enviado por wtcosta em 16/02/2013 - 03:25h:
[14] Comentário enviado por william-fonseca em 08/02/2013 - 15:33h:
[13] Comentário enviado por wtcosta em 08/02/2013 - 15:06h:
Olá, não sei o que ocorre, o usuário CACHE-SQUID some!!! Fiz e refiz todos os passos. Será problema com o mysql? Uso Debian Squeeze....
Olá wtcosta, poste aqui o seu squid.conf para ver ser consigo lhe ajudar, Qualquer coisa me adicione no skype: williamfonsecax
abraços
Olá, Willian, desculpa a demora, segue meu squid.conf, bem básico, adaptei do livro do Morimoto:
# /etc/squid3/squid.conf
http_port 3128 transparent
visible_hostname UBUNTU_SERVER
cache_mem 64 MB
maximum_object_size_in_memory 1024 KB
maximum_object_size 700 MB
cache_dir ufs /var/spool/squid3 81920 16 256
cache_access_log /var/log/squid3/access.log
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 280 443 488 563 591 777 1025-65535
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 10.0.0.0/24
http_access allow localhost
http_access allow redelocal
http_access deny all
zph_mode tos
zph_local 4
zph_parent 0
cache_effective_user proxy
cache_effective_group proxy
error_directory /usr/share/squid3/errors/pt-br
##fim
Fico grato desde já!
Olá wtcosta
Use estas configurações nela contem algumas configuraçõess adicionais que ajudam no cache do squid, faça o teste de nos informe o resultado.
http_port 3128 transparent
visible_hostname william-squid
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 50 MB
maximum_object_size_in_memory 200 KB
maximum_object_size 512 MB
minimum_object_size 0 KB
cache_swap_low 95
cache_swap_high 98
cache_dir diskd /var/spool/squid3 81920 64 256
cache_access_log /var/log/squid/access.log
cache_store_log none
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
# ---- Cache do Windows Update ----
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern msgruser.dlservice.microsoft.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern windowsupdate.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern
www.microsoft.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern update.microsoft.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.windows.update.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
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 to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # 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 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
#half_closed_clients off
#aqui estão as máquinas de nosso cenário
acl redelocal src 10.0.0.0/24
http_access allow redelocal
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
zph_mode tos
zph_local 4
zph_parent 0
forwarded_for off
error_directory /usr/share/squid3/errors/Portuguese
coredump_dir /var/spool/squid3
detect_broken_pconn on
pipeline_prefetch on