Re: [INN] Limiter les connexions...
Le jour des Calendes d'octobre, en réponse à F. Senault :
> Je cherche simplement à limiter le nombre de connexions actives
> simultanément par client (par login, ou, à défaut, par ip - je n'ai que
> des authentifications par login / pass)... Quelqu'un a déjà fait ce
> genre de choses avec INN ?
Je ne sais pas, mais voici une idée :
%%
Newsgroups: news.software.nntp
Subject: Re: inn, limit download per user
Date: Wed, 15 Oct 2003 16:52:01 +0000 (UTC)
>is there a way to limit the amount of data, that
>can be downloaded from a particular IP?
You can limit the amount of bandwidth per connection, easily.
I think you'd have to use the Perl hooks to write some code for
tracking multiple connections per IP. Trying to do a bytes/day
cap would be tricky in nnrpd itself.
A better solution may be to run INN on a separate port for your
newsfeeds to talk to, and use a separate tool like xinetd to
listen for client connections and launch nnrpd; I'm not sure
exactly what sort of limits xinetd supports, but probably the way
to go about this is to find a solution like xinetd that's
independent of any particular server software. I don't know
where to best send you to find out about that, though.
Jeffrey M. Vinocur
%%
--
Iulius
« Pour célébrer ce jour heureux, buvons un coup, buvons-en deux. »
(Aristophane)
|