Article View: news.software.readers
Article #266576Re: (Dialog) How do I debug a 40tude "socket error" (what's a socket error?)
From: Ronald
Date: Wed, 10 Jan 2024 05:54
Date: Wed, 10 Jan 2024 05:54
59 lines
3848 bytes
3848 bytes
On Tue, 9 Jan 2024 18:47:57 +0100, Bernd Rose <b.rose.tmpbox@arcor.de> wrote >> But I can't find any nntp examples for the setup of the stunnel.conf file. >> https://www.google.com/search?q=stunnel.conf+example+nntp+starttls > > [Neodome] > client = yes > accept = 127.0.0.1:55555 > connect = news.neodome.net:119 > protocol = nntp > > should work. Adding any verification (verifyPeer or verifyChain) will fail, > though, because this will (again) trigger the certificate expiration. > > Explanation: > If you are able to connect through sTunnel to a server, the connection will > always be encrypted. (Although, with the right setting, it is possible to > use "null encryption" [aka a non-encrypting "encryption" method].) Telling > sTunnel to connect with protocol NNTP on port 119 leads to a handshake with > STARTTLS. Thank you for showing me why all the googling in the world didn't find the "protocol=STARTTLS" command that I had tested & tried & which failed on me. Your exact port 119 STARTTLS configuration file worked perfectly with Dialog. ; Dialog Host: 127.0.0.1 ; Dialog Port: 65535 (pick any unused port between 49152 & 65535) ; Dialog SSL: unchecked ; Dialog Username: (required) ; Dialog Password: (required) ; Dialog Allwd. conn.: 2 ; Dialog Use pipelining (unchecked) [Neodome] client = yes accept = 127.0.0.1:65535 connect = news.neodome.net:119 protocol = nntp I don't understand what comes out of the sTunnel log file though. Here's the sTunnel log for test message number 1. LOG5[4]: Service [Neodome] accepted connection from 127.0.0.1:61463 LOG5[4]: s_connect: connected 95.216.243.224:119 LOG5[4]: Service [Neodome] connected remote server from 10.211.1.25:61464 LOG5[4]: Connection closed: 1538 byte(s) sent to TLS, 246 byte(s) sent to socket Here's the sTunnel log for test message number 2. LOG5[0]: Service [Neodome] accepted connection from 127.0.0.1:40720 LOG5[0]: s_connect: connected 95.216.243.224:119 LOG5[0]: Service [Neodome] connected remote server from 10.211.1.145:40721 LOG5[0]: Connection closed: 2213 byte(s) sent to TLS, 246 byte(s) sent to socket First line in the sTunnel log file (accepted): I never specified "127.0.0.1:61463" or "127.0.0.1:40720". Third line in the sTunnel log file (connected): I don't know what "10.211.1.25:61464" or "10.211.1.145:40721" But it works!
Technical Details
Message-ID:
<unlbea$1o1sv$1@paganini.bofh.team>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<und7gj$srbd$1@paganini.bofh.team> <und84c$ssl1$1@paganini.bofh.team> <302brvey53rn$.dlg@b.rose.tmpbox.news.arcor.de> <undopl$tmdk$1@paganini.bofh.team> <undpsb$tok8$1@paganini.bofh.team> <6ucf31mc6a5g$.dlg@b.rose.tmpbox.news.arcor.de> <ng3o9ylbddtr$.dlg@v.nguard.lh> <1kgyqw4a9o4nj.dlg@b.rose.tmpbox.news.arcor.de> <13wzj2991cacs$.dlg@v.nguard.lh> <1qbx3cveahlxr$.dlg@b.rose.tmpbox.news.arcor.de> <157xbin18xett$.dlg@v.nguard.lh> <ung18n$161em$1@paganini.bofh.team> <1juwka01ksoy.dlg@b.rose.tmpbox.news.arcor.de> <unik1g$1et6o$1@paganini.bofh.team> <1a1kt5a462qr6$.dlg@b.rose.tmpbox.news.arcor.de>Show Full Headers
Complete Article Headers
Message-ID: <unlbea$1o1sv$1@paganini.bofh.team> Subject: Re: (Dialog) How do I debug a 40tude "socket error" (what's a socket error?) Date: Wed, 10 Jan 2024 00:54:19 -0500 From: Ronald <ronald@nospam.me> References: <und7gj$srbd$1@paganini.bofh.team> <und84c$ssl1$1@paganini.bofh.team> <302brvey53rn$.dlg@b.rose.tmpbox.news.arcor.de> <undopl$tmdk$1@paganini.bofh.team> <undpsb$tok8$1@paganini.bofh.team> <6ucf31mc6a5g$.dlg@b.rose.tmpbox.news.arcor.de> <ng3o9ylbddtr$.dlg@v.nguard.lh> <1kgyqw4a9o4nj.dlg@b.rose.tmpbox.news.arcor.de> <13wzj2991cacs$.dlg@v.nguard.lh> <1qbx3cveahlxr$.dlg@b.rose.tmpbox.news.arcor.de> <157xbin18xett$.dlg@v.nguard.lh> <ung18n$161em$1@paganini.bofh.team> <1juwka01ksoy.dlg@b.rose.tmpbox.news.arcor.de> <unik1g$1et6o$1@paganini.bofh.team> <1a1kt5a462qr6$.dlg@b.rose.tmpbox.news.arcor.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.readers Organization: To protect and to server Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit Injection-Date: Wed, 10 Jan 2024 05:54:19 -0000 (UTC) User-Agent: 40tude_Dialog/2.0.15.41 (Beta 38) Cancel-Lock: sha256:R9GfhNqhKEjgYuVdUsPKHZqKe296zwx5QOVKsol6f+I= X-Notice: Filtered by postfilter v. 0.9.3