I’m testing openvpn over stunnel4 and I found a weird issue: I have to restart my Ubuntu 18.04 to be able to start the stunnel service. Don’t know why I couldn’t start the service dicrectly by :
Systemctl start stunnel4
OS: Ubuntu 18.04
#>apt install stunnel4
and generate a conf like this:
cert=/etc/stunnel/server.crt
key=/etc/stunnel/server.key
[openvpn-localhost]
accept = 8443
connect = 127.0.0.1:11000
Now start the service:
#>systemctl start stunnel4
#>systemctl status stunnel4
stunnel4.service - LSB: Start or stop stunnel 4.x (TLS tunnel for network daemons)
Loaded: loaded (/etc/init.d/stunnel4; generated)
Active: active (exited) since Wed 2020-01-15 14:40:11 CST; 10min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/stunnel4.service
Jan 15 14:40:11 iZ8vb6j45u355dm236tpibZ systemd[1]: Starting LSB: Start or stop stunnel 4.x (TLS tunnel for network daemons)...
Jan 15 14:40:11 iZ8vb6j45u355dm236tpibZ stunnel4[3583]: TLS tunnels disabled, see /etc/default/stunnel4
Jan 15 14:40:11 iZ8vb6j45u355dm236tpibZ systemd[1]: Started LSB: Start or stop stunnel 4.x (TLS tunnel for network daemons).
Why it exited? But after reboot, same command will just work. Is it a bug?
I want to find a way to start it directly after installation. Please help!
Best Regards
Robin