🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #37324

Path verification for INN (was: Re: some INN 2.2-stable issues)

#37324
From: Andrew Gierth
Date: Sat, 08 May 1999 00:00
42 lines
2616 bytes
>>>>> "AG" == Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:

 AG>   Unless this is already being addressed in 2.3, I plan to fix
 AG>   this myself.

Well, nobody spoke up and said "this is in 2.3", so I fixed it myself.

Here is the spec: the patches against 2.2-stable (as of about a week
ago) will follow shortly (after I update the docs). The code is
currently running on news-feed.riddles.org.uk and seems to be behaving
itself now (a bunch of spurious .MISMATCHes got leaked during testing).

I've implemented it by adding a new parameter to incoming.conf,
"pathmatch:", which takes a comma-delimited list of wildmat
patterns. Incoming articles from a peer have their first path entry
compared against this list, and an nnn.nnn.nnn.nnn.MISMATCH entry is
added if no match is found. The first mismatch arriving over any given
connection is logged to syslog; the count of the number of mismatches
also appears on the status page.

The presence of a MISMATCH entry suppresses the "don't add the same
path twice" logic for obvious reasons.

If no pathmatch parameter is supplied for a feed, the feed name is
used (as a literal match not a wildmat). To disable path checking you
have to use an explicit "*" pattern (can be done at group or default
level).

Feeds over unix-domain sockets are exempt from checks so that rnews
still works properly. If no unix-domain sockets, then the
internally-generated localhost feed entry gets a "*" pathmatch
parameter.

If you run in promiscuous transfer mode (-a) then incoming feeds not
listed in incoming.conf get their IP addresses inserted in the path
(but without .MISMATCH or anything in syslog). Entries in
incoming.conf are not affected.

-- 
Andrew.

Technical Details
Message-ID: <87u2tonjht.fsf@erlenstar.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <87r9oym8wx.fsf@erlenstar.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <87u2tonjht.fsf@erlenstar.demon.co.uk>
Subject: Path verification for INN (was: Re: some INN 2.2-stable issues)
Date: Sat, 08 May 1999 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <87r9oym8wx.fsf@erlenstar.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 475449884
X-Mayan-Date: Long count = 12.19.6.3.2; tzolkin = 5 Ik; haab = 10 Uo
X-Complaints-To: andrew@erlenstar.demon.co.uk
Organization: disorganised
X-Attribution: AG
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-P-Persistent-Headers: are a bad idea.
Newsgroups: news.software.nntp
X-Post-Filter: postfilter v0.6 alpha