FreeBSD Port: stunnel-4.10
Alex V. Petrov
alex at globtel.ru
Sun May 15 21:36:48 PDT 2005
Hi!
After update FreeBSD 5.3 -> 5.4
and
stunnel and openssl to current
stunnel-4.10 = up-to-date with port
openssl-0.9.7g = up-to-date with port
After 2-3 connections stunnel daemon close pid and ended job.
File: stunnel.conf :
cert =
/usr/local/etc/stunnel.pem
chroot =
/usr/local/var/stunnel/
setuid =
stunnel
setgid =
stunnel
pid =
/stunnel.pid
socket =
l:TCP_NODELAY=1
socket =
r:TCP_NODELAY=1
[pop3s]
accept =
995
connect =
110
[ssmtp]
accept =
465
connect = 25
File: stunnel.sh:
#!/bin/sh
. /etc/rc.subr
name="stunnel"
rcvar=`set_rcvar`
stunnel_config="/usr/local/etc/stunnel/${name}.conf"
stunnel_pidfile="/usr/local/var/${name}/${name}.pid"
command="/usr/local/sbin/stunnel"
[ -z "$stunnel_enable" ] && stunnel_enable="NO"
load_rc_config $name
command_args=${stunnel_config}
pidfile=${stunnel_pidfile}
required_files="${stunnel_config}"
run_rc_command "$1"
End of log:
2005.05.14 14:03:34 LOG7[14721:3]: SSL write
shutdown
2005.05.14 14:03:34 LOG7[14721:0]: Waiting 60 second(s) for 4 file
descriptor(s)
2005.05.14 14:03:34 LOG7[14721:0]: CONTEXT 1, FD=4,
(IN)->()
2005.05.14 14:03:34 LOG7[14721:0]: CONTEXT 1, FD=6,
(IN)->()
2005.05.14 14:03:34 LOG7[14721:0]: CONTEXT 1, FD=7,
(IN)->()
2005.05.14 14:03:34 LOG7[14721:0]: CONTEXT 3, FD=8,
(INOUT)->(OUT)
2005.05.14 14:03:34 LOG7[14721:3]: SSL alert (write): warning: close
notify
2005.05.14 14:03:34 LOG7[14721:3]: SSL_shutdown
retrying
2005.05.14 14:03:34 LOG7[14721:3]: SSL doesn't need to read or
write
2005.05.14 14:03:34 LOG7[14721:0]: Waiting 60 second(s) for 4 file
descriptor(s)
2005.05.14 14:03:34 LOG7[14721:0]: CONTEXT 1, FD=4,
(IN)->()
2005.05.14 14:03:34 LOG7[14721:0]: CONTEXT 1, FD=6,
(IN)->()
2005.05.14 14:03:34 LOG7[14721:0]: CONTEXT 1, FD=7,
(IN)->()
2005.05.14 14:03:34 LOG7[14721:0]: CONTEXT 3, FD=8,
(IN)->(IN)
2005.05.14 14:03:34 LOG7[14721:3]: SSL socket closed on
SSL_read
2005.05.14 14:03:34 LOG7[14721:3]: Socket write
shutdown
2005.05.14 14:03:34 LOG5[14721:3]: Connection closed: 1621 bytes sent to
SSL, 72 bytes sent to socket
2005.05.14 14:03:34 LOG7[14721:3]: pop3s finished (0
left)
2005.05.14 14:03:34 LOG7[14721:3]: removing pid file /stunnel.pid
Can You help me?
Sorry fo bad english. :-)
--
Alex V. Petrov
ICQ#: 145630370
More information about the freebsd-ports
mailing list