tux-junior
(usa Debian)
Enviado em 20/10/2009 - 13:54h
E ai pessoal,
ao executar o comando /etc/init.d/squid3 restart e exibida a mensagem de Failed!
Nos logs do cache aparece a seguinte mensagem:
2009/10/20 14:47:20| Squid is already running! Process ID 2581
Com isso não consigo para o Squid3.
Esta instalado no Debian Lenny.
Abaixo meu SQUID.CONF
#### SQUID.CONF ######
http_port 3128
cache_swap_low 90
cache_swap_high 95
cache_mem 256 MB
#always_direct allow all
dns_nameservers 192.168.1.254
# Diretorios Spool do Squid
cache_dir ufs /var/spool/squid3 1024 16 256
#maximum_object_size 30000 KB
#maximum_object_size_in_memory 40 KB
# Diretorios de Log do Cache
access_log /var/log/squid3/access.log
cache_log /var/log/squid3/cache.log
cache_store_log /var/log/squid3/store.log
pid_filename /var/log/squid3/squid.pid
#memory_pools off
#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 wireless src 10.16.20.0/24
# Limite Download
reply_body_max_size 4000 KB wireless
# Sites, palavras liberados
acl whitelist url_regex "/etc/squid3/whitelist"
# Sites, palavras bloqueadas
acl
[*****] url_regex "/etc/squid3/
[*****]"
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
http_access allow whitelist wireless
http_access deny
[*****]
#Autenticacao ==================================================
auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 5
auth_param basic realm Servidor de Autenticao
auth_param basic credentialsttl 2 hours
acl geral proxy_auth REQUIRED
http_access allow geral
cache_mgr Administrador
mail_program mail
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string off
visible_hostname cachewifi
cache_mgr webmaster@dominio.com
error_directory /usr/share/squid3/errors/Portuguese/