🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.admin.peering
6 messages
6 total messages Started by Gabx Tue, 01 Apr 2025 19:38
Issues with nnrpd and tls
#3018
Author: Gabx
Date: Tue, 01 Apr 2025 19:38
24 lines
2262 bytes
I will tell you the whole procedure I performed. 
I want to have port 119 in clear and port 563 with tls. 
As soon as I installed inn2 on ubuntu22.04 I had port 119 in clear. 
To also have port 563 instead for tls I added the option -S to nnrpdflags in etc/news/inn.conf. 
Result both ports 119 and 563 support tls. 
So wanting to manage the two processes independently of each other, I remove the option -S from nnrpdflags in etc/news/inn.conf and create an init file for nnrpd with systemd, ExecStart=/usr/lib/news/bin/nnrpd -p 563 -b 0.0.0.0 -S, which however does not work. I see with systemctl status inn-nrrpd that the script failed due to binding on busy port 563 and .... killall nnrpd. 
After this command nnrpd is really dead, even adding -S to nnrpdflags again I was not able to start it anymore, not even with a server reboot. It was only with the command sudo -u news /usr/lib/news/bin/nnrpd -S -D -p 563 that nnrpd is "resurrected" and with which it is now active. 
I removed the nnrpdflags -S option from etc/news/inn.conf but port 119 is still not exactly clear 

$ openssl s_client news.tcpreset.net:119
Connecting to 2a01:4f8:c0c:2f94::1
CONNECTED(00000003)
depth=2 C=US, O=Internet Security Research Group, CN=ISRG Root X1
verify return:1
depth=1 C=US, O=Let's Encrypt, CN=R11
verify return:1
depth=0 CN=news.tcpreset.net
verify return:1
---

Any help appreciated
Best regards

Gabx
Re: Issues with nnrpd and tls
#3023
Author: Roberto CORRADO
Date: Wed, 02 Apr 2025 18:14
15 lines
1855 bytes
"Gabx" wrote:


,----[ Quote vshfc5$2dfs$1@news.tcpreset.net ]
| I removed the nnrpdflags -S option from etc/news/inn.conf but port 119 is still not exactly clear 
`----

IMHO, is the correct procedure but you have restarted the INN2 server?
After launch append su news /usr/inn/nnrpd -D -p 563 -S to the startup script
Gabx, congratulations on your NNTP server, you have excellent peers!

-- 
Roberto.
Re: Issues with nnrpd and tls
#3024
Author: Gabx
Date: Wed, 02 Apr 2025 19:41
13 lines
1493 bytes
Roberto CORRADO wrote:
> "Gabx" wrote:
> 
> 
> ,----[ Quote vshfc5$2dfs$1@news.tcpreset.net ]
> | I removed the nnrpdflags -S option from etc/news/inn.conf but port 119 is still not exactly clear
> `----
> 
> IMHO, is the correct procedure but you have restarted the INN2 server?
> After launch append su news /usr/inn/nnrpd -D -p 563 -S to the startup script
> Gabx, congratulations on your NNTP server, you have excellent peers!
> 
Thanks !!!
Re: Issues with nnrpd and tls
#3106
Author: Adam W.
Date: Thu, 29 May 2025 12:42
22 lines
1892 bytes
In news.admin.peering Gabx <personne@null.domain> wrote:

> Any help appreciated

I'm late to the party (I've not been active here recently), but if you 
still have the issue, here's my configuration.

I have inn running normally, on port 119, and it drops non-peers to 
nnrpd, which accepts STARTTLS to switch to TLS.

I also have the following entry in my inetd.conf:

nntps   stream  tcp     nowait  news    /usr/local/news/bin/nnrpd nnrpd -S

So connections to port nntps (563) are guarded by TLS from the beginning 
(without STARTTLS).

I don't know if it's the official way to do it, but it works without any 
problems.

BTW, when you post to multiple groups, don't insert spaces after the 
commas. Some software might not like it (tin complains).
Re: Issues with nnrpd and tls
#3119
Author: Gabx
Date: Sun, 08 Jun 2025 20:46
80 lines
3631 bytes
Adam W. wrote:

> I have inn running normally, on port 119, and it drops non-peers to
> nnrpd, which accepts STARTTLS to switch to TLS.
> 
> I also have the following entry in my inetd.conf:
> 
> nntps   stream  tcp     nowait  news    /usr/local/news/bin/nnrpd nnrpd -S
> 
> So connections to port nntps (563) are guarded by TLS from the beginning
> (without STARTTLS).


Hi !
I am on Ubuntu-22.04 and my NNTP server is INN2.6.4 installed with apt.
I have a systemd script:

> [Unit]
> Description=NNRP Daemon (standalone TLS on port 563)
> After=network-online.target
> Wants=network-online.target
> Requires=inn2.service
> 
> [Service]
> Type=simple
> User=news
> Group=news
> ExecStart=/usr/lib/news/bin/nnrpd -p 563 -b 0.0.0.0 -S
> Restart=on-abort
> ConfigurationDirectory=news
> LogsDirectory=news
> LogsDirectoryMode=775
> RuntimeDirectory=news
> StateDirectory=news
> StateDirectoryMode=775
> ReadWritePaths=/var/spool/news/
> ProtectSystem=full
> ProtectControlGroups=yes
> ProtectHome=yes
> LimitNOFILE=infinity
> 
> [Install]
> WantedBy=multi-user.target

I am on Ubuntu-22.04 and my NNTP server is INN2.6.4 installed with apt.
The server is in production, stopping the service would not be nice, you 
will understand me.

I hope to find a nnrpd ssl configuration that definitely works with my 
environment.

Certificates are ready with letsencrypt.
This the desired configuration in etc/news/inn.conf:

> #tlscafile: /etc/news/ssl/chain.pem
> #tlscapath: /etc/news/ssl
> #tlscertfile: /etc/news/ssl/cert.pem
> #tlskeyfile: /etc/news/ssl/privkey.pem
> #tlsciphers: "ECDHE+AESGCM"
> #tlsciphers13: "TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384:TLS_AES_128_GCM_SHA256"
> #tlscompression: false
> #tlseccurve: "X25519:P-256:P-384:P-521"
> #tlspreferserverciphers: true
> #tlsprotocols: [ TLSv1.2 TLSv1.3 ]

These are the errors in the logs for nnrpd launche by systemd:

> Jun 08 20:32:49 news.tcpreset.net nnrpd[3657084]: unable to get certificate from '/etc/news/cert.pem'
> Jun 08 20:32:49 news.tcpreset.net nnrpd[3657084]: error initializing TLS: [CA_file: ] [CA_path: /etc/news] [cert_file: /etc/news/cert.pem] [key_

Uncommenting the settings in etc/news/inn.conf would probably solve this.
There would also be *nnrpdflags* parameter where I wouldn't know whether 
to use -S when already used in the systemd script,

too many doubts.

Gabx

-- 
0745074DFEAA9CB762E9D89D3E54F490F2CC5A82
Re: Issues with nnrpd and tls
#3118
Author: Adam W.
Date: Sun, 08 Jun 2025 23:18
16 lines
1931 bytes
In news.admin.peering Gabx <info@tcpreset.invalid> wrote:

> The server is in production, stopping the service would not be nice, you 
> will understand me.

I sure do. When I want to do some invasive experiments on my server, I 
just copy the files (minus huge spools) to the VM and do them there. It 
might be a solution.

> These are the errors in the logs for nnrpd launche by systemd:
> 
>> Jun 08 20:32:49 news.tcpreset.net nnrpd[3657084]: unable to get certificate from '/etc/news/cert.pem'

Does this file exist? What are its access rights (and access rights for 
/etc/news directory itself)? Is it possible that it's a simple file access 
error? If not, then does the file start with "-----BEGIN CERTIFICATE-----"?
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