Hallo Xante ,
der STunnel läuft nicht > removing PID < in der letzten Zeile !
Bei mir sieht es so aus :
sudo tail /var/run/stunnel4/stunnel.log
2016.04.14 08:36:36 LOG6[3353:140689469466432]: Initializing service section [mysql]
2016.04.14 08:36:36 LOG4[3353:140689469466432]: Insecure file permissions on /etc/stunnel/stunnel.pem
2016.04.14 08:36:36 LOG7[3353:140689469466432]: Certificate: /etc/stunnel/stunnel.pem
2016.04.14 08:36:36 LOG7[3353:140689469466432]: Certificate loaded
2016.04.14 08:36:36 LOG7[3353:140689469466432]: Key file: /etc/stunnel/stunnel.pem
2016.04.14 08:36:36 LOG7[3353:140689469466432]: Private key loaded
2016.04.14 08:36:36 LOG7[3353:140689469466432]: SSL options set: 0x00000004
2016.04.14 08:36:36 LOG5[3353:140689469466432]: Configuration successful
2016.04.14 08:36:36 LOG7[3353:140689469466432]: Service [mysql] (FD=12) bound to 0.0.0.0:3306
2016.04.14 08:36:36 LOG7[3359:140689469466432]: Created pid file /stunnel.pid
Und so bei zugriff auf die Datenbank :
sudo tail /var/run/stunnel4/stunnel.log
2016.04.14 08:45:04 LOG5[3359:140689469630208]: Service [mysql] accepted connection from 127.0.0.1:54959
2016.04.14 08:45:04 LOG6[3359:140689469630208]: connect_blocking: connecting 192.168.1.5:3307
2016.04.14 08:45:04 LOG7[3359:140689469630208]: connect_blocking: s_poll_wait 192.168.1.5
waiting 10 seconds
2016.04.14 08:45:04 LOG5[3359:140689469630208]: connect_blocking: connected 192.168.1.5:3307
2016.04.14 08:45:04 LOG5[3359:140689469630208]: Service [mysql] connected remote server from 192.168.1.19:44275
2016.04.14 08:45:04 LOG7[3359:140689469630208]: Remote socket (FD=14) initialized
2016.04.14 08:45:04 LOG7[3359:140689469630208]: SNI: host name: 192.168.1.5
2016.04.14 08:45:04 LOG6[3359:140689469630208]: SSL connected: new session negotiated
2016.04.14 08:45:04 LOG6[3359:140689469630208]: Negotiated TLSv1/SSLv3 ciphersuite: ECDHE-RSA-RC4-SHA (128-bit encryption)
2016.04.14 08:45:04 LOG6[3359:140689469630208]: Compression: null, expansion: null