i'be been thinking of a similar idea to limit the connections from an ip...
could get the ftpd to write the ip on login to a file similar to writing the pid file. then could search the file for the number of instances of the connecting ip and if that is over a certian number deny the login.... also when the client loggs out would have to remove one instance of that address.... what do you think... francis >From: Giorgos Keramidas <[EMAIL PROTECTED]> >To: Francis little <[EMAIL PROTECTED]> >Subject: Re: suggestion/patch for ftpd >Date: Sun, 10 Feb 2002 23:12:27 +0200 > >On 2002-02-08 08:36, Francis little wrote: > > Hello all, > > > > i have writen a patch for ftpd that alows it to limit the number of >users > > that log in. it currently works in daemon mode only. > > > > the user limit can be set with the option "-C". (it will through up an > > error if you use this option from "inetd"). > >This will limit the total number of users. Which is probably not what we >want :( > >A way to limit per-IP-address users would be just beautiful, imho. >I'm trying to come up with patches that will keep the list of connected >children (address/pid) of ftpd and limit based on IP address. > >Anybody there interested in working together to make something like this? > > >Giorgos Keramidas FreeBSD Documentation Project >keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message