From owner-freebsd-questions Mon Apr 17 19:52:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by hub.freebsd.org (Postfix) with ESMTP id D087837BAE6 for ; Mon, 17 Apr 2000 19:52:02 -0700 (PDT) (envelope-from ryan@sasknow.com) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.9.3/8.9.3) with ESMTP id UAA88256; Mon, 17 Apr 2000 20:52:37 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Mon, 17 Apr 2000 20:52:37 -0600 (CST) From: Ryan Thompson To: reasy Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Question In-Reply-To: <000a01bfa8b1$b98126b0$0100a8c0@james> Message-ID: Organization: SaskNow Technologies [www.sasknow.com] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG reasy wrote to freebsd-questions@FreeBSD.ORG: > Hi > i am soon to run a web-hosting server > the server will run FreeBSD 3.4-RELEASE Excellent! You might consider cvsup'ing to the latest -STABLE to ensure the most stable production environment possible. > but i am unsure on how to do a few things... > > i want the user to be able to telnet into there account > but i want to limit the ammount of processes each user uses... > this my variey from user to user depending on how many processes > each user wants... do you know how i can do this ? man ulimit > secondly... > i want to control how many megabytes of transfer each user uses, > this is to i dont have the biggest traffic bill i cant imagine... > this will also variey from user to user depending on which account they > purchase. man dummynet, but dummynet is an ipfw function, so it can not be limited by user. If this is for IP based virtual hosting, you can limit bandwidth by IP. Why not just advertise a maximum transfer limit, run a monthly log analyzer that analyzes pertinent transfer logs, and bill users for overusage? If you have problem users/sites that are generating WAY too much traffic for your CONNECTION to handle, you need to adjust your policies so you can prohibit gratuitous use of bandwidth by cancelling contracts. -- Ryan Thompson Systems Administrator, Accounts Phone: +1 (306) 664-1161 SaskNow Technologies http://www.sasknow.com #106-380 3120 8th St E Saskatoon, SK S7H 0W2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message