Proxy SQUID [RESOLVIDO]

1. Proxy SQUID [RESOLVIDO]

Djavan Marques dos Santos
djavan_pb

(usa Linux Mint)

Enviado em 18/07/2016 - 20:35h

Olá ! se puderem me ajudar agradeço. Não estou conseguindo subir o SQUID no CentOS 7, assim que configuro o squid.conf para autenticação local e tento reiniciar o serviço aparece esta mensagem:

Redirecting to /bin/systemctl start squid.service Job for squid.service failed because the control process exited with error code. See "systemctl status squid.service" and "journalctl -xe" for details.

Configuração utilizada para autenticação local:
obs: sem esta configuração o serviço inicia normalmente

auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/senhas
auth_param basic children 5
auth_param basic realm DIGITE seu usuário e Senha para acessar a Internet
auth_param basic credentialsttl 1 hours
auth_param basic casesensitive off



  


2. Re: Proxy SQUID [RESOLVIDO]

Carlos A. P. Cunha
Carlos_Cunha

(usa Linux Mint)

Enviado em 18/07/2016 - 22:29h

Deixei como estava, inicie o Squid e quando der erro execute

journalctl -xe

E poste a saida;

#-------------------------------------------------------------------------------------#

"Linux é algo que me fez ter Gosto pela Informática, se tornou um Vicio" - Carlos A. P. Cunha
Acesse: www.cunhatec.com.br


3. Re: Proxy SQUID [RESOLVIDO]

Djavan Marques dos Santos
djavan_pb

(usa Linux Mint)

Enviado em 18/07/2016 - 23:46h

Jul 18 23:42:26 LAB NetworkManager[605]: <warn> (enp0s8): Activation: failed fo
Jul 18 23:42:26 LAB NetworkManager[605]: <info> (enp0s8): device state change:
Jul 18 23:44:20 LAB polkitd[628]: Registered Authentication Agent for unix-proce
Jul 18 23:44:20 LAB systemd[1]: Starting Squid caching proxy...
-- Subject: Unidade squid.service sendo iniciado
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A unidade squid.service está sendo iniciada.
Jul 18 23:44:20 LAB squid[2170]: auth_param basic program /usr/lib64/squid/ncsa_
Jul 18 23:44:20 LAB systemd[1]: squid.service: control process exited, code=exit
Jul 18 23:44:20 LAB systemd[1]: Failed to start Squid caching proxy.
-- Subject: A unidade squid.service falhou
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A unidade squid.service falhou.
--
-- O resultado é failed.
Jul 18 23:44:20 LAB systemd[1]: Unit squid.service entered failed state.
Jul 18 23:44:20 LAB systemd[1]: squid.service failed.
Jul 18 23:44:20 LAB cache_swap.sh[2165]: init_cache_dir /var/spool/squid...
Jul 18 23:44:20 LAB polkitd[628]: Unregistered Authentication Agent for unix-pro
lines 2336-2358/2358 (END)
Jul 18 23:42:26 LAB NetworkManager[605]: <warn> (enp0s8): Activation: failed for connection 'Co
Jul 18 23:42:26 LAB NetworkManager[605]: <info> (enp0s8): device state change: failed -> discon
Jul 18 23:44:20 LAB polkitd[628]: Registered Authentication Agent for unix-process:2150:32277 (s
Jul 18 23:44:20 LAB systemd[1]: Starting Squid caching proxy...
-- Subject: Unidade squid.service sendo iniciado
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A unidade squid.service está sendo iniciada.
Jul 18 23:44:20 LAB squid[2170]: auth_param basic program /usr/lib64/squid/ncsa_auth: (2) No suc
Jul 18 23:44:20 LAB systemd[1]: squid.service: control process exited, code=exited status=1
Jul 18 23:44:20 LAB systemd[1]: Failed to start Squid caching proxy.
-- Subject: A unidade squid.service falhou
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A unidade squid.service falhou.
--
-- O resultado é failed.
Jul 18 23:44:20 LAB systemd[1]: Unit squid.service entered failed state.
Jul 18 23:44:20 LAB systemd[1]: squid.service failed.
Jul 18 23:44:20 LAB cache_swap.sh[2165]: init_cache_dir /var/spool/squid...
Jul 18 23:44:20 LAB polkitd[628]: Unregistered Authentication Agent for unix-process:2150:32277
~
~



4. Re: Proxy SQUID

Perfil removido
removido

(usa Nenhuma)

Enviado em 19/07/2016 - 11:55h

Não seria "/usr/lib64/squid/basic_ncsa_auth"? Execute "journalctl -xe" para maiores detalhes.


5. Re: Proxy SQUID

Djavan Marques dos Santos
djavan_pb

(usa Linux Mint)

Enviado em 19/07/2016 - 12:36h

Já tentei está configuração, o basic e especificado anteriormente em: "auth_param basic program" a sáida do journalctl -xe está acima.


6. Re: Proxy SQUID

Perfil removido
removido

(usa Nenhuma)

Enviado em 19/07/2016 - 12:50h

Jul 18 23:44:20 LAB squid[2170]: auth_param basic program /usr/lib64/squid/ncsa_auth: (2) No suc

Verifique o caminho do arquivo.

# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core) 


# squid -v | head -1
Squid Cache: Version 3.3.8 


# updatedb; locate ncsa_auth
/usr/lib64/squid/basic_ncsa_auth 












Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts