problemas ai iniciar SQUID

1. problemas ai iniciar SQUID

Fabio Noriller
kelloggs

(usa Debian)

Enviado em 29/02/2008 - 09:48h

comando para iniciar o squid:
debian:/home/fabio# /etc/init.d/squid start

erro que traz na tela:
Starting Squid HTTP proxy: squid2008/02/29 09:45:37| WARNING: '192.168.0.0' is a subnetwork of '0.0.0.0/0.0.0.0'
2008/02/29 09:45:37| WARNING: because of this '0.0.0.0/0.0.0.0' is ignored to keep splay tree searching predictable
2008/02/29 09:45:37| WARNING: You should probably remove '192.168.0.0' from the ACL named 'all'
2008/02/29 09:45:37| WARNING: '127.0.0.1' is a subnetwork of '127.0.0.1'
2008/02/29 09:45:37| WARNING: because of this '127.0.0.1' is ignored to keep splay tree searching predictable
2008/02/29 09:45:37| WARNING: You should probably remove '127.0.0.1' from the ACL named 'localhost'
FATAL: getpwnam failed to find userid for effective user 'squid'
Squid Cache (Version 2.6.STABLE5): Terminated abnormally.
CPU Usage: 0.008 seconds = 0.008 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
/etc/init.d/squid: line 74: 5141 Abortado start-stop-daemon --quiet --start --pidfile $PIDFILE --chuid $CHUID --exec $DAEMON -- $SQUID_ARGS </dev/null
failed!

Meu arquivo squid.conf

http_port 3128
cache_mem 20 MB
maximum_object_size 4096 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 8 KB
fqdncache_size 1024
cache_dir ufs /var/spool/squid 1000 16 256
cache_access_log /var/log/squid/cache.log
cache_log /var/log/squid/cache.log
cache_store_log /car/log/squid/store.log
cache_mgr root
cache_effective_user squid
cache_effective_group squid
error_directory /usr/lib/squid/errors/Portuguese
visible_hostname proxy.germania.br

##################################
# Autenticacao usando NCSA #####
#################################
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/usuarios
auth_param basic children 5
auth_param basic realm "Entre com um usuario e login validos"
auth_param basic credentialsttl 2 hours


##################
# ACLs #####
################
acl all src 192.168.0.0/255.255.255.255
acl manger 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 #http, 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

acl chefes proxy_auth "/etc/squid/chefes.txt"
acl usuarios proxy_auth "/etc/squid/usuarios.txt"
acl proibidos url_regex "/etc/squid/proibidos.txt"

acl manha time MTWHF 08:00-12:00
acl livre time MTWHF 12:00-13:00
acl tarde time MTWHF 13:00-18:00
acl finalsemana time SA 00:00-23:59
acl downloads urlpath_regex "/etc/squid/extensoes.txt"

###############################
#Regras ###############
################################
#http_access allow manager 192.168.0.1
#http_access deny manager

###############################################
### nega requisiçoes portas desconhecidas #####
##############################################
http_access deny !Safe_ports

############################################
### nega método CONNECT para portas nao utilizadas para SSL
###############################################
http_access deny CONNECT !SSL_ports

http_access deny finalsemana
http_access allow chefes
http_access allow usuarios livre
http_access deny proibidos
http_access deny downloads
http_access allow usuarios manha
http_access allow usuarios tarde
http_access deny all


  


2. Re: problemas ai iniciar SQUID

Marcelo Corrêa
exercitobr

(usa Debian)

Enviado em 29/02/2008 - 10:01h

Parece que falta alguma coisa no seu squid.conf...
crie uma acl_all 0.0.0.0 com a classe bem como uma acl local para 127.0.0.1 ... me pareceu isso...
Caso não queira quebrar a cabeça... pegue um .conf aqui me mesmo no VOL e coloque suas regras... qq coisa tamo aí!






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts