Pular para o conteúdo

erro no squid

Responder tópico
  • Denunciar
  • Indicar

1. erro no squid

Enviado em 13/03/2008 - 10:44h

ai galera to com esse erro no squid alguem pode me ajudar

Restarting Squid HTTP proxy: squid2008/03/13 10:42:41| parseConfigFile: line 44 unrecognized: 'password REQUIRED'

meu squid.conf a baixo

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/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_mgr root
cache_effective_user squid
cache_effective_group squid
error_directory /usr/lib/squid/errors/Portuguese
visible_hostname teste.germania.com.br


##autenticação NCSA
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/usuarios
auth_param basic children 5
auth_param basic realm "entre com usuario e login válidos"
auth_param basic credentialsttl 2 hours

#ACLs

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 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 Safe_ports port 901 # SWAT
acl CONNECT method CONNECT

acl diretoria proxy_auth "/etc/squid/diretoria.txt"

password REQUIRED

#regras
http_access allow manager localhost
http_access deny manager

#Nega requisiçoes para portas desconhecidas
http_access deny !safe_ports

# nega metodo CONNECT para portas nao utilizadas para ssl
http_access deny CONNECT !SSL_ports

http_access allow diretoria

http_access deny all

Responder tópico

3. Deu certo?

Enviado em 20/03/2008 - 10:57h

Se não deu avise, podemos tentar de outro jeito..

4. Re: erro no squid

Enviado em 20/03/2008 - 17:06h

A sintaxe está incorreta. Tente isso


auth_param basic program /usr/local/squid/libexec/ncsa_auth /usr/local/squid/etc/passwd
auth_param basic children 5
auth_param basic realm Proxy MINHA_EMPRESA - Faça sua autenticação
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
acl password proxy_auth REQUIRED

Sérgio Abrantes
[]'s

Responder tópico

Responder tópico

Entre na sua conta para responder.

Fazer login para responder