Problema na autenticação do Squid

1. Problema na autenticação do Squid

Andre chagas ramos
andre_ramos

(usa openSUSE)

Enviado em 26/06/2009 - 08:14h

Estou com dificuldade em autenticar o squid no Dominio. gostaria de alguma ajuda dos colegas o meu script do squid.conf segue abaixo.Utilizo o OpenSude 11.1


# WELCOME TO SQUID 3.0.STABLE10
# ----------------------------

################# Autentica��o de Usu�rios ##########################
auth_param basic program "/etc/squid/msnt_auth"
auth_param basic children 5
auth_param basic realm Usuario e Senha
auth_param basic credentialsttl 2 hours
#####################################################################

acl password proxy_auth REQUIRED
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl redetoctao src 10.1.1.0/8 # RFC1918 possible internal network

##################### Regras ########################################
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 89 # juridico 2ccago
acl Safe_ports port 443 563 # 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

# Usuarios
acl usuarios proxy_auth "/etc/squid/regras/usuarios/usuarios"
acl usuarios-msn proxy_auth "/etc/squid/regras/usuarios/usuarios-msn"
acl proibidos_usuarios url_regex "/etc/squid/regras/usuarios/proibidos"

# acl negadas
acl messenger url_regex -i gateway.dll
acl msn_bloq dstdomain "/etc/squid/regras/msn_bloq.txt"
acl msn req_mime_type -i ^application/x-msn-messenger$
acl CONNECT method CONNECT
#####################################################################
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

####################### Permis�es das Regras ########################
http_access deny proibidos_usuarios
http_access allow autenticar usuarios-msn

http_access deny msn_bloq
http_access deny msn
http_access deny messenger
http_access allow autenticar usuarios
#####################################################################

http_access allow redetoctao
http_access allow localhost
http_access deny all

icp_access allow redetoctao
icp_access deny all

htcp_access allow redetoctao
htcp_access deny all

############### Endere�o do Servidor e Porta para Acesso############
http_port 10.1.1.1:3128
####################################################################

hierarchy_stoplist cgi-bin ?

######################## Tamanhos das Cache ########################
cache_dir ufs /var/cache/squid 2048 16 256
cache_swap_low 90
cache_swap_high 95

########################### Caminhos dos Logs ######################
access_log /var/log/squid/access.log squid

cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
error_directory /usr/share/squid/errors/Portuguese

#######################Controle de Acessos #########################
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
#####################################################################

icp_port 3230
coredump_dir /var/cache/squid


Quando eu start o squid aparece o seguinte erro:

Shutting down WWW-proxy squid WARNING: authparam basic program /etc/squid/msnt_auth: (2) No such file or directory
2009/06/25 18:14:04| aclParseIpData: WARNING: Netmask masks away part of the specified IP in '10.1.1.0/8'
2009/06/25 18:14:04| Warning: empty ACL: acl usuarios proxy_auth "/etc/squid/regras/usuarios/usuarios"
2009/06/25 18:14:04| Warning: empty ACL: acl usuarios-msn proxy_auth "/etc/squid/regras/usuarios/usuarios-msn"
2009/06/25 18:14:04| aclParseAccessLine: ACL name 'autenticar' not found.
FATAL: Bungled squid.conf line 52: http_access allow autenticar usuarios-msn
Squid Cache (Version 3.0.STABLE10): Terminated abnormally.
CPU Usage: 0.012 seconds = 0.004 user + 0.008 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
- wait a minute or two... ...................
......................................... Warning: squid killed ! done
Starting WWW-proxy squid startproc: exit status of parent of /usr/sbin/squid: 1
failed



  


2. Re: Problema na autenticação do Squid

Mateus
mtarcinalli

(usa Debian)

Enviado em 26/06/2009 - 08:24h

Está dando um erro nessa acl autenticar, ela não existe no seu arquivo de configuração.
Tente corrigir essas duas linhas:
http_access allow autenticar usuarios-msn
para:
http_access allow usuarios-msn

e
http_access allow autenticar usuarios
para:
http_access allow usuarios


3. Re: Problema na autenticação do Squid

Andre chagas ramos
andre_ramos

(usa openSUSE)

Enviado em 26/06/2009 - 09:40h

retirei a palavra autenticaçao mas agora da o seguinte erro:

firewall:/etc/rc.d # ./squid restart
Shutting down WWW-proxy squid - Warning: squid not running ! done
Starting WWW-proxy squid startproc: exit status of parent of /usr/sbin/squid: 1
failed


4. Re: Problema na autenticação do Squid

Mateus
mtarcinalli

(usa Debian)

Enviado em 26/06/2009 - 10:25h

O restart daria algum erro mesmo, já que o squid ainda não estava rodando.
São 2 erro comuns não iniciar o cache e permissões.
Para iniciar o cache do squid:
/usr/sbin/squid -z
Já as permissões de uma olhada nos logs do squid ou no /var/log/syslog







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts