<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yiv1841358563"><div id="yui_3_16_0_1_1444495737924_8359"><div id="yui_3_16_0_1_1444495737924_8358" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv1841358563"><div id="yiv1841358563yui_3_16_0_1_1444495737924_4338"><div id="yiv1841358563yui_3_16_0_1_1444495737924_4337" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div id="yiv1841358563yui_3_16_0_1_1444495737924_3174"><div id="yui_3_16_0_1_1444495737924_8357">Adrian,</div><div id="yui_3_16_0_1_1444495737924_8360"><br clear="none"></div><div id="yiv1841358563yui_3_16_0_1_1444495737924_4662"><div id="yui_3_16_0_1_1444495737924_8426" dir="ltr">Sorry, I didn't read your original mail carefully. You want to write  <a id="yui_3_16_0_1_1444495737924_8554" href="https://192.168.1.10:1988/">https://192.168.1.10:1988</a>  <a id="yui_3_16_0_1_1444495737924_8421" href="https://192.168.1.10:1988/"></a></div></div><div id="yiv1841358563yui_3_16_0_1_1444495737924_4661"><div id="yui_3_16_0_1_1444495737924_8681" dir="ltr"> and reach your SSL or TLS service that listens on port 4952 of loopback interface on host with IP 192.168.1.10.</div><div id="yui_3_16_0_1_1444495737924_8826" dir="ltr"><br></div><div id="yui_3_16_0_1_1444495737924_8827" dir="ltr">You need to 2 stunnel stanzas to achive what you want. Something like:<br></div></div></div><div id="yiv1841358563yui_3_16_0_1_1444495737924_3169"><div id="yiv1841358563yui_3_16_0_1_1444495737924_4658"><br clear="none"></div><div id="yiv1841358563yui_3_16_0_1_1444495737924_4657"><br clear="none"></div></div><div id="yiv1841358563yui_3_16_0_1_1444495737924_3170">[myservice]<br class="" id="yui_3_16_0_1_1444495737924_9055" clear="none"> cert = stunnel.pem<br class="" id="yui_3_16_0_1_1444495737924_9057" clear="none"> client = no<br class="" id="yui_3_16_0_1_1444495737924_9059" clear="none"> accept = <a class="" id="yui_3_16_0_1_1444495737924_9061" rel="nofollow" shape="rect" target="_blank" href="http://0.0.0.0:1988/">0.0.0.0:1988</a><br class="" id="yui_3_16_0_1_1444495737924_9063" clear="none"><div id="yui_3_16_0_1_1444495737924_9279" dir="ltr"> connect = localhost:1987</div></div><div id="yiv1841358563yui_3_16_0_1_1444495737924_3168"><span></span></div><div id="yui_3_16_0_1_1444495737924_9215"><br>  </div><div id="yui_3_16_0_1_1444495737924_9214"><br></div><div class="" id="yiv1841358563yui_3_16_0_1_1444495737924_3170">[myserviceaux]<br class="" id="yui_3_16_0_1_1444495737924_9055" clear="none"> cert = stunnel.pem<br class="" id="yui_3_16_0_1_1444495737924_9057" clear="none"> client = yes<br class="" id="yui_3_16_0_1_1444495737924_9059" clear="none"> accept = <a class="" id="yui_3_16_0_1_1444495737924_9061" rel="nofollow" shape="rect" target="_blank" href="http://0.0.0.0:1988/">localhost:1987</a><br class="" id="yui_3_16_0_1_1444495737924_9063" clear="none"><div class="" id="yui_3_16_0_1_1444495737924_9073" dir="ltr"> connect = localhost:4952</div></div><div class="" id="yiv1841358563yui_3_16_0_1_1444495737924_3168"><span class="" id="yui_3_16_0_1_1444495737924_9076"></span></div><div class="" id="yui_3_16_0_1_1444495737924_9078"><br class="" id="yui_3_16_0_1_1444495737924_9080">  </div><div class="" id="yui_3_16_0_1_1444495737924_9082" dir="ltr"><br class="" id="yui_3_16_0_1_1444495737924_9084"></div><div class="yiv1841358563qtdSeparateBR" id="yiv1841358563yui_3_16_0_1_1444495737924_3255">If you find this too convoluted, you could try with other reverse proxy software like apache or squid.<br clear="none"><br clear="none"></div></div></div></div><div id="yui_3_16_0_1_1444495737924_8685"> <div id="yui_3_16_0_1_1444495737924_8684" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div id="yui_3_16_0_1_1444495737924_8683" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div id="yui_3_16_0_1_1444495737924_8682" class="yiv1841358563qtdSeparateBR">With your original config, you should be able to connect using http instead of https, as stunnel is expecting clearr text traffic.<br clear="none"><div id="yui_3_16_0_1_1444495737924_9670"><br></div><div id="yui_3_16_0_1_1444495737924_9676"><br></div><div id="yui_3_16_0_1_1444495737924_9669">Please try and let us know how it goes.<br></div><div id="yui_3_16_0_1_1444495737924_9675"><br></div></div><div class="yiv1841358563yqt6141254515" id="yiv1841358563yqt00966"><div class="yiv1841358563yqt4233582521" id="yiv1841358563yqt03006"><div id="yui_3_16_0_1_1444495737924_9344" dir="ltr"> <font id="yui_3_16_0_1_1444495737924_9668" face="Arial" size="2"> On Saturday, October 10, 2015 9:58 AM, Josealf.rm <josealf@rocketmail.com> wrote:<br clear="none"> </font> </div>  <br clear="none"><br clear="none"> <div id="yui_3_16_0_1_1444495737924_8890" class="yiv1841358563y_msg_container"><div id="yiv1841358563"><div id="yui_3_16_0_1_1444495737924_8889"><div id="yui_3_16_0_1_1444495737924_9538">Some clarifications</div><div id="yiv1841358563AppleMailSignature"><br clear="none"></div><div id="yiv1841358563AppleMailSignature">1. Most likely stunnel and your service can't negotiate a protocol. Thus the connection fails. The service could be using SSL3 that is now obsolete. You may need to downgrade from TLS to SSL3 in stunnel.</div><div id="yiv1841358563AppleMailSignature">2. You can do a direct test with curl against you service (local) or openssl s_client.</div><div id="yiv1841358563AppleMailSignature"><br clear="none">Regards</div><div id="yiv1841358563AppleMailSignature">Jose</div><div><br clear="none">El 9 oct 2015, a las 5:44, Adrián Mihálko <<a rel="nofollow" shape="rect" ymailto="mailto:adriankoooo@gmail.com" target="_blank" href="mailto:adriankoooo@gmail.com">adriankoooo@gmail.com</a>> escribió:<br clear="none"><br clear="none"></div><div class="yiv1841358563yqt9984607881" id="yiv1841358563yqt70604"><blockquote id="yui_3_16_0_1_1444495737924_8895" type="cite"><div id="yui_3_16_0_1_1444495737924_8894"><div id="yui_3_16_0_1_1444495737924_8893" dir="ltr">Some good news, I remove client = yes as you suggested:<div><br clear="none"></div><div id="yui_3_16_0_1_1444495737924_8892"><div>2015.10.09 12:39:29 LOG5[main]: Configuration successful</div><div id="yui_3_16_0_1_1444495737924_9604">2015.10.09 12:39:29 LOG5[main]: Logging to C:\Users\adrianmihalko\AppData\Local\stunnel.log</div><div id="yui_3_16_0_1_1444495737924_9602">2015.10.09 12:39:34 LOG6[57]: SSL socket closed (SSL_read)</div><div>2015.10.09 12:39:34 LOG5[57]: Connection closed: 0 byte(s) sent to SSL, 445 byte(s) sent to socket</div><div>2015.10.09 12:39:34 LOG5[60]: Service [myservice] accepted connection from <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://192.168.1.25:49671/">192.168.1.25:49671</a></div><div id="yui_3_16_0_1_1444495737924_8891">2015.10.09 12:39:34 LOG6[60]: SSL accepted: new session negotiated</div><div>2015.10.09 12:39:34 LOG6[60]: No peer certificate received</div><div>2015.10.09 12:39:34 LOG6[60]: Negotiated TLSv1.2 ciphersuite ECDHE-RSA-AES128-GCM-SHA256 (128-bit encryption)</div><div>2015.10.09 12:39:34 LOG6[60]: failover: round-robin, starting at entry #0</div><div>2015.10.09 12:39:34 LOG6[60]: s_connect: connecting ::1:41952</div><div>2015.10.09 12:39:34 LOG5[60]: s_connect: connected ::1:41952</div><div>2015.10.09 12:39:34 LOG6[60]: persistence: ::1:41952 cached</div><div>2015.10.09 12:39:34 LOG5[60]: Service [myservice] connected remote server from ::1:50598</div><div id="yui_3_16_0_1_1444495737924_9603">2015.10.09 12:39:34 LOG6[60]: SSL socket closed (SSL_read)</div><div>2015.10.09 12:39:34 LOG5[60]: Connection closed: 0 byte(s) sent to SSL, 0 byte(s) sent to socket</div><div>2015.10.09 12:39:34 LOG5[61]: Service [myservice] accepted connection from <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://192.168.1.25:49672/">192.168.1.25:49672</a></div><div id="yui_3_16_0_1_1444495737924_8896">2015.10.09 12:39:34 LOG6[61]: SSL accepted: new session negotiated</div><div>2015.10.09 12:39:34 LOG6[61]: No peer certificate received</div><div>2015.10.09 12:39:34 LOG6[61]: Negotiated TLSv1.2 ciphersuite ECDHE-RSA-AES128-GCM-SHA256 (128-bit encryption)</div><div>2015.10.09 12:39:34 LOG6[61]: failover: round-robin, starting at entry #1</div><div>2015.10.09 12:39:34 LOG6[61]: s_connect: connecting <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://127.0.0.1:41952/">127.0.0.1:41952</a></div><div id="yui_3_16_0_1_1444495737924_8994">2015.10.09 12:39:34 LOG5[61]: s_connect: connected <a id="yui_3_16_0_1_1444495737924_8993" rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://127.0.0.1:41952/">127.0.0.1:41952</a></div><div>2015.10.09 12:39:34 LOG6[61]: persistence: <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://127.0.0.1:41952/">127.0.0.1:41952</a> cached</div><div>2015.10.09 12:39:34 LOG5[61]: Service [myservice] connected remote server from <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://127.0.0.1:50599/">127.0.0.1:50599</a></div></div><div><br clear="none"></div><div>openssl_client log:</div><div><br clear="none"></div><div id="yui_3_16_0_1_1444495737924_8897"><a rel="nofollow" shape="rect" target="_blank" href="http://pastebin.com/7bg3sf7J">http://pastebin.com/7bg3sf7J</a><br clear="none"></div><div><br clear="none"></div><div>The problem is now that the site loads forever, nothing happens. </div><div><br clear="none"></div><div><div>(this certificate (:1988) is other than the original (:41952). This is not problem?</div></div><div><br clear="none"></div><div>curl test:</div><div><br clear="none"></div><div id="yui_3_16_0_1_1444495737924_8899"><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(101,123,131);background-color:rgb(253,246,227);">$ curl <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="https://192.168.1.17:1988/DYMO/DLS/Printing/Check">https://192.168.1.17:1988/DYMO/DLS/Printing/Check</a> -vk</div>
<div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(101,123,131);background-color:rgb(253,246,227);">*   Trying 192.168.1.17...</div>
<div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(101,123,131);background-color:rgb(253,246,227);">* Connected to 192.168.1.17 (192.168.1.17) port 1988 (#0)</div>
<div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(101,123,131);background-color:rgb(253,246,227);">* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384</div>
<div id="yui_3_16_0_1_1444495737924_8898" style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(101,123,131);background-color:rgb(253,246,227);">* Server certificate: localhost</div>
<div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(101,123,131);background-color:rgb(253,246,227);">> GET /DYMO/DLS/Printing/Check HTTP/1.1</div>
<div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(101,123,131);background-color:rgb(253,246,227);">> Host: <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://192.168.1.17:1988/">192.168.1.17:1988</a></div>
<div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(101,123,131);background-color:rgb(253,246,227);">> User-Agent: curl/7.43.0</div>
<div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(101,123,131);background-color:rgb(253,246,227);">> Accept: */*</div>
<div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(101,123,131);background-color:rgb(253,246,227);">> </div></div><div>waiting forever.</div></div><div id="yui_3_16_0_1_1444495737924_8905" class="yiv1841358563gmail_extra"><br clear="none"><div id="yui_3_16_0_1_1444495737924_8904" class="yiv1841358563gmail_quote">2015-10-09 12:34 GMT+02:00 Adrián Mihálko <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:adriankoooo@gmail.com" target="_blank" href="mailto:adriankoooo@gmail.com">adriankoooo@gmail.com</a>></span>:<br clear="none"><blockquote id="yui_3_16_0_1_1444495737924_8903" class="yiv1841358563gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id="yui_3_16_0_1_1444495737924_8902" dir="ltr">In the first mail I wrote ports bad, of course in the log I am using the good ones.<div><br clear="none"></div><div id="yui_3_16_0_1_1444495737924_8901"><span class="yiv1841358563"></span><div>[myservice]</div><div>cert = stunnel.pem</div><div id="yui_3_16_0_1_1444495737924_8900">client = yes</div><div>accept = <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://0.0.0.0:1988/">0.0.0.0:1988</a></div><div>connect = localhost:41952</div></div><div><br clear="none"></div></div><div id="yui_3_16_0_1_1444495737924_8912" class="yiv1841358563HOEnZb"><div id="yui_3_16_0_1_1444495737924_8911" class="yiv1841358563h5"><div id="yui_3_16_0_1_1444495737924_8910" class="yiv1841358563gmail_extra"><br clear="none"><div id="yui_3_16_0_1_1444495737924_8909" class="yiv1841358563gmail_quote">2015-10-09 12:32 GMT+02:00 Adrián Mihálko <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:adriankoooo@gmail.com" target="_blank" href="mailto:adriankoooo@gmail.com">adriankoooo@gmail.com</a>></span>:<br clear="none"><blockquote id="yui_3_16_0_1_1444495737924_8908" class="yiv1841358563gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id="yui_3_16_0_1_1444495737924_8907" dir="ltr">Sorry, curl was only for testing.<div><br clear="none"></div>Adrians-MacBook-Pro:~ adrianmihalko$ openssl s_client -connect <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://192.168.1.17:1988/">192.168.1.17:1988</a><br clear="none">CONNECTED(00000003)<br clear="none">1130:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:/BuildRoot/Library/Caches/com.apple.xbs/Sources/OpenSSL098/OpenSSL098-59/src/ssl/s23_clnt.c:618:<div id="yui_3_16_0_1_1444495737924_8906"><br clear="none"></div><div id="yui_3_16_0_1_1444495737924_8914"><div>2015.10.09 12:23:21 LOG5[main]: Reading configuration from file stunnel.conf</div><div>2015.10.09 12:23:21 LOG5[main]: UTF-8 byte order mark detected</div><div>2015.10.09 12:23:21 LOG5[main]: FIPS mode disabled</div><div>2015.10.09 12:23:21 LOG6[main]: Initializing service [gmail-pop3]</div><div>2015.10.09 12:23:21 LOG6[main]: Initializing service [gmail-imap]</div><div>2015.10.09 12:23:21 LOG6[main]: Initializing service [gmail-smtp]</div><div>2015.10.09 12:23:21 LOG6[main]: Initializing service [myservice]</div><div>2015.10.09 12:23:21 LOG6[main]: Loading certificate from file: stunnel.pem</div><div>2015.10.09 12:23:21 LOG6[main]: Loading key from file: stunnel.pem</div><div>2015.10.09 12:23:21 LOG4[main]: Service [myservice] needs authentication to prevent MITM attacks</div><div>2015.10.09 12:23:21 LOG5[main]: Configuration successful</div><div id="yui_3_16_0_1_1444495737924_8913">2015.10.09 12:23:21 LOG5[main]: Logging to C:\Users\adrianmihalko\AppData\Local\stunnel.log</div><div>2015.10.09 12:23:42 LOG5[39]: Service [myservice] accepted connection from <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://192.168.1.25:49454/">192.168.1.25:49454</a></div><div>2015.10.09 12:23:42 LOG6[39]: failover: round-robin, starting at entry #0</div><div>2015.10.09 12:23:42 LOG6[39]: s_connect: connecting ::1:41952</div><div>2015.10.09 12:23:42 LOG5[39]: s_connect: connected ::1:41952</div><div>2015.10.09 12:23:42 LOG5[39]: Service [myservice] connected remote server from ::1:50564</div><div>2015.10.09 12:23:42 LOG6[39]: SNI: sending servername: localhost</div><div>2015.10.09 12:23:42 LOG6[39]: Certificate verification disabled</div><div>2015.10.09 12:23:42 LOG6[39]: Certificate verification disabled</div><div>2015.10.09 12:23:42 LOG6[39]: SSL connected: new session negotiated</div><div>2015.10.09 12:23:42 LOG6[39]: Negotiated TLSv1 ciphersuite AES128-SHA (128-bit encryption)</div><div>2015.10.09 12:23:42 LOG6[39]: SSL socket closed (SSL_read)</div><div id="yui_3_16_0_1_1444495737924_8915">2015.10.09 12:23:42 LOG5[39]: Connection closed: 130 byte(s) sent to SSL, 505 byte(s) sent to socket</div></div><div><br clear="none"></div><div>If I am connecting to the :41952:</div><div><br clear="none"></div><div style="margin:0px;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(101,123,131);background-color:rgb(253,246,227);">openssl s_client -connect <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://192.168.1.17:41952/">192.168.1.17:41952</a></div>...<br clear="none"><br clear="none">---<br clear="none">No client certificate CA names sent<br clear="none">---<br clear="none">SSL handshake has read 1724 bytes and written 712 bytes<br clear="none">---<br clear="none">New, TLSv1/SSLv3, Cipher is AES128-SHA<br clear="none">Server public key is 4096 bit<br clear="none">Secure Renegotiation IS supported<br clear="none">Compression: NONE<br clear="none">Expansion: NONE<br clear="none">SSL-Session:<br clear="none">    Protocol  : TLSv1<br clear="none">    Cipher    : AES128-SHA<br clear="none">...<div class="yiv1841358563gmail_extra"><br clear="none"></div><div id="yui_3_16_0_1_1444495737924_8920" class="yiv1841358563gmail_extra"><br clear="none"><div id="yui_3_16_0_1_1444495737924_8919" class="yiv1841358563gmail_quote"><div><div>2015-10-09 10:55 GMT+02:00 test rig <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:testrig@z1p.biz" target="_blank" href="mailto:testrig@z1p.biz">testrig@z1p.biz</a>></span>:<br clear="none"></div></div><blockquote id="yui_3_16_0_1_1444495737924_8918" class="yiv1841358563gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id="yui_3_16_0_1_1444495737924_8917"><div id="yui_3_16_0_1_1444495737924_8916"><br clear="none"><font face="arial" size="2"><font face="arial" size="2">Ouch #2 missing...<br clear="none"><br clear="none"></font></font><font face="arial" size="2"><font face="arial" size="2"><span>Hi Adrian, looks good to me so far - mostly. Try to replace the client=yes with a client=no on the server<br clear="none"><br clear="none"></span>You are connection to :9999 with curl(?)<br clear="none">Try verify it via "openssl s_client -connect yourserverip:1988" command<br clear="none"><br clear="none">Best Regards<br clear="none">Michael<br clear="none"><br clear="none"></font></font><font face="arial" size="2"><font face="arial" size="2"></font></font><blockquote id="yui_3_16_0_1_1444495737924_8921" dir="ltr" style="border-left:2px solid rgb(0,0,0);padding-right:0px;padding-left:5px;margin-left:5px;margin-right:0px;">--- Ursprüngliche Nachricht ---<br clear="none"><b>Von:</b> "test rig" <<a rel="nofollow" shape="rect" ymailto="mailto:testrig@z1p.biz" target="_blank" href="mailto:testrig@z1p.biz">testrig@z1p.biz</a>><br clear="none"><b>Datum:</b> 09.10.2015 09:48:02<br clear="none"><b>An:</b> "<a rel="nofollow" shape="rect" ymailto="mailto:stunnel-users@stunnel.org" target="_blank" href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a>." <<a rel="nofollow" shape="rect" ymailto="mailto:stunnel-users@stunnel.org" target="_blank" href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a>><br clear="none"><b>Betreff:</b> Re: [stunnel-users] (no subject)<br clear="none"><br clear="none"><font face="arial" size="2"><span>Hi Adrian, looks good to me so far - mostly. Try to replace the client=yes with a client=no on the server<br clear="none"></span></font><blockquote id="yui_3_16_0_1_1444495737924_8926" dir="ltr" style="border-left:2px solid rgb(0,0,0);padding-right:0px;padding-left:5px;margin-left:5px;margin-right:0px;"><span>--- Ursprüngliche Nachricht ---<br clear="none"><b>Von:</b> Adrián Mihálko <u></u><br clear="none"></span><div id="yui_3_16_0_1_1444495737924_8925"><div id="yui_3_16_0_1_1444495737924_8924"><b>Datum:</b> 09.10.2015 08:15:19<br clear="none"><b>An:</b> <a rel="nofollow" shape="rect" ymailto="mailto:stunnel-users@stunnel.org" target="_blank" href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a><br clear="none"><b>Betreff:</b> [stunnel-users] (no subject)<br clear="none"><br clear="none"><div id="yui_3_16_0_1_1444495737924_8923" dir="ltr"><div id="yui_3_16_0_1_1444495737924_8922">Dear stunnel users,</div><div><br clear="none"></div><div id="yui_3_16_0_1_1444495737924_8927">I have a little service which listen only on <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="https://localhost:4952/">https://localhost:4952</a> and checks source hostname. I want to connect on "listen:1988" and redirect requests with stunnel to "localhost:4952"<br clear="none"><br clear="none"><a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="https://192.168.1.10:1988/">https://192.168.1.10:1988</a>

-> redirect <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="https://localhost:4952/">https://localhost:4952</a><br clear="none"><br clear="none"><br clear="none">  I am trying to configure stunnel like this<br clear="none"><br clear="none"> [myservice]<br clear="none"> cert = stunnel.pem<br clear="none"> client = yes<br clear="none"> accept = <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://0.0.0.0:1988/">0.0.0.0:1988</a><br clear="none"> connect = localhost:4952<br clear="none"><br clear="none"> remote machine$ curl <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="https://192.168.1.25:9999/DYMO/DLS/Printing/Check">https://192.168.1.25:9999/DYMO/DLS/Printing/Check</a> -v<br clear="none"> *   Trying 192.168.1.25...<br clear="none"> * Connected to 192.168.1.25 (192.168.1.25) port 9999 (#0)<br clear="none"> * WARNING: using IP address, SNI is being disabled by the OS.<br clear="none"> * Unknown SSL protocol error in connection to 192.168.1.25:-9847<br clear="none"> * Closing connection 0<br clear="none"> curl: (35) Unknown SSL protocol error in connection to 192.168.1.25:-9847<br clear="none"><br clear="none"> stunnel.log:<br clear="none"> 2015.10.09

09:05:42 LOG5[38]: Service [myservice] accepted connection from <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://192.168.1.24:60748/">192.168.1.24:60748</a><br clear="none"> 2015.10.09 09:05:42 LOG6[38]: failover: round-robin, starting at entry #1<br clear="none"> 2015.10.09 09:05:42 LOG6[38]: s_connect: connecting <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://127.0.0.1:41952/">127.0.0.1:41952</a><br clear="none"> 2015.10.09 09:05:42 LOG5[38]: s_connect: connected <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://127.0.0.1:41952/">127.0.0.1:41952</a><br clear="none"> 2015.10.09 09:05:42 LOG5[38]: Service [myservice] connected remote server from <a rel="nofollow" shape="rect" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://127.0.0.1:50503/">127.0.0.1:50503</a><br clear="none"> 2015.10.09 09:05:42 LOG6[38]: SNI: sending servername: localhost<br clear="none"> 2015.10.09 09:05:42 LOG6[38]: Certificate verification disabled<br clear="none"> 2015.10.09 09:05:42 LOG6[38]: Certificate verification disabled<br clear="none"> 2015.10.09

09:05:42 LOG6[38]: SSL connected: new session negotiated<br clear="none"> 2015.10.09 09:05:42 LOG6[38]: Negotiated TLSv1 ciphersuite AES128-SHA (128-bit encryption)<br clear="none"> 2015.10.09 09:05:42 LOG6[38]: SSL socket closed (SSL_read)<br clear="none"> 2015.10.09 09:05:42 LOG5[38]: Connection closed: 230 byte(s) sent to SSL, 505 byte(s) sent to socket<br clear="none"><br clear="none"> I am tried verify = 1 to 4, either works. :(<br clear="none"><br clear="none"> Best Regards,<br clear="none"> Adrian </div></div>

<u></u></div></div></blockquote><div><div>
<br clear="none"><br clear="none">
______________________________________________________<br clear="none">
powered by <a rel="nofollow" shape="rect" target="_blank" href="http://perfect-privacy.com/">Perfect-Privacy.com</a> / <a rel="nofollow" shape="rect" target="_blank" href="http://secure-mail.biz/">Secure-Mail.biz</a> - anonymous and secure internet.</div></div></blockquote><div><div>
<br clear="none"><br clear="none">
______________________________________________________<br clear="none">
powered by <a rel="nofollow" shape="rect" target="_blank" href="http://perfect-privacy.com/">Perfect-Privacy.com</a> / <a rel="nofollow" shape="rect" target="_blank" href="http://secure-mail.biz/">Secure-Mail.biz</a> - anonymous and secure internet.

</div></div><br clear="none"></div></div>_______________________________________________<br clear="none">
stunnel-users mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:stunnel-users@stunnel.org" target="_blank" href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div>
</blockquote></div><br clear="none"></div>
</div></div></blockquote></div><br clear="none"></div>
</div></blockquote></div><blockquote type="cite"><div><span>_______________________________________________</span><br clear="none"><span>stunnel-users mailing list</span><br clear="none"><span><a rel="nofollow" shape="rect" ymailto="mailto:stunnel-users@stunnel.org" target="_blank" href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a></span><br clear="none"><span><a rel="nofollow" shape="rect" target="_blank" href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a></span><br clear="none"></div></blockquote></div></div><br clear="none"><div class="yiv1841358563yqt9984607881" id="yiv1841358563yqt48884">_______________________________________________<br clear="none">stunnel-users mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:stunnel-users@stunnel.org" target="_blank" href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><br clear="none"></div><br clear="none"><br clear="none"></div></div></div>  </div> </div>  </div></div></div></div></div></body></html>