[stunnel-users] FreeBSD upgrading to 4.41 (Dispatching signals from the signal pipe)

Nicolas de Bari Embriz Garcia Rojas nbari at inbox.im
Thu Aug 4 19:51:35 CEST 2011


Hi, I just upgrade stunner on a  FreeBSD server from 4.35 to 4.41 using the ports, I restarted the server and notice that stunnel was not listen to any port, I had to manually restart it so it could work again.

I increased the debug to 7 and got this when booting:

2011.08.04 17:44:58 LOG7[1123:675287360]: Dispatching signals from the signal pipe
2011.08.04 17:44:58 LOG5[1123:675287360]: Received signal 15; terminating
2011.08.04 17:44:58 LOG7[1123:675287360]: str_stats: 0 block(s), 0 byte(s)
2011.08.04 17:44:58 LOG7[1123:675287360]: removing pid file /stunnel.pid
2011.08.04 17:45:29 LOG7[682:675287360]: No limit detected for the number of clients
2011.08.04 17:45:29 LOG7[682:675287360]: signal_pipe: FD=3 allocated (non-blocking mode)
2011.08.04 17:45:29 LOG7[682:675287360]: signal_pipe: FD=4 allocated (non-blocking mode)
2011.08.04 17:45:29 LOG5[682:675287360]: stunnel 4.41 on i386-portbld-freebsd8.2 platform
2011.08.04 17:45:29 LOG5[682:675287360]: Compiled/running with OpenSSL 1.0.0d 8 Feb 2011
2011.08.04 17:45:29 LOG5[682:675287360]: Threading:PTHREAD SSL:ENGINE Auth:LIBWRAP Sockets:POLL,IPv4
2011.08.04 17:45:29 LOG5[682:675287360]: Reading configuration from file /usr/local/etc/stunnel/stunnel.conf
2011.08.04 17:45:29 LOG7[682:675287360]: PRNG seeded successfully
2011.08.04 17:45:29 LOG6[682:675287360]: Initializing SSL context for service ssmtp
2011.08.04 17:45:29 LOG7[682:675287360]: Certificate: /usr/local/etc/stunnel/smtp.inbox.pem
2011.08.04 17:45:29 LOG7[682:675287360]: Certificate loaded
2011.08.04 17:45:29 LOG7[682:675287360]: Key file: /usr/local/etc/stunnel/smtp.inbox.pem
2011.08.04 17:45:29 LOG7[682:675287360]: Private key loaded
2011.08.04 17:45:29 LOG7[682:675287360]: Could not load DH parameters from /usr/local/etc/stunnel/smtp.inbox.pem
2011.08.04 17:45:29 LOG7[682:675287360]: Using hardcoded DH parameters
2011.08.04 17:45:29 LOG7[682:675287360]: DH initialized with 2048-bit key
2011.08.04 17:45:29 LOG7[682:675287360]: ECDH initialized with curve prime256v1
2011.08.04 17:45:29 LOG7[682:675287360]: SSL options set: 0x00000004
2011.08.04 17:45:29 LOG6[682:675287360]: SSL context initialized
2011.08.04 17:45:29 LOG6[682:675287360]: Initializing SSL context for service ssmtp2
2011.08.04 17:45:29 LOG7[682:675287360]: Certificate: /usr/local/etc/stunnel/smtp.inbox.pem
2011.08.04 17:45:29 LOG7[682:675287360]: Certificate loaded
2011.08.04 17:45:29 LOG7[682:675287360]: Key file: /usr/local/etc/stunnel/smtp.inbox.pem
2011.08.04 17:45:29 LOG7[682:675287360]: Private key loaded
2011.08.04 17:45:29 LOG7[682:675287360]: Could not load DH parameters from /usr/local/etc/stunnel/smtp.inbox.pem
2011.08.04 17:45:29 LOG7[682:675287360]: Using hardcoded DH parameters
2011.08.04 17:45:29 LOG7[682:675287360]: DH initialized with 2048-bit key
2011.08.04 17:45:29 LOG7[682:675287360]: ECDH initialized with curve prime256v1
2011.08.04 17:45:29 LOG7[682:675287360]: SSL options set: 0x00000004
2011.08.04 17:45:29 LOG6[682:675287360]: SSL context initialized
2011.08.04 17:45:29 LOG5[682:675287360]: Configuration successful
2011.08.04 17:45:29 LOG7[682:675287360]: libwrap_init: FD=5 allocated (blocking mode)
2011.08.04 17:45:29 LOG7[682:675287360]: libwrap_init: FD=6 allocated (blocking mode)
2011.08.04 17:45:29 LOG7[682:675287360]: libwrap_init: FD=6 allocated (blocking mode)
2011.08.04 17:45:29 LOG7[682:675287360]: libwrap_init: FD=7 allocated (blocking mode)
2011.08.04 17:45:29 LOG7[682:675287360]: libwrap_init: FD=7 allocated (blocking mode)
2011.08.04 17:45:29 LOG7[682:675287360]: libwrap_init: FD=8 allocated (blocking mode)
2011.08.04 17:45:29 LOG7[682:675287360]: libwrap_init: FD=8 allocated (blocking mode)
2011.08.04 17:45:29 LOG7[682:675287360]: libwrap_init: FD=9 allocated (blocking mode)
2011.08.04 17:45:29 LOG7[682:675287360]: libwrap_init: FD=9 allocated (blocking mode)
2011.08.04 17:45:29 LOG7[682:675287360]: libwrap_init: FD=10 allocated (blocking mode)
2011.08.04 17:45:29 LOG7[682:675287360]: accept socket: FD=11 allocated (non-blocking mode)
2011.08.04 17:45:29 LOG7[682:675287360]: Option SO_REUSEADDR set on accept socket
2011.08.04 17:45:29 LOG7[682:675287360]: Service ssmtp bound to 0.0.0.0:465
2011.08.04 17:45:29 LOG7[682:675287360]: Service ssmtp opened FD=11
2011.08.04 17:45:29 LOG7[682:675287360]: accept socket: FD=12 allocated (non-blocking mode)
2011.08.04 17:45:29 LOG7[682:675287360]: Option SO_REUSEADDR set on accept socket
2011.08.04 17:45:29 LOG7[682:675287360]: Service ssmtp2 bound to 0.0.0.0:587
2011.08.04 17:45:29 LOG7[682:675287360]: Service ssmtp2 opened FD=12
2011.08.04 17:45:29 LOG7[688:675287360]: Created pid file /stunnel.pid
2011.08.04 17:45:42 LOG7[688:675287360]: Dispatching signals from the signal pipe
2011.08.04 17:45:42 LOG7[688:675287360]: Service ssmtp closed FD=11
2011.08.04 17:45:42 LOG7[688:675287360]: Service ssmtp2 closed FD=12


This is my conf:

cert = /usr/local/etc/stunnel/smtp.inbox.pem
chroot = /usr/local/var/stunnel
setuid = stunnel
setgid = stunnel
pid = /stunnel.pid
debug = 7
output = /stunnel.log
client = no
foreground = no

; Some performance tuning
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1

[ssmtp]
accept  = 465
connect = 25

[ssmtp2]
accept  = 587
connect = 25


Any ideas of what could it be wrong? the last 2 lines of the boot log tell me that the ports i specify are been closed but why? 

2011.08.04 17:45:42 LOG7[688:675287360]: Dispatching signals from the signal pipe
2011.08.04 17:45:42 LOG7[688:675287360]: Service ssmtp closed FD=11
2011.08.04 17:45:42 LOG7[688:675287360]: Service ssmtp2 closed FD=12



thanks in advance.

regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2472 bytes
Desc: not available
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20110804/1b9c9864/attachment.bin>


More information about the stunnel-users mailing list