[prev in list] [next in list] [prev in thread] [next in thread] 

List:       stunnel-users
Subject:    [stunnel-users] Stunnel stuck at SSL state (accept): before/accept
From:       Jack Liu <jackliu92 () hotmail ! com>
Date:       2011-04-24 8:30:24
Message-ID: COL116-W44684906DECFC6894E7CB2B7970 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


It anyone knows how to fix Stunnel stuck at SSL state (accept): before/accept \
initialization???  
Here is the log:
-----------------------------------------------------------------------------------------------------------
 [root@vps1 ~]#stunnel /etc/stunnel/stunnel.conf
2011.04.24 02:25:13 LOG7[32174:3085993680]: Snagged 64 random bytes from /root/.rnd
2011.04.24 02:25:13 LOG7[32174:3085993680]: Wrote 1024 new random bytes to /root/.rnd
2011.04.24 02:25:13 LOG7[32174:3085993680]: RAND_status claims sufficient entropy for \
the PRNG 2011.04.24 02:25:13 LOG6[32174:3085993680]: PRNG seeded successfully
2011.04.24 02:25:13 LOG7[32174:3085993680]: Certificate: /etc/stunnel/stunnel.pem
2011.04.24 02:25:13 LOG7[32174:3085993680]: Key file: /etc/stunnel/stunnel.pem
2011.04.24 02:25:13 LOG7[32174:3085993680]: Verify directory set to /etc/stunnel/CA
2011.04.24 02:25:13 LOG7[32174:3085993680]: CRL directory set to /etc/stunnel/CRL
2011.04.24 02:25:13 LOG7[32174:3085993680]: SSL context initialized for service \
3proxy 2011.04.24 02:25:13 LOG5[32174:3085993680]: stunnel 4.15 on \
i686-redhat-linux-gnu with OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 2011.04.24 02:25:13 \
LOG5[32174:3085993680]: Threading:PTHREAD SSL:ENGINE Sockets:POLL,IPv6 Auth:LIBWRAP \
2011.04.24 02:25:13 LOG6[32174:3085993680]: file ulimit = 1024 (can be changed with \
'ulimit -n') 2011.04.24 02:25:13 LOG6[32174:3085993680]: poll() used - no FD_SETSIZE \
limit for file descriptors 2011.04.24 02:25:13 LOG5[32174:3085993680]: 500 clients \
allowed 2011.04.24 02:25:13 LOG7[32174:3085993680]: FD 3 in non-blocking mode
2011.04.24 02:25:13 LOG7[32174:3085993680]: FD 4 in non-blocking mode
2011.04.24 02:25:13 LOG7[32174:3085993680]: FD 5 in non-blocking mode
2011.04.24 02:25:13 LOG7[32174:3085993680]: SO_REUSEADDR option set on accept socket
2011.04.24 02:25:13 LOG7[32174:3085993680]: 3proxy bound to 0.0.0.0:30001
2011.04.24 02:25:13 LOG7[32174:3085993680]: Created pid file /var/run/stunnel.pid
2011.04.24 02:25:20 LOG7[32174:3085993680]: 3proxy accepted FD=6 from \
xx.xxx.xxx.xx:41165 2011.04.24 02:25:20 LOG7[32174:3085990800]: 3proxy started
2011.04.24 02:25:20 LOG7[32174:3085990800]: FD 6 in non-blocking mode
2011.04.24 02:25:20 LOG7[32174:3085990800]: FD 7 in non-blocking mode
2011.04.24 02:25:20 LOG7[32174:3085990800]: FD 8 in non-blocking mode
2011.04.24 02:25:20 LOG7[32174:3085993680]: Cleaning up the signal pipe
2011.04.24 02:25:20 LOG6[32174:3085993680]: Child process 32176 finished with code 0
2011.04.24 02:25:20 LOG7[32174:3085990800]: Connection from xx.xxx.xxx.xx:41165 \
permitted by libwrap 2011.04.24 02:25:20 LOG5[32174:3085990800]: 3proxy connected \
from xx.xxx.xxx.xx:41165 2011.04.24 02:25:20 LOG7[32174:3085990800]: SSL state \
(accept): before/accept initialization          <-----------------------Stuck here \
forever!!! 2011.04.24 02:25:22 LOG3[32174:3085990800]: SSL_accept: Peer suddenly \
disconnected 2011.04.24 02:25:22 LOG5[32174:3085990800]: Connection reset: 0 bytes \
sent to SSL, 0 bytes sent to socket 2011.04.24 02:25:22 LOG7[32174:3085990800]: \
3proxy finished (0 left) 2011.04.24 02:25:25 LOG3[32174:3085993680]: Received signal \
2; terminating 2011.04.24 02:25:25 LOG7[32174:3085993680]: removing pid file \
/var/run/stunnel.pid [root@vps1 ~]#
-----------------------------------------------------------------------------------------------------------
 stunnel.conf:
cert = /etc/stunnel/stunnel.pem
key = /etc/stunnel/stunnel.pem
CApath = /etc/stunnel/CA
CRLpath =  /etc/stunnel/CRL
debug = 7
foreground = yes
verify = 1
#
[3proxy]
accept = 30001
connect = 127.0.0.1:33135
-----------------------------------------------------------------------------------------------------------


I am hosting with CentOS 5.5, and installed Stunnel via yum.
Planning to use it with 3Proxy. However I experience the problem above, can someone \
please help with that? Thank you very much!



Mr. Jack 		 	   		  


[Attachment #5 (text/html)]

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
It anyone knows how to fix Stunnel stuck at SSL state (accept): before/accept \
initialization???<BR> &nbsp;<BR>
Here is&nbsp;the log:<BR>
-----------------------------------------------------------------------------------------------------------<BR>[root@vps1 \
~]#stunnel /etc/stunnel/stunnel.conf<BR>2011.04.24 02:25:13 LOG7[32174:3085993680]: \
Snagged 64 random bytes from /root/.rnd<BR>2011.04.24 02:25:13 \
LOG7[32174:3085993680]: Wrote 1024 new random bytes to /root/.rnd<BR>2011.04.24 \
02:25:13 LOG7[32174:3085993680]: RAND_status claims sufficient entropy for the \
PRNG<BR>2011.04.24 02:25:13 LOG6[32174:3085993680]: PRNG seeded \
successfully<BR>2011.04.24 02:25:13 LOG7[32174:3085993680]: Certificate: \
/etc/stunnel/stunnel.pem<BR>2011.04.24 02:25:13 LOG7[32174:3085993680]: Key file: \
/etc/stunnel/stunnel.pem<BR>2011.04.24 02:25:13 LOG7[32174:3085993680]: Verify \
directory set to /etc/stunnel/CA<BR>2011.04.24 02:25:13 LOG7[32174:3085993680]: CRL \
directory set to /etc/stunnel/CRL<BR>2011.04.24 02:25:13 LOG7[32174:3085993680]: SSL \
context initialized for service 3proxy<BR>2011.04.24 02:25:13 LOG5[32174:3085993680]: \
stunnel 4.15 on i686-redhat-linux-gnu with OpenSSL 0.9.8e-fips-rhel5 01 Jul \
2008<BR>2011.04.24 02:25:13 LOG5[32174:3085993680]: Threading:PTHREAD SSL:ENGINE \
Sockets:POLL,IPv6 Auth:LIBWRAP<BR>2011.04.24 02:25:13 LOG6[32174:3085993680]: file \
ulimit = 1024 (can be changed with 'ulimit -n')<BR>2011.04.24 02:25:13 \
LOG6[32174:3085993680]: poll() used - no FD_SETSIZE limit for file \
descriptors<BR>2011.04.24 02:25:13 LOG5[32174:3085993680]: 500 clients \
allowed<BR>2011.04.24 02:25:13 LOG7[32174:3085993680]: FD 3 in non-blocking \
mode<BR>2011.04.24 02:25:13 LOG7[32174:3085993680]: FD 4 in non-blocking \
mode<BR>2011.04.24 02:25:13 LOG7[32174:3085993680]: FD 5 in non-blocking \
mode<BR>2011.04.24 02:25:13 LOG7[32174:3085993680]: SO_REUSEADDR option set on accept \
socket<BR>2011.04.24 02:25:13 LOG7[32174:3085993680]: 3proxy bound to \
0.0.0.0:30001<BR>2011.04.24 02:25:13 LOG7[32174:3085993680]: Created pid file \
/var/run/stunnel.pid<BR>2011.04.24 02:25:20 LOG7[32174:3085993680]: 3proxy accepted \
FD=6 from xx.xxx.xxx.xx:41165<BR>2011.04.24 02:25:20 LOG7[32174:3085990800]: 3proxy \
started<BR>2011.04.24 02:25:20 LOG7[32174:3085990800]: FD 6 in non-blocking \
mode<BR>2011.04.24 02:25:20 LOG7[32174:3085990800]: FD 7 in non-blocking \
mode<BR>2011.04.24 02:25:20 LOG7[32174:3085990800]: FD 8 in non-blocking \
mode<BR>2011.04.24 02:25:20 LOG7[32174:3085993680]: Cleaning up the signal \
pipe<BR>2011.04.24 02:25:20 LOG6[32174:3085993680]: Child process 32176 finished with \
code 0<BR>2011.04.24 02:25:20 LOG7[32174:3085990800]: Connection from \
xx.xxx.xxx.xx:41165 permitted by libwrap<BR>2011.04.24 02:25:20 \
LOG5[32174:3085990800]: 3proxy connected from xx.xxx.xxx.xx:41165<BR>2011.04.24 \
02:25:20 LOG7[32174:3085990800]: SSL state (accept): before/accept \
initialization&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;-----------------------Stuck here forever!!!<BR>2011.04.24 02:25:22 \
LOG3[32174:3085990800]: SSL_accept: Peer suddenly disconnected<BR>2011.04.24 02:25:22 \
LOG5[32174:3085990800]: Connection reset: 0 bytes sent to SSL, 0 bytes sent to \
socket<BR>2011.04.24 02:25:22 LOG7[32174:3085990800]: 3proxy finished (0 \
left)<BR>2011.04.24 02:25:25 LOG3[32174:3085993680]: Received signal 2; \
terminating<BR>2011.04.24 02:25:25 LOG7[32174:3085993680]: removing pid file \
                /var/run/stunnel.pid<BR>[root@vps1 ~]#<BR>
-----------------------------------------------------------------------------------------------------------<BR>
 stunnel.conf:<BR>
cert = /etc/stunnel/stunnel.pem<BR>key = /etc/stunnel/stunnel.pem<BR>CApath = \
/etc/stunnel/CA<BR>CRLpath =&nbsp; /etc/stunnel/CRL<BR>debug = 7<BR>foreground = \
                yes<BR>verify = 1<BR>#<BR>[3proxy]<BR>accept = 30001<BR>connect = \
                127.0.0.1:33135<BR>
-----------------------------------------------------------------------------------------------------------<BR>
 <BR>I am hosting with CentOS 5.5, and installed Stunnel via yum.<BR>
Planning to use it with 3Proxy. However I experience the problem above, can someone \
please help with that?<BR> Thank you very much!<BR>
<BR><BR><BR>Mr. Jack<BR> 		 	   		  </body>
</html>



_______________________________________________
stunnel-users mailing list
stunnel-users@stunnel.org
http://stunnel.mirt.net/mailman/listinfo/stunnel-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic