autenticaçao no squid [RESOLVIDO]

1. autenticaçao no squid [RESOLVIDO]

moises
moisespereira.m

(usa Debian)

Enviado em 25/04/2011 - 14:50h

ola pessoal, tenhho um probleminha no squid, quando a pessoa entra no navegador pede usuario e senha, mas o meu squid nao e para ter autenticaçao, tem como vocês ne ajuda, Obrigado
esse e o meu squid.conf

http_port 3128
cache_effective_user squid
cache_effective_group squid
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
#external_acl_type nt_group ttl=0 concurrency=5 %LOGIN /usr/lib/squid/wbinfo_group.pl
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm use_ntlm_negotiate on
auth_param ntlm children 10
auth_param ntlm max_challenge_reuses 0
auth_param ntlm max_challenge_lifetime 5 minutes
auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 5
auth_param basic realm AUTENTICAÃÃO BASIC
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
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 all src 10.210.1.10/255.255.255.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 proibir_sites dstdomain "/etc/squid/sites"
cache_peer proxy.intra.goias.gov.br parent 2303 3130 no-query no-digest
#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl CONNECT method CONNECT
acl acesso proxy_auth REQUIRED
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny proibir_sites
http_access allow acesso
http_access allow all
http_reply_access allow all
http_access allow localhost
icp_access allow all
http_access deny all
visible_hostname squid
coredump_dir /usr/local/squid/var/cache
#coredump_dir /var/spool/squid/cache
never_direct allow all




  


2. MELHOR RESPOSTA

Natanael Henrique
n4t4n

(usa Arch Linux)

Enviado em 25/04/2011 - 18:33h

comenta as seguintes linhas, reinicie o seu squid com o comando squid -k reconfigure e faça o teste novamente.

auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm use_ntlm_negotiate on
auth_param ntlm children 10
auth_param ntlm max_challenge_reuses 0
auth_param ntlm max_challenge_lifetime 5 minutes
auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 5
auth_param basic realm AUTENTICAÃÃO BASIC
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off

e

acl acesso proxy_auth REQUIRED





Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts