Discussion:
[stunnel-users] Unable to open log file
(too old to reply)
Matt brancato
2015-07-16 13:13:29 UTC
Permalink
Hi all,

Did a search but didn't see an answer so i figured i'd ask. I'm trying to
runstunnel but am having some issues. I attempt to run stunnel but i run
into an issue where it can't read the log file and then closes up. Any
ideas?

sudo stunnel stunnel.conf
[ ] Clients allowed=500
[.] stunnel 5.19 on x86_64-unknown-linux-gnu platform
[.] Compiled/running with OpenSSL 1.0.1 14 Mar 2012
[.] Threading:PTHREAD Sockets:POLL,IPv6 TLS:ENGINE,FIPS,OCSP,PSK,SNI
[ ] errno: (*__errno_location ())
[.] Reading configuration from file stunnel.conf
[.] UTF-8 byte order mark not detected
[.] FIPS mode disabled
[ ] Compression disabled
[ ] Snagged 64 random bytes from /root/.rnd
[ ] Wrote 1024 new random bytes to /root/.rnd
[ ] PRNG seeded successfully
[ ] Initializing service [<service>]
[ ] Loading certificate from file: /etc/stunnel/server.pem
[ ] Loading key from file: /etc/stunnel/server.pem
[ ] Private key check succeeded
[ ] DH initialization
[ ] Could not load DH parameters from /etc/stunnel/server.pem
[ ] DH parameters will be generated
[ ] Cron started
[ ] ECDH initialization
[ ] ECDH initialized with curve prime256v1
[ ] SSL options: 0x03004004 (+0x03004000, -0x00000000)
[.] Configuration successful
[ ] Listening file descriptor created (FD=7)
[ ] Service [<service>] (FD=7) bound to 127.0.0.1:9999
[ ] Executing cron jobs
[.] Updating DH parameters
[!] Cannot open log file: /home/tim/Desktop/stunnel.log
[ ] Closing service [<service>]
[ ] Service [<service>] closed (FD=7)
[ ] Service [<service>] closed
--
*CONFIDENTIALITY NOTICE*

THE INFORMATION CONTAINED IN THIS COMMUNICATION IS INTENDED FOR THE NAMED
RECEIVER ONLY. THE TRANSMISSION MAY CONTAIN PRIVILEGED AND CONFIDENTIAL
MATERIAL. IF YOU ARE NOT THE NAMED RECIPIENT, PLEASE BE ADVISED THAT ANY
USE, DISSEMINATION OR UNAUTHORIZED COPYING OF THE MATERIAL IS STRICTLY
PROHIBITED. IF YOU HAVE RECEIVED THIS TRANSMISSION IN ERROR, PLEASE NOTIFY
***@TRUEEX.COM AND DESTROY THE RECEIVED COPY. THANK YOU.
schritte@rz.uni-frankfurt.de
2016-01-19 10:25:12 UTC
Permalink
Post by Matt brancato
Hi all,
Did a search but didn't see an answer so i figured i'd ask. I'm trying to runstunnel but am having some issues. I attempt to run stunnel but i run into an issue where it can't read the log file and then closes up. Any ideas?
sudo stunnel stunnel.conf
[ ] Clients allowed=500
[.] stunnel 5.19 on x86_64-unknown-linux-gnu platform
[.] Compiled/running with OpenSSL 1.0.1 14 Mar 2012
[.] Threading:PTHREAD Sockets:POLL,IPv6 TLS:ENGINE,FIPS,OCSP,PSK,SNI
[ ] errno: (*__errno_location ())
[.] Reading configuration from file stunnel.conf
[.] UTF-8 byte order mark not detected
[.] FIPS mode disabled
[ ] Compression disabled
[ ] Snagged 64 random bytes from /root/.rnd
[ ] Wrote 1024 new random bytes to /root/.rnd
[ ] PRNG seeded successfully
[ ] Initializing service [<service>]
[ ] Loading certificate from file: /etc/stunnel/server.pem
[ ] Loading key from file: /etc/stunnel/server.pem
[ ] Private key check succeeded
[ ] DH initialization
[ ] Could not load DH parameters from /etc/stunnel/server.pem
[ ] DH parameters will be generated
[ ] Cron started
[ ] ECDH initialization
[ ] ECDH initialized with curve prime256v1
[ ] SSL options: 0x03004004 (+0x03004000, -0x00000000)
[.] Configuration successful
[ ] Listening file descriptor created (FD=7)
[ ] Service [<service>] (FD=7) bound to 127.0.0.1:9999
[ ] Executing cron jobs
[.] Updating DH parameters
[!] Cannot open log file: /home/tim/Desktop/stunnel.log
[ ] Closing service [<service>]
[ ] Service [<service>] closed (FD=7)
[ ] Service [<service>] closed
CONFIDENTIALITY NOTICE
Hi all,

we have the same problem. Any known solutions for that? Double checked permissions on the log and directory. It works fine with an older version of stunnel (4.2.7) doesn't work any more with 5.2.6

any help appreciated
Rolf

Loading...