🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #266545

Re: (Dialog) How do I debug a 40tude "socket error" (what's a socket error?)

#266545
From: Bernd Rose
Date: Sun, 07 Jan 2024 14:19
47 lines
3811 bytes
On Sun, 7th Jan 2024 08:40:27 -0500, Ronald wrote:

>> Encryption doesn't need a certificate to be valid. This way, you just can't
>> be sure, that the target server really /is/ the one you are trying to
>> connect to. It might be an unfriendly server /impersonating/ the other one.
> 
> Does that mean I could have omitted stunnel altogether and just used the
> 40tude dialog user setup with "Host = news.neodome.net" & "Port = 563"?

Maybe and no. Dialog.exe was compiled 2005 and uses (at best) encryption
methods that have been developed until then. (It is a bit more complicated,
because it may profit from /some/ updates to OS encryption functions. But
in the whole, Dialog encryption is stuck in 2005.)

If the NNTP server still supports at least one of these old encryption
methods, then connecting directly to the server on port 563 from Dialog
(with SSL ticked /on/) would work. (Neodome seems to.) Quite a few NNTP 
servers disabled all these old (and insecure) encryption methods, though. 
With them, direct encrypted connection from Dialog will /not/ work. 

Using sTunnel in any case will not only ensure, that encrypted connection 
to a server will succeed with contemporary encryption methods. It will also 
prevent usage of outdated (insecure) methods. Therefore, even /if/ a server 
still permits encrypted connection directly from Dialog, it is better to 
use the workaround via sTunnel.
 
> If I test that out, does it matter if the SSL box is checked or not?
> (I never understood what the difference was with or with that SSL checked.)

The SSL box indicates, whether encryption should be used when sending
information to the target address (server and port) configured inside
Dialog. If you enter the external NNTP server name and its port, you need
to check with the provider, whether encryption is supported or not. Usually,
port 119 means "no encryption" (SSL box off) and port 563 means "encryption"
(SSL box on).

If you enter a local (sTunnel) address, you /could/ encrypt this local
connection, as well. You'd need to configure sTunnel for local encryption,
though, and you'd need to permit the usage of outdated encryption methods
for this, as well. This makes no sense, whatsoever. Therefore, any local
connection (your localhost:55555 for example) should be configured without
encryption (SSL box off). This has no influence on the encryption state
for the outgoing connection to the NNTP server, which /will/ be encrypted
by sTunnel, as long as you don't explicitly tell it to /not/ do it. (Which,
again, wouldn't make any sense...)

Bernd
Technical Details
Message-ID: <1aoeg6pf0gpop.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
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> <une2f9$u6e8$1@paganini.bofh.team> <bhfzdp41wd3j$.dlg@b.rose.tmpbox.news.arcor.de> <une9ka$uj1c$1@paganini.bofh.team>

Show Full Headers
Complete Article Headers
Message-ID: <1aoeg6pf0gpop.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: (Dialog) How do I debug a 40tude "socket error" (what's a socket error?)
Date: Sun, 7 Jan 2024 15:19:58 +0100
From: Bernd Rose <b.rose.tmpbox@arcor.de>
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> <une2f9$u6e8$1@paganini.bofh.team> <bhfzdp41wd3j$.dlg@b.rose.tmpbox.news.arcor.de> <une9ka$uj1c$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-mail
Newsgroups: news.software.readers
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: solani.org;
User-Agent: 40tude_Dialog/2.0.15.41 (429a0667.27.474)
Cancel-Lock: sha1:XdE7Nmv8T3+NeMy0xnHOYr13T7U=
X-User-ID: eJwFwQkBwDAIA0BLLYEAcjoe/xJ2Z+BludKotrYTiFungZtC+EsyT3vlERWJdszoads70PyAbX+6cKq8jEqGfz1B6suKH4+VGM8=