Re: tcpsvd - Allow only x connections from somebody/hour

"Clemens Fischer" <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
* M. Lucas:

> A little side program to read the limitip hash table and to sort all conn
> for he top 10 servers which connect would be an idea.

no problem.  note that you'd then have to use "tcpserver ... setlock ...
limitip" to keep the database locked, as it is unusable between read-in and
write-out.

> As an admin you could run this side script and see that e.g. host 1.2.3.4
> does 40% of all the connections so he could "whitelist" this host and save
> the cpu-cycle.  (this data is also available throu the tcpsvd logfiles)
>
> For version 2.0
> In the "data kept per IP" a default number for limit_cons with a manual
> override throu some admintool.

> On Wed, 2004-12-01 at 23:45 +0100, Clemens Fischer wrote:
>> *  get its parameters from environment variables set in tcprules

thus you get to set each of the parameters $LIMITIPTO, $LIMITIPSIZE,
$LIMITIPTIME and $LIMITIPCONS through the customary mechanism of setting
environment variables in tcprules.  a default is set as usual using a simple
"setenv" near the top of the run-file.

  clemens
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.