NNRPD(8)
π nnrpd(8) π
okay bestie, buckle up β this is the manual page for nnrpd, and yes it's a whole personality. grab a matcha, we're doing this π
β¨ NAME β¨
nnrpd β the NNTP server for reader clients. that's it, that's the vibe. π
π¦ SYNOPSIS π¦
nnrpd [-BDfnoSt] [-4 address] [-6 address] [-b address] [-c configfile]
[-i initial] [-I instance] [-p port] [-P prefork] [-r reason] [-s padding]
πΈ DESCRIPTION πΈ
So nnrpd is an NNTP server for newsreaders. literally what it says on the tin. it takes commands on its standard input and claps back on its standard output. normally innd(8) is the one that spins it up, with those descriptors glued to a remote client connection. but plot twist β nnrpd also supports running as a standalone daemon. main character energy fr.
Unlike innd(8), nnrpd supports all the NNTP commands for user-oriented reading and posting. all of them. and it uses the readers.conf file to decide who's even allowed to touch the Usenet database β it's giving bouncer at the club π«Ά.
On exit, nnrpd reports usage statistics through syslog(3). little receipts, love that for us.
nnrpd gets run from innd (that's the default) or from inetd(8), xinetd(8), or some equivalent. and as often as not, it's also run as a daemon with the -D option, so it can serve TLS support on a dedicated port. versatile icon.
okay this next part is important so pay attention: nnrpd only reads its config files (readers.conf, inn.conf and inn-secrets.conf) when it is spawned. so you can never, ever change the behaviour of a client that's already connected β sorry, that ship has sailed. but because a new nnrpd process is spawned for every single connection, any changes to these configuration files are immediately effective for all new connections. slay. there's exactly one exception though: when nnrpd is run as a daemon with the -D option, any configuration changes in inn.conf won't take effect until nnrpd is restarted. one exception, and we're respecting it.
The inn.conf setting nnrpdflags can be used to pass any of the options below to instances of nnrpd that are spawned directly from innd. but heads up β many options only make sense when -D is used, so those ones should not be used with nnrpdflags. see also the discussion of nnrpdflags in inn.conf(5).
When nnrpdloadlimit in inn.conf is not "0", it will also reject connections if the load average is greater than that value (typically "16"). so it's got a whole bouncer-plus-capacity-check situation going on. nnrpd can also prevent high-volume posters from abusing your resources β see the discussion of exponential backoff in inn.conf(5). we love a server with boundaries π
nnrpd injects articles into the local server running innd through a UNIX domain socket, or an INET domain socket if that's not supported. if another server should be used for injection, you can set it with the nnrpdposthost parameter in inn.conf. and in case authentication credentials are requested during the injection, nnrpd will use the passwd.nntp file in pathetc. iykyk.
π OPTIONS π
okay here's the whole flag lineup, no skips, no cuts, we're doing all of them:
-4address β tellsnnrpdto bind to the specified IPv4 address when it's started as a standalone daemon using the-Dflag. this has to be a valid IPv4 address belonging to an interface of the local host. it can also be"0.0.0.0", which means bind to all addresses β and fun fact, that's the default.-6address β same situation but for IPv6: tellsnnrpdto bind to the specified IPv6 address when started as a standalone daemon using the-Dflag. it has to be a valid IPv6 address belonging to an interface of the local host. it can also be"::0", which says bind to all IPv6 addresses.
by default, nnrpd in daemon mode listens to both IPv4 and IPv6 addresses. with this option, it will listen only to the specified IPv6 addresses. however, on some systems, a value of "::0" will cause it to listen to all IPv4 addresses as well. so likeβ¦ read your system's vibes on that one π
-baddress β similar to the-4flag.-bis kept for backward compatibility. legacy queen, still valid π-Bβ if specified,nnrpdwill report login attempts toblocklistd(8)for automatic blocking after a number of failed attempts. to use this flag, the blocklist library must have been found at configure time, or--with-blocklistspecified at configure time. for more information, see "BLOCKLISTD SUPPORT" below. bye to the brute-forcers πͺ-cconfigfile β by default,nnrpdreads thereaders.confconfiguration file to figure out how to authenticate connections. the-cflag specifies an alternate file for this purpose. if the file name isn't fully qualified, it's taken to be relative to pathetc ininn.conf. (this is useful to have several instances ofnnrpdrunning on different ports or IP addresses with different settings β a whole little friend group of servers π«Ά)-Dβ if specified, this parameter causesnnrpdto operate as a daemon. that is, it detaches itself and runs in the background, forking a process for every connection. by default,nnrpdlistens on the NNTP port (119), so eitherinnd(8)has to be started on another port or the-pparameter used. note that with this parameter,nnrpdcontinues running until killed β which means it readsinn.confonce on startup and never again until restarted.nnrpdshould therefore be restarted ifinn.confis changed. no cap, just restart it.
when started in daemon mode, nnrpd will write its PID into a file in the pathrun directory. the file will be named nnrpd.pid if nnrpd listens on port 119 (default), or nnrpd-%d.pid, where "%d" is replaced with the port that nnrpd is configured to listen on (the -p option is given and its argument is not "119").
you may also want to use -s when running nnrpd as a daemon. friendly suggestion β¨
-fβ if specified,nnrpddoes not detach itself and runs in the foreground when started as a standalone daemon using the-Dflag. it's giving "i'm staying right here where you can see me" π-iinitial β specify an initial command tonnrpd. when used, initial is taken as if it were the first command received bynnrpd. after having responded,nnrpdwill close the connection. one command and then it's out, iconic.-Iinstance β if specified, instance is used as an additional static portion within Message-IDs generated bynnrpd, whenvirtualhostis set in access groups inreaders.conf. typically this option would be used where a cluster of machines exist with the same virtual hostname and must be disambiguated during posts. disambiguate, bestie π-nβ the-nflag turns off resolution of IP addresses to names. if you only use IP-based restrictions inreaders.confand can handle IP addresses in your logs, using this flag may result in some additional speed. free speed, we love a shortcut πββοΈ-oβ the-oflag causes all articles to be spooled instead of sending them toinnd(8).rnewswith the-Uflag should be invoked from cron on a regular basis to take care of these articles. this flag is useful ifinndis accepting articles andnnrpdis started standalone or usinginetd(8). team spool π-pport β tellsnnrpdto listen on port when started as a standalone daemon using the-Dflag. pick your port, live your truth.-Pprefork β tellsnnrpdto prefork prefork children awaiting connections when started as a standalone daemon using the-Dflag. build the squad in advance π§-rreason β if the-rflag is used, thennnrpdwill reject the incoming connection giving reason as the text. this flag is used byinnd(8)when it is paused or throttled. reason should be encoded in UTF-8. polite rejection, correct encoding. periodt.-spadding β as each command is received from a client,nnrpdtries to change its"argv"array containing the process title so that commands likeps(1)will print out the hostname of the connected client and the command being executed. to get a full display, the-sflag may be used with a long string as its argument, which will be overwritten whennnrpdchanges its title.
when innd spawns nnrpd, this flag is used with an argument made of 48 spaces. forty-eight. iconic padding π
-Sβ if specified,nnrpdwill start a negotiation for a TLS session as soon as connected. to use this flag, the OpenSSL SSL and crypto libraries must have been found at configure time, or--with-opensslspecified at configure time. for more information on runningnnrpdwith TLS support, see "TLS SUPPORT". secure connection speedrun π₯-tβ if the-tflag is used, then all client commands and initial responses will be traced by reporting them in syslog. this flag is set byinnd(8)under the control of thectlinnd(8)"trace"command, and is toggled upon receipt of aSIGHUP; seesignal(2). surveillance but make it consensual π
okay that's the flags done β and there's still more coming, so don't go anywhere, bestie π¦
β¨ TLS SUPPORT β¨
okay so bestie, here's the TLS tea βοΈ If INN is built with --with-openssl or if the OpenSSL SSL and crypto libraries are found at configure time, nnrpd will support news reading over TLS (also known as SSL). Simple as that π
For clients that use the STARTTLS command, no special configuration is needed beyond creating a TLS/SSL certificate for the server. You should do this in exactly the same way that you would generate a certificate for a web server. iconic behavior honestly π«Ά
If you're happy with a self-signed certificate (which will generate warnings with some news reader clients), you can create and install one in the default path by running make cert after make install when installing INN, or by running the following commands:
umask 077
openssl req -new -x509 -nodes -out <pathetc>/cert.pem \
-days 366 -keyout <pathetc>/key.pem
chown news:news <pathetc>/cert.pem
chmod 640 <pathetc>/cert.pem
chown news:news <pathetc>/key.pem
chmod 600 <pathetc>/key.pem
Replace the paths with something appropriate to your INN installation. This will create a self-signed certificate that will expire in a year. The openssl program will ask you a variety of questions about your organization. Enter the fully qualified domain name of your news service (either the server canonical name or a dedicated alias for the news service) as the name the certificate is for. yes, that's the moment to be yourself but like, with your actual server name π
You then have to set these inn.conf parameters with the right paths:
tlscapath: <pathetc>
tlscertfile: <pathetc>/cert.pem
tlskeyfile: <pathetc>/key.pem
If you want to use a complete certificate chain, you can directly put it in tlscertfile (like Apache's SSLCertificateFile directive). Alternately, you can put a single certificate in tlscertfile and use tlscafile for additional certificates needed to complete the chain, like a separate authority root certificate. chain game: strong πͺ
More concretely, when using Let's Encrypt certificates, Certbot's files can be installed as follows:
tlscapath: /etc/letsencrypt/live/news.server.com
tlscertfile: /etc/letsencrypt/live/news.server.com/fullchain.pem
tlskeyfile: /etc/letsencrypt/live/news.server.com/privkey.pem
or:
tlscapath: /etc/letsencrypt/live/news.server.com
tlscafile: /etc/letsencrypt/live/news.server.com/chain.pem
tlscertfile: /etc/letsencrypt/live/news.server.com/cert.pem
tlskeyfile: /etc/letsencrypt/live/news.server.com/privkey.pem
Make sure that the permission rights are properly set so that the news user or the news group can read these directories and files (typically, he should access /etc/letsencrypt/live/news.server.com and /etc/letsencrypt/archive/news.server.com where the real keys are located, and the private key should not be world-readable). lock that private key down, bestie π no casual scrolling for strangers.
If you prefer to point to files outside the directory of Let's Encrypt, you may add a post-renewal hook for Let's Encrypt to copy the generated files to another location, and give them the expected rights. lowkey a little choreography for your certs π©°
There are two common ways for a news client to negotiate a TLS connection: either via the use of a dedicated port (usually 563) on which TLS is immediately negotiated upon connection, or via the now discouraged way (per RFC 8143) to use the STARTTLS command on the usual NNTP port (119) to dynamically upgrade from unencrypted to TLS-protected traffic during an NNTP session. innd does not, however, know how to listen for connections to that separate port (563). You will therefore need to arrange for nnrpd to listen on that port through some other means. This can be done with the -D flag along with "-p 563" and put into your init scripts:
su news -s /bin/sh -c '<pathbin>/nnrpd -D -p 563 -S'
but the easiest way is probably to add a line like:
nntps stream tcp nowait news <pathbin>/nnrpd nnrpd -S
to /etc/inetd.conf or the equivalent on your system and let inetd run nnrpd. (Change the path to nnrpd to match your installation.) You may need to replace "nntps" with "563" if "nntps" isn't defined in /etc/services on your system. You may also want to use the lowercase -s flag with a long string as its argument to see more information about incoming connections in ps(1) output. cute little detective mode for your sockets π
Optionally, you may set the tlsciphers, tlsciphers13, tlscompression, tlseccurve, tlspreferserverciphers, and tlsprotocols parameters in inn.conf to fine-tune the behaviour of the TLS/SSL negotiation whenever a new attack on the TLS protocol or some supported cipher suite is discovered. stay tuned, stay fine-tuned π«
π₯ BLOCKLISTD SUPPORT π₯
blocklistd(8) is a FreeBSD/NetBSD daemon for preventing brute force attacks by blocking attackers after a number of failed login attempts. When nnrpd is built with blocklistd support, it will report login attempts to the blocklistd daemon for potential blocking. goodbye to the little password-guessing goblins ππ
Adding the configuration below to /etc/blocklistd.conf under the "[local]" section, assuming nnrpd is listening on port 563, would lead to attackers being blocked for 10 minutes after 5 failed login attempts. love that for us π
# adr/mask:port type proto owner name nfail disable
563 stream * * * 5 10m
See the blocklistd(8) documentation for more information. go read the lore bestie π
π PROTOCOL DIFFERENCES π
nnrpd implements the NNTP commands defined in RFC 3977 (NNTP), RFC 4642 updated by RFC 8143 (TLS/NNTP), RFC 4643 (NNTP authentication), RFC 6048 (NNTP LIST additions) and RFC 8054 (NNTP compression) with the following differences:
- The
XGTITLE [wildmat]command is provided. This extension is used by ANU-News and documented in RFC 2980. It returns a"282"reply code, followed by a one-line description of all newsgroups that match the pattern. The default is the current group.
Note that LIST NEWSGROUPS should be used instead of XGTITLE. okay so old-school icon, but we're using the newer one now π«Ά
- The
XHDR header [message-ID|range]command is implemented. It returns a"221"reply code, followed by specific header fields for the specified range; the default is to return the data for the current article. See RFC 2980.
Note that HDR should be used instead of XHDR. respectfully, use the newer one bestie β¨
- The
XOVER [range]command is provided. It returns a"224"reply code, followed by the overview data for the specified range; the default is to return the data for the current article. See RFC 2980.
Note that OVER should be used instead of XOVER. same energy, newer name π
- A new command,
XPAT header message-ID|range pattern [pattern ...], is provided. The first argument is the case-insensitive name of the header field to be searched. The second argument is either an article range or a single message-ID, as specified in RFC 2980. The third argument is auwildmat-style pattern; if there are additional arguments, they are joined together separated by a single space to form the complete pattern. This command is similar to theXHDRcommand. It returns a"221"response code, followed by the text response of all article numbers that match the pattern. pattern-matching main character energy ππ - A newsgroup name is case-sensitive for
nnrpd. caps matter, no cap π§’ - If
IHAVEhas been advertised, it will not necessarily be advertised for the entire session (contrary to section 3.4.1 of RFC 3977).nnrpdonly advertises theIHAVEcapability when it is really available. honesty is the policy fr fr π― nnrpdallows a wider syntax for wildmats and ranges (especially-and-article-number). flexible queen πΈ- When keyword generation is used, an experimental feature enabled with the
keywordsparameter ininn.conf,"Keywords:full"is advertised inLIST OVERVIEW.FMTeven though overview information is computed and does not necessarily come fromKeywordsheader fields. experimental but make it cute π§ͺπ«
π HISTORY π
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. Overview support added by Rob Robertston <rob@violet.berkeley.edu> and Rich in January, 1993. Exponential backoff (for posting) added by Dave Hayes in Febuary 1998. yes, "Febuary" is exactly how it's written here β we keep the lore intact ππ
π¦ SEE ALSO π¦
blocklistd(8)ctlinnd(8)innd(8)inn.conf(5)inn-secrets.conf(5)libinn_uwildmat(3)nnrpd.track(5)passwd.nntp(5)readers.conf(5)signal(2)
okay that's the whole NNRPD(8) page, bestie π«Ά this lil masterpiece is from INN 2.7.4, dated 2026-06-12. now go read some news and slay π
β¨
π¦ where this page comes from
- arch rolling: inn 2.7.4-4 Β· ISC
- epel 10: inn 2.7.4-5.el10_3 Β· ISC AND BSD-3-Clause AND BSD-4-Clause AND FSFAP AND (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-3.0-or-later WITH Bison-exception-2.2 AND LicenseRef-Fedora-Public-Domain AND MIT AND NTP
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms