Date: Tue, 9 Jun 1998 01:24:10 -0700 From: brian@worldcontrol.com To: Jason McKay <jasonm@webace.com.au>, questions@FreeBSD.ORG Subject: Re: Measuring Consumption Message-ID: <19980609012410.A4267@top.worldcontrol.com> In-Reply-To: <000201bd9361$67c7cca0$70a019cb@jason.webace.com.au>; from Jason McKay on Tue, Jun 09, 1998 at 12:45:18PM %2B0800 References: <000201bd9361$67c7cca0$70a019cb@jason.webace.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On %M 0, Jason McKay <jasonm@webace.com.au> wrote: > I need a means of measuring how much data (in megabytes) my dial-in ppp > clients are using. I am running FreeBSD 2.2.6-RELEASE, with pppd and > mgetty. ipfw (you add the support to your kernel) can count things like packets and bytes. I use it to count the bytes used by each virtual web site. I then pipe the data to mrtg to get cool graphs. Whether you could successfully use it in your application may depend if you do static or dynamic IP assignment. With static you could just count the data going to and from a particular IP. With dynamic you would have to figure out who was associated with which IP at what time. Off the top of my head, it doesn't seem too complicated. Your ppp login script would have to determine who had logged in, what IP they were assigned, add an appropriate count rule, and then log the count when the person hung up. -- Brian Litzinger <brian@litzinger.com> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980609012410.A4267>