🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.admin.peering
Article #1593

Re: Newbie question

#1593
From: Julien ÉLIE
Date: Thu, 23 Mar 2023 19:07
40 lines
3009 bytes
Hi Eli,

> 2) nnrpd sends the login data to perl_auth, which consults the database for
> authorization, as well as checking whether the user has already reached his
> maximum connections.
> 
> So point 2 is where the problem lies.
> 
> Each time the authorization is successful, a 'session' record can be added to
> the database. The number of records determines how many sessions are running
> for this user.
> 
> But as soon as a session disconnects, the record must be removed from the
> database. However, nnrpd does not know that the session has been disconnected.
> Only xinitd knows this, but it doesn't have the user data, nor can it access
> the database.
> 
> Perhaps something can be done with the xinitd PID, but even then this will
> have to be passed to the perl_auth script.
> 
> Do you have a suggestion?
> So here's the problem I can't solve.
That problem is probably why nobody has still written yet the requested 
feature either natively in nnrpd or in a perl_auth script...


> Starting nnrpd by xinetd on port 119 requires a second IP (since
> innd is already bound to 119). But how does this affect peers? Do
> they connect to the IP of innd or nnrpd?

If you set up nnrpd as a daemon listening to port 119 (unencrypted) and 
another nnrpd as a daemon listening to port 563 (TLS), news admins 
usually set up innd to listen to port 433 (also called the NNSP port, 
for Network News Streaming Protocol).  Then you tell your peers to feed 
you on that port.

-- 
Julien ÉLIE

« Quand je raconterai mon odyssée, personne ne me croira ! » (Astérix)
Technical Details
Message-ID: <tvi80n$3r58$1@news.trigofacile.com>
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: <sXMOL.4024495$MJk2.1098149@fx06.ams4> <tvft64$240m$1@news.trigofacile.com> <tvfv7v$1kh2$1@nnrp.usenet.blueworldhosting.com> <tvfvs0$240m$2@news.trigofacile.com> <ImVSL.1923738$THq2.1183994@fx08.ams4>

Show Full Headers
Complete Article Headers
Message-ID: <tvi80n$3r58$1@news.trigofacile.com>
Subject: Re: Newbie question
Date: Thu, 23 Mar 2023 20:07:03 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <sXMOL.4024495$MJk2.1098149@fx06.ams4> <tvft64$240m$1@news.trigofacile.com> <tvfv7v$1kh2$1@nnrp.usenet.blueworldhosting.com> <tvfvs0$240m$2@news.trigofacile.com> <ImVSL.1923738$THq2.1183994@fx08.ams4>
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.admin.peering
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 23 Mar 2023 19:07:03 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176.143-2-105.abo.bbox.fr:176.143.2.105"; logging-data="126120"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.0
Cancel-Lock: sha1:JRcay8zraE2cseKyO5U71EKqF7w= sha256:9pCBTcx2ZHiv3JSNH0S41m/nuIFVtOw8bywUsmXD06Q= sha1:WgLjxQYkpoCaXUG3DQqnZvIEacc= sha256:U5rxHokSrmx87K9KIQ4QxOKdI7URUCLwKb9h1FIhfTg=
In-Reply-To: <ImVSL.1923738$THq2.1183994@fx08.ams4>