🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #78293

Cleanfeed EMP filters

#78293
From: Steve
Date: Wed, 19 Dec 2007 14:54
58 lines
3181 bytes
Hi,

I've produced some updates to Cleanfeed to address the current sporge
type floods that are currently attacking a number of groups.  In
accordance with the license I'm publishing these updates and making them
available should anyone else wish to use them.

http://www.mixmin.net/cleanfeed
http://www.mixmin.net/cleanfeed.diff
The diff is based on the last issued cleanfeed-20020501.

The update introduces two new EMP filters:
PHN	NNTP-Posting-Host/Newsgroups
PHR	NNTP-Posting-Host (High-risk groups)

The role of the PHR filter is to solve the issue with PHN where an
abuser circumvents it by cross-posting to the target group plus one other
random group so as to avoid hash collisions.
Eg:-
 Newsgroups: sci.crypt,alt.foo
 Newsgroups: sci.crypt,alt.bar

Both filters include an aggressive switch which will enable them to use
a component of the Path header in the absence of an NNTP-Posting-Host
header.  Using this mode in the PHN filter may be too aggressive for
many feeds unless care is taken to exempt groups and posting-hosts.
This is especially true if the news server propagates mailing lists
which all have the same Posting Host.

Configuration parameters are:
phn_exempt	NNTP-Posting-Hosts regex's to exempt from the PHN filter
phr_exempt	NNTP-Posting-Hosts regex's to exempt from the PHR filter
phn_aggressive	Allow PHN filter to use Path elements (Here be dragons)
phr_aggressive	Allow PHR filter to use Path elements
phn_exclude	Newsgroup regex's to exclude from the PHN filter
flood_groups	Regex's of groups to include in the PHR filter.

All of the above parameters should be defined in the cleanfeed.local
file but for my purposes during development they are configured within
cleanfeed itself.

In addition to the above two EMP filters, I've integrated a patch
written and published by Jeffrey Vinocur to allow filtering of MIME
encapsulated HTML.

There's also support for a bad_groups file that works the same as
bad_hosts and the likes.  It just provides a quick means to disallow
specific groups should an admin wish to do so.

Lastly, this is all very much work in progress.  If anyone cares to view
or contribute to the code then I'm happy to grant Subversion access.

Steve

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
uid                  Steven Crook <steve@mixmin.net>
Technical Details
Message-ID: <fkbbae$anq$1@news.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.mixmin.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <fkbbae$anq$1@news.mixmin.net>
Subject: Cleanfeed EMP filters
Date: Wed, 19 Dec 2007 14:54:07 +0000
From: Steve <steve@mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!news.mixmin.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Lines: 58
X-Complaints-To: abuse@mixmin.net
NNTP-Posting-Date: Wed, 19 Dec 2007 14:54:07 +0000 (UTC)
User-Agent: slrn/0.9.8.1pl1 (Debian)