From owner-freebsd-isp Wed Oct 13 5:22:21 1999 Delivered-To: freebsd-isp@freebsd.org Received: from nak.zilch.net (nak.zilch.net [209.70.45.162]) by hub.freebsd.org (Postfix) with ESMTP id 658B114BF1; Wed, 13 Oct 1999 05:21:31 -0700 (PDT) (envelope-from zoonie@zilch.org) Received: from localhost (zoonie@localhost) by nak.zilch.net (8.8.8/8.8.8) with ESMTP id IAA20072; Wed, 13 Oct 1999 08:21:08 -0400 (EDT) (envelope-from zoonie@zilch.org) X-Authentication-Warning: nak.zilch.net: zoonie owned process doing -bs Date: Wed, 13 Oct 1999 08:21:08 -0400 (EDT) From: zoonie X-Sender: zoonie@localhost To: Dan Nelson Cc: Dan Larsson , "[FreeBSD-ISP-List] (E-post)" , "[FreeBSD-Questions-List] (E-post)" Subject: Re: how-to setup billing per MB? In-Reply-To: <19991012141808.A5946@dan.emsphone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org measuring MB transmitted via ipfw is what i do....i wrote a perl script to grab the numbers and store them in a db file. i also have the script generate a web page for the specific customer that gets transfered to a web server on a daily basis so that the customers can see how much they have transmitted for the month on any given day....it shouldn't be too much of a problem to use a different database to store the info... On Tue, 12 Oct 1999, Dan Nelson wrote: > 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-isp" in the body of the message > --------------------------------------------- The devil finds work for idle circuits to do. --------------------------------------------- zoonie at zilch dot org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message