Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2005 12:36:48 +0800
From:      "Alex V. Petrov" <alex@globtel.ru>
To:        roam@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: stunnel-4.10
Message-ID:  <42882360.3070606@globtel.ru>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------090107080800070103050604
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit

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


--------------090107080800070103050604--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42882360.3070606>