Accedi per seguire   
Seguaci 0
tisio2

[red Hat] Squid Che Si Autokilla

1 messaggio in questa discussione

Salve a tutti,come avrete capito ho un problema con un'installazione di squid (Squid Cache: Version 2.5.STABLE1) su redhat (versione 9).

Il problema è che faccio partire squi /service squid start) e mi da ok,ma poi non lo posso stoppare,in quanto si stoppa da solo. Se provo sia a stopparlo che a fare un service squid status,questo è quello che mi dice:

squid dead but pid file exists

squid: ERROR: Could not send signal 0 to process 3318: (3) No such process

Se faccio un riavvio della macchina,o il reset dei log (access.log,cache.log,store.log) il serivizio funziona per un po'.Ma basta una decina di minuti di navigazione per ripiantarsi e dare lo stesso errore...

Eppure i dischi non sono pieni e memoria ce n'è a bizzeffe ne lla macchina...

Questa è la configurazione:

http_port 3128

hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?

no_cache deny QUERY

cache_dir ufs /usr/local/squid/cache 5000 16 256

cache_access_log /usr/local/squid/log/access.log

cache_log /usr/local/squid/log/cache.log

cache_store_log /usr/local/squid/log/store.log

debug_options ALL,5

auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic

auth_param basic children 5

auth_param basic realm Squid proxy-caching web server

auth_param basic credentialsttl 2 hours

authenticate_ttl 1 hour

authenticate_ip_ttl 60 seconds

refresh_pattern ^ftp: 1440 20% 10080

refresh_pattern ^gopher: 1440 0% 1440

refresh_pattern . 0 20% 4320

acl no_share_login max_user_ip -s 1 # Non consente il login di uno stesso utente su più pc contemporaneamente

# ACL Blocco Siti

acl bad url_regex "/etc/squid/bloked/bad_language_sites_block.txt"

acl entertainment url_regex "/etc/squid/bloked/entertainment_sites_block.txt"

acl games url_regex "/etc/squid/bloked/games_block.txt"

acl mp3 url_regex "/etc/squid/bloked/mp3_block.txt"

acl pirated url_regex "/etc/squid/bloked/pirated_software_block.txt"

acl porno url_regex "/etc/squid/bloked/pornographic_block.txt"

acl gator browser Gator/5.0 # Contro Spyware

#ACL Blocco file

acl file_mp3 urlpath_regex -i \.mp3$

acl file_avi urlpath_regex -i \.avi$

acl file_mpeg urlpath_regex -i \.mpeg$

acl file_exe urlpath_regex -i \.exe$

deny_info login_duplicate no_share_login

deny_info Site_blue_error bad

deny_info Site_green_error entertainment

deny_info Site_grey_error games

deny_info Site_red_error porno

deny_info Site_violet_error pirated

deny_info Site_yellow_error mp3

deny_info file_green_error file_mp3

deny_info file_grey_error file_avi

deny_info file_red_error file_mpeg

deny_info file_violet_error file_exe

http_access deny bad

http_access deny entertainment

http_access deny games

http_access deny mp3

http_access deny pirated

http_access deny porno

http_access deny gator

http_access deny file_mp3

http_access deny file_avi

http_access deny file_mpeg

http_access deny file_exe

acl password proxy_auth REQUIRED

#Recommended minimum configuration:

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 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 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 localhost

http_access allow password

http_access deny all

http_reply_access allow all

icp_access allow all

visible_hostname Nome_del_server

coredump_dir /var/spool/squid

(per quanto riguarda la parte di autenticazione con NTLM e anche la parte di content filtering,non co sono problemi,fuinziona tutto)

Vi ringrazio dell'aiuto..

Condividi questo messaggio


Link di questo messaggio
Condividi su altri siti

Crea un account o accedi per lasciare un commento

Devi essere un utente registrato per partecipare

Crea un account

Iscriviti per un nuovo account nella nostra community. È facile!


Registra un nuovo account

Accedi

Sei già registrato? Accedi qui.


Accedi Ora
Accedi per seguire   
Seguaci 0