Stunnel no Ubuntu não consegue escutar na porta

1

Instalei o stunnel4 no meu Ubuntu 16.04 e não consegui obter nenhum resultado das portas específicas em que o configurei via netstat -tulnp | grep 4444 aqui está o status do meu serviço:

    stunnel4.service - LSB: Start or stop stunnel 4.x (SSL tunnel for network daemons)
   Loaded: loaded (/etc/init.d/stunnel4; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2017-02-22 22:16:54 CET; 4s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2397 ExecStart=/etc/init.d/stunnel4 start (code=exited, status=1/FAILURE)

Feb 22 22:16:54 Hypothesis stunnel4[2397]: [!] Cannot open log file: /var/log/stunnel14/stunnel.log
Feb 22 22:16:54 Hypothesis stunnel4[2397]: [ ] Closing service [squid]
Feb 22 22:16:54 Hypothesis stunnel4[2397]: [ ] Service [squid] closed (FD=7)
Feb 22 22:16:54 Hypothesis stunnel4[2397]: [ ] Service [squid] closed
Feb 22 22:16:54 Hypothesis stunnel4[2397]: failed
Feb 22 22:16:54 Hypothesis stunnel4[2397]: You should check that you have specified the pid= in you configurat
Feb 22 22:16:54 Hypothesis systemd[1]: stunnel4.service: Control process exited, code=exited status=1
Feb 22 22:16:54 Hypothesis systemd[1]: Failed to start LSB: Start or stop stunnel 4.x (SSL tunnel for network
Feb 22 22:16:54 Hypothesis systemd[1]: stunnel4.service: Unit entered failed state.
Feb 22 22:16:54 Hypothesis systemd[1]: stunnel4.service: Failed with result 'exit-code'.

meu arquivo conf:

cert = /etc/stunnel/stunnel.pem
pid = /var/run/stunnel.pid
setuid = root
setgid = root
output = /var/log/stunnel14/stunnel.log
[squid]
accept = 4444
connect = 127.0.0.1:54321

Meu stunnel.pid está presente na respectiva pasta e ainda assim recebo essa mensagem de erro, parece esquisito para mim ver no log, stunnel está tentando fechar o squid

como superar esses erros?

    
por Hypothesis 22.02.2017 / 22:20

0 respostas

Tags