Article View: news.software.nntp
Article #80602Re: basic nntp connections question
From: John F. Morse
Date: Sat, 18 Apr 2009 20:38
Date: Sat, 18 Apr 2009 20:38
80 lines
4236 bytes
4236 bytes
Julien ÉLIE wrote:
> 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.
Ah-ha! Thanks for this tip.
>> 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).
I do, so I guess there is no more work involved.
> 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).
Well, ... maybe I should think about this a little more then. Having to
answer a ton of e-mail queries, asking, "what happened?" is not what I
really want!
I certainly don't want to have to test every newsreader available, so I
can write a HOWTO for each one on how to find the "maximum connections"
options. Some may not even be configurable, which would cause a lot of
502s and noise from those users. :-\
Thanks, Julien, and have a nice weekend.
--
John
No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Technical Details
Message-ID:
<gsddnq$sd7$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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!195.208.113.1.MISMATCH!goblin3!goblin.stu.neva.ru!optima7.xanadu-bbs.net!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> <gsd2rc$q09$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <gsddnq$sd7$1@optima7.xanadu-bbs.net> Subject: Re: basic nntp connections question Date: Sat, 18 Apr 2009 15:38:18 -0500 From: "John F. Morse" <xanadu.bbs@example.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> <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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!195.208.113.1.MISMATCH!goblin3!goblin.stu.neva.ru!optima7.xanadu-bbs.net!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 80 Reply-To: dont.bother Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: optima7.xanadu-bbs.net 1240087098 29095 192.168.89.210 (18 Apr 2009 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Sat, 18 Apr 2009 20:38:18 +0000 (UTC) User-Agent: Thunderbird 2.0.0.21 (X11/20090318) In-Reply-To: <gsd2rc$q09$1@news.trigofacile.com>