🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Thomas Hochstein Sun, 29 May 2022 09:22
INN nnrpd-ssl error: "can't read: Permission denied"
#89386
Author: Thomas Hochstein
Date: Sun, 29 May 2022 09:22
32 lines
2897 bytes
Hi,

sometimes nnrpd, using TLS, will log an error message I don't understand:
| May 28 xx:52:38 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] can't read: Permission denied

(nnrpd-ssl is a symlink to nnrpd)

It's always the same user, AFAIS, and it's logged together with a
"timeout" message, before the connection terminates, like that
(identifying information removed):
| May 28 xx:06:10 nnrpd-ssl[25759]: starttls: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) no authentication
| May 28 xx:06:10 nnrpd-ssl[25759]: ? reverse lookup for 2a02:8108:8dc0:[...] failed: Name or service not known -- using IP address for access
| May 28 xx:06:10 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] (2a02:8108:8dc0:[...]) connect - port 119
| May 28 xx:06:11 nnrpd-ssl[25759]: SERVER perl filtering enabled
| May 28 xx:06:11 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] user [...]
| May 28 xx:06:11 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] user [...]
| May 28 xx:06:11 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] group [...] 0
| [...]
| May 28 xx:06:15 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] group [...] 0
| May 28 xx:52:38 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] can't read: Permission denied
| May 28 xx:52:38 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] timeout
| May 28 xx:52:38 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] group [...] 0
| May 28 xx:52:38 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] times user 0.096 system 0.016 idle 0.000 elapsed 2787.580
| May 28 xx:52:38 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] overstats count 4 hit 10 miss 0 time 0 size 3742 dbz 0 seek 0 get 0 artcheck 0
| May 28 xx:52:38 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] time 2787581 nntpwrite 3(66)

This does not happen on every connect from that user, and it's not always
the same group before or after the timeout.

Where does that message come from, and what may be the reason?

-thh
Re: INN nnrpd-ssl error: "can't read: Permission denied"
#89388
Author: Julien ÉLIE
Date: Sun, 29 May 2022 09:57
50 lines
3274 bytes
Hi Thomas,

> sometimes nnrpd, using TLS, will log an error message I don't understand:
> | May 28 xx:52:38 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] can't read: Permission denied
> 
> It's always the same user, AFAIS

Do you happen to know which news reader he is using?



> and it's logged together with a
> "timeout" message, before the connection terminates, like that
> (identifying information removed):
> | May 28 xx:06:10 nnrpd-ssl[25759]: starttls: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) no authentication
> | May 28 xx:06:10 nnrpd-ssl[25759]: ? reverse lookup for 2a02:8108:8dc0:[...] failed: Name or service not known -- using IP address for access
> | May 28 xx:06:10 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] (2a02:8108:8dc0:[...]) connect - port 119

Is nnrpd-ssl listening to port 119 with implicit TLS (session directly 
encrypted)?
Or is this client using explicit TLS (connecting to port 119 and then 
sending a STARTTLS command)?



> | May 28 xx:06:15 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] group [...] 0
> | May 28 xx:52:38 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] can't read: Permission denied
> | May 28 xx:52:38 nnrpd-ssl[25759]: 2a02:8108:8dc0:[...] timeout
> 
> This does not happen on every connect from that user, and it's not always
> the same group before or after the timeout.
> 
> Where does that message come from, and what may be the reason?

Thanks to tests with Michael, I've recently improved how nnrpd handles 
timeouts during TLS sessions.
The following change will be in INN 2.7.0:
 
https://github.com/InterNetNews/inn/commit/e078fd53a4839593d79402e1ca6c672298ef577b

I hope it will fix the error you see.
Especially when the change consists of no longer SSL_read'ing incoming 
data after the close_notify shutdown alert.
nnrpd now does the right logic, described in the (complex) OpenSSL 
documentation.

-- 
Julien ÉLIE

« Il n'y a que le premier pas qui coûte. » (Mme du Deffand)
Re: INN nnrpd-ssl error: "can't read: Permission denied"
#89389
Author: Julien ÉLIE
Date: Sun, 29 May 2022 10:54
14 lines
1748 bytes
Just adding:
> The following change will be in INN 2.7.0:
> 
> https://github.com/InterNetNews/inn/commit/e078fd53a4839593d79402e1ca6c672298ef577b

Already in INN 2.6.5 by the way.
In case you have the opportunity to test how INN 2.6.5 (or 2.7.0rc1) 
behaves, I would be glad to hear.

-- 
Julien ÉLIE

« – Dis, je crois avoir entendu parler gothique par là !
   – Tu as des visions, Pamplemus ! » (Astérix)
Re: INN nnrpd-ssl error: "can't read: Permission denied"
#89392
Author: Jesse Rehmer
Date: Wed, 01 Jun 2022 02:30
17 lines
2083 bytes
On 5/29/22 5:54 AM, Julien ÉLIE wrote:
> Just adding:
>> The following change will be in INN 2.7.0:
>>
>> https://github.com/InterNetNews/inn/commit/e078fd53a4839593d79402e1ca6c672298ef577b 
>>
> 
> Already in INN 2.6.5 by the way.
> In case you have the opportunity to test how INN 2.6.5 (or 2.7.0rc1) 
> behaves, I would be glad to hear.
> 

It may be worth mentioning either in INSTALL or pgpverify that GnuPG 
 >2.1.0 will not import or verify most existing (PGP-2) keys.  The 
--allow-weak-digest-algos option was removed in 2.1 
(https://www.gnupg.org/faq/whats-new-in-2.1.html#nopgp2).  So one would 
most likely want 1.4.x or 2.0.x for the foreseeable future.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads