Article View: news.software.nntp
Article #80600Re: basic nntp connections question
From: Julien ÉLIE
Date: Sat, 18 Apr 2009 17:30
Date: Sat, 18 Apr 2009 17:30
58 lines
3443 bytes
3443 bytes
Hi John,
>> http://news.lacave.net/inn/auth_rate.pl
>
> First, though, where would I put this script file, and what else would
> need to be edited to hook into it?
You should look at the perl_auth: parameter in readers.conf.
> I looked over the site but see no instructions, beyond:
>
> Un autre script d'authentification basé plus simplement sur un fichier
> password plat classique, mais qui implémente une limite au nombre de
> connexions simultanées par client (pour être exact, par addresse IP).
>
> Which translates as: "Another script authentication based simply on a
> classic dish password file, but implements a limit on the number of
> simultaneous connections per user (to be exact, by IP address)."
The "dish file" (for "fichier plat") is a "flat file".
> I don't see anything in the script mentioning "IP," but I believe he is
> referring to a textfile of users:
>
> my $FILE = '/etc/news/users';
>
> I would prefer the limitation to be for all nnrpd connections. I
> certainly don't want to maintain an additional file for user names.
In fact, it is used if you authenticate users (with ckpasswd for instance
against the "users" flat file).
If you do not want that, just drop the part where $FILE is dealt with
and use:
if($oc > $MAX) {
sleep(2);
return ( '502', 'Too many connections from your host' );
} else {
return ( '281', 'Ok' );
}
> This idea is not for regulation for the purpose of limiting speed nor
> volume, but simply to make the news.notice log report more readable
> (orderly). I don't think more than one reader connection will speed up
> anything.
The problem is that some news clients open several connections by design
(for instance to retrieve messages in parallel or an instance to post
articles, not within the reader instance).
--
Julien ÉLIE
« Rubor, tumor, dolor, calor et functio laesa. »
Technical Details
Message-ID:
<gsd2rc$q09$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mailReferences:
<gdydnR0nDbBlYXrUnZ2dnUVZ_tKdnZ2d@giganews.com> <gs95ub$165$1@news.trigofacile.com> <BL2dnenpdLDHC3XUnZ2dnUVZ_jmdnZ2d@giganews.com> <gsada7$5g8$1@news.trigofacile.com> <gsadod$40f$3@optima7.xanadu-bbs.net> <gsahl9$9l9$1@news.trigofacile.com> <gsd034$ot3$1@optima7.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <gsd2rc$q09$1@news.trigofacile.com> Subject: Re: basic nntp connections question Date: Sat, 18 Apr 2009 19:30:17 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <gdydnR0nDbBlYXrUnZ2dnUVZ_tKdnZ2d@giganews.com> <gs95ub$165$1@news.trigofacile.com> <BL2dnenpdLDHC3XUnZ2dnUVZ_jmdnZ2d@giganews.com> <gsada7$5g8$1@news.trigofacile.com> <gsadod$40f$3@optima7.xanadu-bbs.net> <gsahl9$9l9$1@news.trigofacile.com> <gsd034$ot3$1@optima7.xanadu-bbs.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!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 58 NNTP-Posting-Host: aaubervilliers-151-1-59-169.w83-112.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1240075949 26633 83.112.154.169 (18 Apr 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sat, 18 Apr 2009 17:32:29 +0000 (UTC) In-Reply-To: <gsd034$ot3$1@optima7.xanadu-bbs.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049