In the conf file from windows (client) I have the following configuration in stunnel.conf:
2015.04.09 13:48:04 LOG5[11060]: Configuration successful
2015.04.09 13:48:04 LOG7[11060]: Listening file descriptor created (FD=452)
2015.04.09 13:48:04 LOG7[11060]: Service [test] (FD=452) bound to
127.0.0.1:24042015.04.09 13:48:07 LOG7[11060]: Service [test] accepted (FD=496) from
127.0.0.1:566752015.04.09 13:48:07 LOG7[11060]: Creating a new thread
2015.04.09 13:48:07 LOG7[11060]: New thread created
2015.04.09 13:48:07 LOG7[2088]: Service [test] started
2015.04.09 13:48:07 LOG5[2088]: Service [test] accepted connection from
127.0.0.1:566752015.04.09 13:48:07 LOG6[2088]: s_connect: connecting xx.xxx.xxx.xxx:2406
2015.04.09 13:48:07 LOG7[2088]: s_connect: s_poll_wait xx.xxx.xxx.xxx:2406: waiting 10 seconds
2015.04.09 13:48:07 LOG5[2088]: s_connect: connected xx.xxx.xxx.xxx:2406
2015.04.09 13:48:07 LOG5[2088]: Service [test] connected remote server from
127.0.0.1:566762015.04.09 13:48:07 LOG7[2088]: Remote socket (FD=516) initialized
2015.04.09 13:48:07 LOG6[2088]: SNI: sending servername: my_server_name
2015.04.09 13:48:07 LOG7[2088]: SSL state (connect): before/connect initialization
2015.04.09 13:48:07 LOG7[2088]: SSL state (connect): SSLv3 write client hello A
2015.04.09 13:48:08 LOG3[2088]: SSL_connect: Peer suddenly disconnected
2015.04.09 13:48:08 LOG5[2088]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
2015.04.09 13:48:08 LOG7[2088]: Remote socket (FD=516) closed
2015.04.09 13:48:08 LOG7[2088]: Local socket (FD=496) closed
2015.04.09 13:48:08 LOG7[2088]: Service [test] finished (0 left)