🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #266540

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

#266540
From: Bernd Rose
Date: Sun, 07 Jan 2024 13:06
61 lines
3952 bytes
On Sun, 7th Jan 2024 06:38:18 -0500, Ronald wrote:

> I don't understand why I even need encryption
> since (as Vanguard said) the end result is being posted to the public.
> 
> I think it's supposed to protect my login credentials 

Yes, mostly for this. And for any MitM not knowing, which articles you are
/reading/ and other such information.

> but isn't that what the VPN is for? I'm always on NordVPN all the time anyway.

No. I don't know, how you configured usage of NordVPN. But either, the NNTP
traffic isn't routed via NordVPN, at all. (If port 563 isn't attached to the
VPN.) Or your login credentials are unprotected, whenever they leave NordVPN
server on their route to the Neodome server. Using a VPN service is _not_ a
replacement for using transport encryption!

>> [Neodome]
>> client = yes
>> accept = localhost:55555
>> connect = news.neodome.net:563
> 
> Oh my gosh. That actually worked! How did you know how to do that trick?

That's not a trick. I just removed any lines ensuring, that only connections
to correctly certified servers are permitted.

> Stunnel log
>  2024.01.07 06:28:31 LOG5[1]: Service [Neodome] accepted connection from 127.0.0.1:43503
>  2024.01.07 06:28:32 LOG5[1]: s_connect: connected 95.216.243.224:563
>  2024.01.07 06:28:32 LOG5[1]: Service [Neodome] connected remote server from 10.211.1.153:43504
>  2024.01.07 06:28:51 LOG5[1]: Connection closed: 344 byte(s) sent to TLS, 320 byte(s) sent to socket
>  
> Dialog log
>  3 53998687: Posting message to NNTP server [$00000634]
>  1 54004625: Reindexing (Order: 3, no filtering) of group 2 with 8910 articles took 47 ms
>  3 54004562: Posting sent successfully: Article received <###########@neodome.net>;  (Finished) [$00000634] 
> 
> Can you give me a clue as to what that Stunnel log did?
> Somehow it still posted WITHOUT needing the certificate to be valid.

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.

> Will that method work with all encrypted news servers?

As long as a server does have a valid certificate, you should /not/ lower
the security bars. If problems occur, first contact the provider to have
them fix their end. Only, if this isn't an option, consider lowering the
security requirements. Be sure, that you are able to live with possible
consequences, though.

With Neodome, their NNTP server seems to be nearly abandoned. Therefore,
contacting the admins will probably not lead to a fixed certificate. The
consequences may be lost login credentials and other users posting fake
messages impersonating you. - Your decision. (Maybe, better look for 
another Usenet provider...)

Bernd
Technical Details
Message-ID: <bhfzdp41wd3j$.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>

Show Full Headers
Complete Article Headers
Message-ID: <bhfzdp41wd3j$.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 14:06:23 +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>
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 (a1ec5256.173.364)
Cancel-Lock: sha1:1FQjQEzQiSBIsJhJ2Bm4NEeFMmU=
X-User-ID: eJwFwYEBwCAIA7CXwNIyz1GQ/09YQshVGaKCw2mCKsItTefIC0XjWZa+O9ewX1pHHXyrQtkFj6dInz19r3whZqasHHg/pGEZew==