maicomitalo
(usa Ubuntu)
Enviado em 07/07/2014 - 14:33h
o meu squid3 estar parando sozinho , eu tenho que dar restart nele uns 3 vezes por dia , ele estar funcionando normalmente depois de uns 2 ou 3 horas ele FALHA E FICA assim :
root@nautilus:~# /etc/init.d/squid3 status
[FAIL] squid3 is not running ... failed!
então eu faço assim :
root@nautilus:~# /etc/init.d/squid3 restart
[ ok ] Restarting Squid HTTP Proxy 3.x: squid3.
root@nautilus:~# /etc/init.d/squid3 status
[ ok ] squid3 is running.
mas depois de algumas horas 2 ou 3 ele falha sozinho , ele fica em FAIL sem motivo nenhum .... oque pode ser ?
MEU SQUID.CONF:
## PORTA ##
http_port 3000
## ESQUEMA AUTENTICACAO ##
auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd
auth_param basic children 5
auth_param basic realm | Grupo secserver2
auth_param basic credentialsttl 8 hours
auth_param basic casesensitive off
visible_hostname s3cserver2
cache_mgr igordiascarvalho@gmail.com
error_directory /usr/share/squid3/errors/Portuguese
hierarchy_stoplist cgi-bin ?
cache_mem 256 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 100 MB
cache_dir ufs /var/spool/squid3 2040 16 256
refresh_pattern ^ftp: 360 20% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
access_log /var/log/squid3/access.log
acl localhost src 127.0.0.1/32
acl localnet src 10.46.0.0/16
error_directory /usr/share/squid3/errors/pt-br
€œ/etc/squid/regras/ip_gtalk_liberado.txtâ€
€œ/etc/squid3/listas/palavrasâ€
acl bloqueio_por_palavras url_regex -i “/etc/squid3/listas/palavrasâ€
http_access deny bloqueio_por_palavras
acl liberados url_regex -i "/etc/squid3/listas/acesso_livre"
http_access allow liberados
€œ/etc/squid3/listas/extensoesâ€
## ESQUEMA DE CONTROLE POR GRUPOS DE USUARIOS
## Acesso total
acl acesso_livre proxy_auth “/etc/squid3/listas/usr_livreâ€
http_access allow acesso_livre
## Acesso restrito
#acl acesso_restrito proxy_auth “/etc/squid3/listas/usr_restritoâ€
#acl url_bloqueado url_regex -i “/etc/squid3/listas/url_bloqueadoâ€
#http_access deny url_bloqueado
#http_access allow acesso_restrito !url_bloqueado
€œ/etc/squid3/listas/usr_bloqueadoâ€
#acl url_liberado url_regex -i “/etc/squid3/listas/url_liberadoâ€
## AUTENTICACAO ##
acl usuarios proxy_auth REQUIRED
http_access allow usuarios
acl purge method PURGE
http_access allow purge localhost
http_access deny purge
acl Safe_ports port 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 80 # http
acl Safe_ports port 210 # wais
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 443 # https
acl Safe_ports port 488 # gss-http
acl Safe_ports port 563 # mntps
acl Safe_ports port 591 # filemaker
acl Safe_ports port 633 # cups
acl Safe_ports port 777 # multiling http
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # swat
acl Safe_ports port 1025-65535 # unregistered ports
http_access deny !Safe_ports
acl connect method CONNECT
acl ssl_ports port 443 # https
acl ssl_ports port 563 # mntps
acl ssl_ports port 873 # rsync
http_access allow connect
http_access deny connect !SSL_ports
#####################################################################