<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hi Jose - thanks; that was the issue<br></div><div><br></div><div>thanks to your clue; I searched around a bit and found I can see what openvpn is listen to with this<br></div><div><br></div><div><span style="color: rgb(36, 39, 41); font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(239, 240, 241); text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">netstat -nlp</span><br></div><div><br></div><div>and turns out editing the server.conf and removing the local line entirely makes openvpn listen on all interfaces and that got things going which was great.<br></div><div><br></div><div><br></div><div><br></div><div data-zbluepencil-ignore="true" style="" class="zmail_extra"><div><br></div><div id="Zm-_Id_-Sgn1">---- On Tue, 10 Mar 2020 19:26:54 +0800 <b>Josealf.rm <josealf@rocketmail.com></b> wrote ----<br></div><div><br></div><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin: 0px 0px 0px 5px;"><div dir="auto"><div dir="ltr"><br></div><div dir="ltr">Kelly,<br></div><div dir="ltr"><br></div><div dir="ltr">Most likely, your OpenVPN server is not listening on (not bound to) your loopback interface. Check your OpenVPN configuration file.<br></div><div dir="ltr"><br></div><div dir="ltr">I understand you need to add <br></div><div dir="ltr">local 127.0.0.1 <br></div><div dir="ltr">to you openvpn.conf<br></div><div dir="ltr"><br></div><div dir="ltr">regards,<br></div><div dir="ltr">Jose<br></div><div dir="ltr"><br>On Mar 10, 2020, at 12:25 AM, Kelly Trinh <<a target="_blank" href="mailto:kelly@trinhonline.com">kelly@trinhonline.com</a>> wrote:<br><br></div><div><br></div><blockquote><div dir="ltr"><span>_______________________________________________</span><br><span>stunnel-users mailing list</span><br><span><a target="_blank" href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a></span><br><span><a 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></div></blockquote></div><blockquote><div dir="ltr"><div style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10.0pt;"><div>Hi all - just want to report a problem I solved recently but wanted to get some insights on what was causing the problem.<br></div><div><br></div><div>About me - learnt some unix at university (20 years ago) but nothing too serious. Recently (1 month ago) acquired own domain name and now poking around the cloud computing / VPS thing.<br></div><div><br></div><div>Project - hand-rolling my own VPN setup on a Ubuntu 18.04 VPS. OpenVPN is easy since it is a git-clone thing and then just follow the openvpn-install script. I wanted to add on the Stunnel wrapper because intended to use the VPN in China and apparently their firewall does deep packet inspection and can recognize (and block) openvpn traffic.<br></div><div><br></div><div>Problem - when I set up my stunnel using 127.0.0.1 as the connect destination; it doesn't seem to work (I can see from openvpn window that things seem to pipe through stunnel but then immediately the connection is terminated). If I replace the 127.0.0.1 with IP of the box I am using (say for example 1.2.3.4); everything works! The FQDN is ok as well; as long as I don't use 127.0.0.1<br></div><div><br></div><div>Specifically the stunnel.conf:<br></div><div><br></div><div>[OpenVPN]<br></div><div>Accept = 443 # clients connect through 443 to further avoid potential blocking<br></div><div>Connect = 127.0.0.1:1194 #<- this line won't work; but if I replace with 1.2.3.4:1194 then it will work!<br></div><div><br></div><div>Question - My problem is fixed but I am curious if there is any insights on why this is happening given that 1.2.3.4 and 127.0.0.1 are the same machine?<br></div><div><br></div><div><br></div></div><div><br></div></div></blockquote></blockquote></div><div><br></div></div><br></body></html>