<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;font-variant-ligatures:normal">Hi,</span></span></p><div>I have to create tunnel between server and client. Client have proxy configured in between. </div><div>So i use below in <span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0);font-family:Menlo;font-size:11px">/etc/stunnel/stunnel.config</span></div><div><br></div><div><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">pid = /var/run/stunnel.pid</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">cert = /home/client.crt</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">key = /home/client.key</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">options = NO_SSLv2</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">debug = 7</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">output = /var/log/stunnel4/stunnel.log</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">client = yes</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">CAfile=/home/**chain.pem</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">verify=2</span></p></div><div><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">[test]</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">protocol = connect</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">accept = <a href="http://127.0.0.1:10000/" target="_blank">127.0.0.1:10000</a></span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">protocolHost = <a href="http://server.xxxx.com:443/" target="_blank">server.xxxx.com:443</a></span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">connect = <PROXYIP>:<PROXY port></span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">protocolUsername = user1</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">protocolPassword = password</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">protocolAuthentication = Basic</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">then i bring up the service. <br></span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures">With above configuration connection works file. </span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Now i don't want proxy password to be clear text in this case. </span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><font color="#000000" face="Menlo"><span style="font-size:11px;font-variant-ligatures:no-common-ligatures">Any pointers plz</span></font></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Thanks,</span></p><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Vj</span></p></div><p class="gmail-m_-3818949532441203677gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_-3818949532441203677gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p></div>
</blockquote></div></div>