[stunnel-users] Reboot Requires Manual: "service stunnel restart"

John Vasko j3vasko at gmail.com
Sat Jul 21 12:29:03 CEST 2012


On FreeBSD 9.0 stunnel 4.43 works fine after running "service stunnel 
restart", but stunnel fails loading on boot.

My desired config includes:

/usr/local/etc/stunnel/stunnel.conf
--------------------------------------------
[attsmtp]
client = yes
verify = 0
accept = 2525
connect = smtp.att.yahoo.com:465
delay = yes

Please advise.

See below for messages after bootup:

/var/run/stunnel/stunnel.log
------------------------------------

2012.07.21 02:52:06 LOG7[1378:675300096]: No limit detected for the number of clients
2012.07.21 02:52:06 LOG7[1378:675300096]: signal_pipe: FD=3 allocated (non-blocking mode)
2012.07.21 02:52:06 LOG7[1378:675300096]: signal_pipe: FD=4 allocated (non-blocking mode)
2012.07.21 02:52:06 LOG5[1378:675300096]: stunnel 4.43 on i386-portbld-freebsd9.0 platform
2012.07.21 02:52:06 LOG5[1378:675300096]: Compiled/running with OpenSSL 1.0.0e 6 Sep 2011
2012.07.21 02:52:06 LOG5[1378:675300096]: Threading:PTHREAD SSL:ENGINE Auth:LIBWRAP Sockets:POLL,IPv6
2012.07.21 02:52:06 LOG5[1378:675300096]: Reading configuration from file /usr/local/etc/stunnel/stunnel.conf
2012.07.21 02:52:06 LOG7[1378:675300096]: Snagged 64 random bytes from //.rnd
2012.07.21 02:52:06 LOG7[1378:675300096]: Wrote 1024 new random bytes to //.rnd
2012.07.21 02:52:06 LOG7[1378:675300096]: PRNG seeded successfully
2012.07.21 02:52:08 LOG6[1378:675300096]: Initializing SSL context for service attsmtp
2012.07.21 02:52:08 LOG7[1378:675300096]: SSL options set: 0x00000004
2012.07.21 02:52:08 LOG6[1378:675300096]: SSL context initialized
2012.07.21 02:52:08 LOG5[1378:675300096]: Configuration successful
2012.07.21 02:52:08 LOG7[1378:675300096]: libwrap_init: FD=5 allocated (blocking mode)
2012.07.21 02:52:08 LOG7[1378:675300096]: libwrap_init: FD=6 allocated (blocking mode)
2012.07.21 02:52:08 LOG7[1378:675300096]: libwrap_init: FD=6 allocated (blocking mode)
2012.07.21 02:52:08 LOG7[1378:675300096]: libwrap_init: FD=7 allocated (blocking mode)
2012.07.21 02:52:08 LOG7[1378:675300096]: libwrap_init: FD=7 allocated (blocking mode)
2012.07.21 02:52:08 LOG7[1378:675300096]: libwrap_init: FD=8 allocated (blocking mode)
2012.07.21 02:52:08 LOG7[1378:675300096]: libwrap_init: FD=8 allocated (blocking mode)
2012.07.21 02:52:08 LOG7[1378:675300096]: libwrap_init: FD=9 allocated (blocking mode)
2012.07.21 02:52:08 LOG7[1378:675300096]: libwrap_init: FD=9 allocated (blocking mode)
2012.07.21 02:52:08 LOG7[1378:675300096]: libwrap_init: FD=10 allocated (blocking mode)
2012.07.21 02:52:08 LOG7[1378:675300096]: accept socket: FD=11 allocated (non-blocking mode)
2012.07.21 02:52:08 LOG7[1378:675300096]: Option SO_REUSEADDR set on accept socket
2012.07.21 02:52:08 LOG7[1378:675300096]: Service attsmtp bound to 0.0.0.0:2525
2012.07.21 02:52:08 LOG7[1378:675300096]: Service attsmtp opened FD=11
2012.07.21 02:52:08 LOG7[1378:675300096]: Created pid file /stunnel.pid

2012.07.21 02:52:15 LOG7[1378:675300096]: Dispatching signals from the signal pipe
2012.07.21 02:52:15 LOG3[1378:675300096]: Received signal 2; terminating
2012.07.21 02:52:15 LOG7[1378:675300096]: str_stats: 43 block(s), 3554 byte(s)
2012.07.21 02:52:15 LOG7[1378:675300096]: removing pid file /stunnel.pid




More information about the stunnel-users mailing list