Leonardo Monti
(usa Outra)
Enviado em 01/10/2009 - 07:59h
Fiz as alterações que vcs sugeriram.
Agora fui iniciar o serviço com esse "squid.conf" que eu fiz.
erro 1067: O processo foi finalizado de forma inesperada.
meu "conf" ta assim agora. v se eu errei em algum lugar, peço desculpas e agradeço a paciencia.
##########################################
#
# #CONFIGURAÇÃO SQUID
#
##########################################
http_port 3128
cache_mem 8 MB
cache_dir ufs /var/spool/squid 100 16 256
cache_access_log /var/log/squid/access.log
cache_mgr leonardoomonti@gmail.com
cache_effective_user squid
##########################################
#
# #Proxy Transparente
#
##########################################
http_port 3128 transparent
##########################################
#
# #Arquivos de Log
#
##########################################
access_log /var/log/squid/access.log squid
logfile_daemon /usr/lib/squid/logfile-daemon
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
##########################################
#
# #Cache em memória
#
##########################################
cache_mem 16 MB
maximum_object_size_in_memory 8 KB
memory_replacement_policy lru
##########################################
#
# #Cache em Disco
#
##########################################
cache_replacement_policy lru
cache_dir ufs /var/spool/squid 100 16 256
store_dir_select_algorithm least-load
max_open_disk_fds 0
minimum_object_size 0 KB
maximum_object_size 20480 KB
cache_swap_low 90
cache_swap_high 95
update_headers on
##########################################
#
# #Performance de Cache
#
##########################################
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
##########################################
#
# #Habilitando o Squid
#
##########################################
http_access allow all
visible_hostname squid.nsterramar.com.br
##########################################
#
# #Regras Gerais
#
##########################################
acl all src 0.0.0.0/0.0.0.0
http_access allow all
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 #http
acl Safe_ports port 21 #ftp
acl Safe_ports port 443 563 #https, news
acl Safe_ports port 70 #gopher
acl Safe_ports port 210 #wais
acl Safe_ports port 1025-65535 #unregistred 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
##########################################
#
# #CONTROLE DE ACESSO
#
##########################################
acl all src 0.0.0.0/0.0.0.0
http_access allow all
acl rede_interna src 192.168.0.2-192.168.0.125
http_access allow rede_interna
acl block url_regex -i "/squid/etc/sites_bloqueados/block.txt"
http_access deny block
Agora o serviço não da erro.
Mais aparece uma mensagem que é essa:
O serviço em computador local foi iniciado e imterrompido. Alguns serviços sao imterrompidos automaticamento quando nao tem tarfefas a fazer, como o serviço de logs e desempenho.
como faz pra iniciar o serviço sem ele imterromper.
Da uma ajuda ae. vlw!