Re: ftp server limit ?

From: charly (kanari_at_yahoo.fr)
Date: 03/05/04


Date: Fri, 05 Mar 2004 20:26:09 +0000


> Google Groups search: proftpd hammer
> http://tinyurl.com/23l4k
>
> Requires a little knowledge in shell scripting though.
Ok here is how I could set things up :

a perl script sent in background via the & operator.
It parses the log file of the day and looks for the xx.xx.xx.xx -> ip
adresses.

each time he finds one, he puts it in an array of ips. If the ip is
present, then he adds 1 to the counter if the counter < 5 ; else, the ip
is appended to the hosts.deny.

Strcture of Array :
IP NB of occurences
xx.xx.xx.xx 1

Your opinion there ?


Loading