From owner-freebsd-questions Tue Oct 12 12:18:21 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 62D941509B; Tue, 12 Oct 1999 12:18:18 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id OAA06005; Tue, 12 Oct 1999 14:18:08 -0500 (CDT) (envelope-from dan) Date: Tue, 12 Oct 1999 14:18:08 -0500 From: Dan Nelson To: Dan Larsson Cc: "[FreeBSD-ISP-List] (E-post)" , "[FreeBSD-Questions-List] (E-post)" Subject: Re: how-to setup billing per MB? Message-ID: <19991012141808.A5946@dan.emsphone.com> References: <01BF14F3.EC53B320.support@junglenote.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <01BF14F3.EC53B320.support@junglenote.com> X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Oct 12), Dan Larsson said: > My employer wants me to implement billing per MB. > > * I need to be able to set some kind of MB threshold value for when > billing should occur > * All clients have static IP addresses so it has to be based on per ethernet address (if possible) > or per IP address You can set up ipfw rules to count the packets going to each IP, then every hour/day store the counts in a database somewhere, and base your billing off of that. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message