From owner-freebsd-hackers Mon Feb 11 0:17:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f5.law4.hotmail.com [216.33.149.5]) by hub.freebsd.org (Postfix) with ESMTP id F201C37B419 for ; Mon, 11 Feb 2002 00:17:47 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 11 Feb 2002 00:17:47 -0800 Received: from 195.147.239.234 by lw4fd.law4.hotmail.msn.com with HTTP; Mon, 11 Feb 2002 08:17:47 GMT X-Originating-IP: [195.147.239.234] From: "Francis little" To: keramida@ceid.upatras.gr Cc: freebsd-hackers@freebsd.org Subject: Re: suggestion/patch for ftpd Date: Mon, 11 Feb 2002 08:17:47 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 Feb 2002 08:17:47.0785 (UTC) FILETIME=[96EA8F90:01C1B2D4] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 >To: Francis little >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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message