🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Steve Mon, 12 Nov 2007 14:35
Flood prevention
#78177
Author: Steve
Date: Mon, 12 Nov 2007 14:35
27 lines
1959 bytes
Hi all,

I'm conscious that Usenet is taking a big hit at the moment from hipcrime
type floods being directed through open proxies, hijacked machines, etc.
I'd like to do everything possible to ensure my service news.mixmin.net
is resistant to this kind of abuse.

Reading news.admin.net-abuse.policy, the front line of defence at the
moment seems to be largely passive.  I.e. People contact the abuse
address of a flood source and ask the admins to do something about it.
Even with an alert admin this delay can completely ruin a group for a
day or more.  I'm wondering if there is a better answer, such as a
filter_nnrpd.pl based EMP filter?

INN appears to have exponential backoff built into nnrpd, designed to
slow down the rate of flood, but is this effective against the kind of
attack currently hitting groups like sci.crypt?  If it is, why is the
flood able to run to tens of thousands of postings in short periods of
time?  Is it simply poor configuration or are these floods beyond the
means of current filtering techniques?

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>
Re: Flood prevention
#78178
Author: Bert Hyman
Date: Mon, 12 Nov 2007 14:59
17 lines
1749 bytes
In news:fh9obc$hds$1@news.mixmin.net Steve <steve@mixmin.net> wrote:

>  I'm wondering if there is a better answer, such as a
> filter_nnrpd.pl based EMP filter?

There are already a couple of "rate filters" in that module. One counts
instances of posts with identical line counts coming from a single IP
address, another counts messages with identical MD5 hash codes. These
are good against conventional spam of identical messages sent to many
newsgroups in a short time. 

Adding a few more that keep track of raw rate-of-arrival to a single
newsgroup from either a single IP address or a single provider would
come a long way to solving the immediate problem. 

-- 
Bert Hyman	St. Paul, MN	bert@iphouse.com
Re: Flood prevention
#78179
Author: Steve
Date: Mon, 12 Nov 2007 15:26
21 lines
1784 bytes
On 12 Nov 2007 14:59:25 GMT, Bert Hyman wrote in
Message-Id: <Xns99E65B75A7078VeebleFetzer@216.250.184.7>:

> Adding a few more that keep track of raw rate-of-arrival to a single
> newsgroup from either a single IP address or a single provider would
> come a long way to solving the immediate problem. 

Hi Bert,

I wrote one in Python that did limiting based on md5 hashed
Newsgroup/NNTP-Posting-Host.  If there wasn't a posting host, it looked
for an address in X-Trace and as a last resort, used the right-most
entry in the Path.  This seemed to work quite well in my limited testing
but being written in Python, it's not compatible with the majority of
deployments or indeed Cleanfeed.  Unfortunately my Perl skills are not
up to the task.

-- 
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>
Re: Flood prevention
#78188
Author: Steve
Date: Fri, 16 Nov 2007 12:58
20 lines
1786 bytes
On 12 Nov 2007 14:59:25 GMT, Bert Hyman wrote in
Message-Id: <Xns99E65B75A7078VeebleFetzer@216.250.184.7>:

> Adding a few more that keep track of raw rate-of-arrival to a single
> newsgroup from either a single IP address or a single provider would
> come a long way to solving the immediate problem. 

I've produced a cleanfeed patch that does Posting-Host / Newsgroup (PHN) rate
limiting.  It's fairly crude in that it does no sanitising of the
NNTP-Posting-Host or Newsgroups headers but it seems to work fairly
well against the current hipnews floods.  No doubt there is plenty of
scope for improvement and I wouldn't suggest using it on a production
service until somebody checks out my novice Perl.

www.mixmin.net/cleanfeed.diff

-- 
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>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads