🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90190

Re: Questions regarding Path entries in a multi-server network.

#90190
From: Julien ÉLIE
Date: Mon, 20 Mar 2023 22:16
59 lines
4284 bytes
Hi Jesse,

> I also fixed my Diablo configuration. The ordering of the '-c' (Common path)
> and '-p' (Feeder/hostname path) flags matter when you start Diablo, and I had
> them in the wrong order

I am reassured that INN isn't the only news server with trapdoors in its 
configuration :-)


> Good discussion all, looking forward to INN 2.8.0 adding the Path diagnostic!

It will normally be in the 2.7.2 release; we do not necessarily need a 
major release for this change.  Not before the end of this year though.

Meanwhile, if you have any suggestions, here is what I had in mind.
A new "pathmatch" parameter in incoming.conf expects a wildmat pattern 
and has no default value.
If the leftmost path identity of an incoming article from a peer matches 
the pattern value of that parameter (in incoming.conf) when set or, when 
unset, equals the label of the peer, then a double "!!" will be 
prepended to the Path header field to show it has been successfully 
verified.
If the leftmost path identity does not match the pattern, when set, 
"!.MISMATCH." is prepended along with the peer IP, and a notice log is 
written to say there's a path mismatch (the log is written only once 
*per connection* from the peer, and will be reported in Usenet daily 
reports as unknown lines near the beginning of the report).

In all other cases, "!.SEEN." with the peer IP is added, without any 
notice log.

There's a special case to deal with: articles coming from a local Unix 
domain socket (like connections to innd by rnews or nnrpd).  I would 
suggest "!.SEEN.localhost" for them (except of course when the path 
identity corresponds to nnrpd's "!.POSTED", in which case we do not add 
a path diagnostic).
I don't think "!!" or "!.MISMATCH." is suitable for these articles as 
the path identity may be different than the real one of the remote peer, 
and I do not see any way to ensure that (when processing rnews batches 
coming from an external source, UUCP, etc. we no longer know the source).

This proposal permits not generating a "!.MISMATCH." if the admin does 
not set an explicit "pathmatch" entry for a peer.  It will therefore not 
surprise him, and won't introduce spurious "!.MISMATCH." in the wild.


I would also suggest a new "pathdiag" parameter, set to true by default, 
that can be used at global scope and also per peer, to disable the 
feature.  Maybe a "pathdomainsocketdiag" parameter would also be useful 
to configure the same thing for local Unix domain sockets (they do not 
have a peer configuration in incoming.conf).

Any thoughts about that or other suggestions?

-- 
Julien ÉLIE

« Il n'y a que le premier pas qui coûte. » (Mme du Deffand)
Technical Details
Message-ID: <tvam09$3u6i4$2@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: <tv8eq9$pqu$1@tncsrv09.home.tnetconsulting.net> <tv8hok$q13$1@tncsrv09.home.tnetconsulting.net> <tva8ga$3u1tg$1@news.trigofacile.com> <tvaik9$ot6$1@tncsrv09.home.tnetconsulting.net> <tvaj4t$1vml$1@nnrp.usenet.blueworldhosting.com> <tvak80$10me$1@nnrp.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Message-ID: <tvam09$3u6i4$2@news.trigofacile.com>
Subject: Re: Questions regarding Path entries in a multi-server network.
Date: Mon, 20 Mar 2023 23:16:41 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <tv8eq9$pqu$1@tncsrv09.home.tnetconsulting.net> <tv8hok$q13$1@tncsrv09.home.tnetconsulting.net> <tva8ga$3u1tg$1@news.trigofacile.com> <tvaik9$ot6$1@tncsrv09.home.tnetconsulting.net> <tvaj4t$1vml$1@nnrp.usenet.blueworldhosting.com> <tvak80$10me$1@nnrp.usenet.blueworldhosting.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
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 20 Mar 2023 22:16:41 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105"; logging-data="4135492"; 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:TNPjDk1+1AoYQd6YWg2xhc5FTwg= sha256:+BfwxKMHbsoHkH0QozenTs6VKow+YQDQIpqqONEZSUU= sha1:v6EjWGpM+PvNMFBxiA8COCVebRw= sha256:+kfnPQlBIsQ6p/ev8LUZrjaPo1QhfM4tjxyGcrw8eFg=
In-Reply-To: <tvak80$10me$1@nnrp.usenet.blueworldhosting.com>