<html><head></head><body><div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">"Cannot open log file: /var/log/stunnel.log" is the problem. File permissions. Are you supposed to be running stunnel as a particular user, rather than as yourself?<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">- Mike</div>
<br><br><br>
<div class="gmail_quote">On Thu, Dec 26, 2019 at 2:48 AM +0000, "Hanhan lee" <span dir="ltr"><<a href="mailto:kennewmail@gmail.com" target="_blank">kennewmail@gmail.com</a>></span> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="3D"ltr"">
<div dir="ltr">I compiled stunnel4-5.50 with openssl 1.1.1d.<div>When I run stunnel, it will print some messages and stop:</div><div><br></div><div>[ ] Clients allowed=500<br>[.] stunnel 5.50 on arm-none-linux-gnueabi platform<br>[.] Compiled/running with OpenSSL 1.1.1d 10 Sep 2019<br>[.] Threading:PTHREAD Sockets:POLL,IPv6 TLS:ENGINE,FIPS,OCSP,PSK,SNI<br>[ ] errno: (*__errno_location ())<br>[.] Reading configuration from file /conf/stunnel.conf<br>[.] UTF-8 byte order mark not detected<br>[.] FIPS mode disabled<br>[ ] Compression disabled<br>[ ] No PRNG seeding was required<br>[ ] Initializing service [adviserd]<br>[ ] Ciphers: AES256-SHA256:!RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM<br>[ ] TLS options: 0x02104004 (+0x00004000, -0x00000000)<br>[ ] Loading certificate from file: /conf/certs/server.pem<br>[ ] Certificate loaded from file: /conf/certs/server.pem<br>[ ] Loading private key from file: /conf/certs/privkey.pem<br>[:] Insecure file permissions on /conf/certs/privkey.pem<br>[ ] Private key loaded from file: /conf/certs/privkey.pem<br>[ ] Private key check succeeded<br>[ ] DH initialization needed for DHE-PSK-CHACHA20-POLY1305<br>[ ] DH initialization<br>[ ] Could not load DH parameters from /conf/certs/server.pem<br>[ ] Using dynamic DH parameters<br>[ ] ECDH initialization<br>[ ] ECDH initialized with curve prime256v1<br>[.] Configuration successful<br>[ ] Binding service [adviserd]<br>[ ] Listening file descriptor created (FD=8)<br>[ ] Setting accept socket options (FD=8)<br>[ ] Option SO_REUSEADDR set on accept socket<br>[ ] Option TCP_NODELAY set on accept socket<br>[ ] Service [adviserd] (FD=8) bound to :::7582<br>[!] Cannot open log file: /var/log/stunnel.log<br>[ ] Deallocating section defaults<br>[ ] Unbinding service [adviserd]<br>[ ] Service [adviserd] closed (FD=8)<br>[ ] Service [adviserd] closed<br>[ ] Deallocating section [adviserd]<br></div><div><br></div><div>I have no idea what's wrong with this, help!</div><div><br></div><div>Many thanks</div></div>
</div>
</blockquote>
</div>
</body></html>