Article View: news.software.nntp
Article #37301Re: INN Performance tuning...
From: Arthur Hagen
Date: Thu, 06 May 1999 00:00
Date: Thu, 06 May 1999 00:00
93 lines
4397 bytes
4397 bytes
In article <3731AAA1.FB916E23@union.edu>, "Michael J. Pape" <papem@union.edu> writes:
>
> My network admin. has informed me that 65% of our network bandwidth is
> being consumed by news. I'm running version 2.2 -- what are my options
> for controlling this?
Controlling? Just one that I can see: Throttle the connection to
your news server at the router(s). Your OS *may* also have some
bandwidth throttling functions, but don't count on it. Most don't.
And with throttling, you may lose articles, and probably annoy your
upstream feeds by having a high spool factor.
If you mean reducing bandwidth consumption, there's several ways.
You don't say whether you are feeding, or just receiving feeds, so
here's a bit of each.
The easiest way to decrease bandwidth is probably to get your upstream
feeds to stop feeding you the largest articles. Decreasing the max
article size to let's say 768k will limit many of the multi-series CD
images and even DVD images.
Then you may want to drop certain newsgroups or hierarchies.
*.mp3*, *.warez* and *.jobs* are prime candidates. High noise, little
information. Have your upstreams providers stop sending them if you
can.
If you can't get your upstreams provider to block, turn off streaming
feeds. That will mean slower delivery, but less bandwidth will be
spent on receiving articles that would be refused.
If you feed others yourself, you may want to talk to them about
blocking certain articles or groups from being fed to them.
Either because they would drop the articles themselves, or because your
distribution policy says you shouldn't distribute this (like child
porn, warez and other things that may be covered by local laws or
company policies).
If feeding across borders, it's also a Good Thing if you add a
/!yourcountrycode to all outgoing feeds that goes to other countries.
Like /!usa if you're a US feed feeding a Canadian site, and /!usa,!na
if you're a US feed feeding a European site. That takes care of
many local ads that aren't meant for other than locals - *some*
ad spammers are at least nice enough to add a Distribution: header,
although far too few newsmasters bother to filter them out.
filter_innd.pl can also be of help filtering unwanted articles.
To block crossposted binary spam and multipart binaries, I've changed
the filter_art function in filter_innd.pl:
sub filter_art {
# Warning - bad perl ahead. Clean up if you like.
my $rval = '';
if ($hdr{'Message-ID'} !~ /<cancel\./) {
my $froups = $hdr{'Newsgroups'};
my $lines = $hdr{'Lines'};
my @ng = split(/,/,$froups);
if ($#ng > 5) {
if ($froups =~ /binaries\.pictures/) {
$rval = 'ECP porn spam rejected';
} elsif ($froups =~ /\.jobs/) {
$rval = 'ECP job ad rejected';
} elsif ($lines > 500) {
$rval = 'ECP binary rejected';
} elsif ($#ng > 12) {
$rval = 'ECP rejected';
}
goto rejected if $rval;
}
if ($lines > 500) {
if ($hdr{'Subject'} =~
/\.(mov|.pg|avi|exe|zip) \([0-9]+\/([0-9]+)\)$/ && $2 > 1) {
$rval = 'MP binary rejected';
}
}
}
rejected:
# additional logging can be placed here
$rval;
}
Combined with a max size on articles, that takes care of *quite* a bit
of spam, and removes very little useful content. It sure helps reducing
bandwidth on outgoing feeds as well as local storage space, and with
very little CPU use.
Some may think the limits of max 12 ng's for crossposts may be a bit
too harsh - if so, it's easy enough to increase.
Regards,
--
*Art
Technical Details
Message-ID:
<akhsg7.db2.ln@flying.broomstick.com>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-mailReferences:
<3731AAA1.FB916E23@union.edu>Show Full Headers
Complete Article Headers
Message-ID: <akhsg7.db2.ln@flying.broomstick.com> Subject: Re: INN Performance tuning... Date: Thu, 06 May 1999 00:00:00 +0000 From: art@flying.broomstick.com (Arthur Hagen) References: <3731AAA1.FB916E23@union.edu> 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: 474838243 X-Complaints-To: abuse@broomstick.com X-Trace: kether.broomstick.com 926015389 89082 194.52.172.70 (6 May 1999 18:29:49 GMT) Organization: Broomstick Net Services Reply-To: art@broomstick.com NNTP-Posting-Date: 6 May 1999 18:29:49 GMT Newsgroups: news.software.nntp