πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90191

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

#90191
From: Jesse Rehmer
Date: Mon, 20 Mar 2023 22:42
81 lines
5116 bytes
On Mar 20, 2023 at 5:16:41 PM CDT, "Julien Γ‰LIE"
<iulius@nom-de-mon-site.com.invalid> wrote:

> 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 :-)

Don't adopt Diablo.  ;-)

> 
>> 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.

Gotcha, I thought I had read somewhere that the path diagnostic wasn't going
to be until 2.8.0.

> 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).

This is more or less equivalent to the behavior of Diablo's "alias" parameter
in dnewsfeeds that accepts wildmat patterns, though it doesn't implement the
verified !! portion.

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

Can you explain further what "other cases" this would be applicable to?

> 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).

I'd have to really think more about this, but can see where this might get a
little ugly.

> 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.

Nothing that I'm aware of rejects based on MISMATCH at this time, so would it
be so bad to have the behavior on by default as is with Diablo? Might
encourage more operators to properly tweak their configurations.

I can see both sides, but have no opinionated weight to throw in either
direction besides the statement above.

> 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?

Sounds reasonable. If pathdiag is enabled by default and you do not add any
pathmatch statements to incoming.conf, is the behavior for path
diagnostic/matching basically the same as it is now?
Technical Details
Message-ID: <tvangr$2v3p$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
References: <tv8eq9$pqu$1@tncsrv09.home.tnetconsulting.net> <tvaj4t$1vml$1@nnrp.usenet.blueworldhosting.com> <tvak80$10me$1@nnrp.usenet.blueworldhosting.com> <tvam09$3u6i4$2@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <tvangr$2v3p$1@nnrp.usenet.blueworldhosting.com>
Subject: Re: Questions regarding Path entries in a multi-server network.
Date: Mon, 20 Mar 2023 22:42:35 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <tv8eq9$pqu$1@tncsrv09.home.tnetconsulting.net> <tvaj4t$1vml$1@nnrp.usenet.blueworldhosting.com> <tvak80$10me$1@nnrp.usenet.blueworldhosting.com> <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
Newsgroups: news.software.nntp
Organization: BlueWorld Hosting Usenet (https://usenet.blueworldhosting.com)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 20 Mar 2023 22:42:35 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="97401"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:NI8IOJSNXbWZs3AmQ8MUCM+Ben8= sha256:fmpoIRDmZsTXga/N8mHFid4aOyCh8OTP8voUfIC+Spc= sha1:qtVjy42e8gTeXjAvtXuHFIDT3H4= sha256:H/VQhetw1DZN2bK1xDynTHnmo75MzjLa/6hx+EBWb7g=
X-Usenapp: v1.26.3/d - Full License
Lines: 80