Date: Wed, 19 Jun 2002 08:56:15 +0100 From: "Steve Lalonde" <steve@enta.net> To: <freebsd-isp@FreeBSD.ORG> Subject: Re: Bandwidth billing and measurement scripts Message-ID: <006201c21766$ca492710$62604ac3@steve2> References: <F579D533-82AF-11D6-9899-003065C60B4C@mac.com> <3D0F2327.FDF97290@mipk-kspu.kharkov.ua> <20020619000227.A5671@munkboxen.mine.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
We are using mod_log_mysql and a simple script to get the bytes transfered you need a fast DB server but i have this working for over 10,000,000 hits a day. Steve Lalonde Chief Technical Officer Entanet International Ltd http://www.enta.net/ *********************************************************************** IMPORTANT: DISCLAIMER NOTICE This email (and any attachment thereto) is confidential, and may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and notify the sender. Any views expressed in this e-mail are those of the individual sender, not those of the company unless endorsed by a Director of Entanet International Ltd. *********************************************************************** ----- Original Message ----- From: "Jez Hancock" <jez.hancock@munkboxen.mine.nu> To: <freebsd-isp@FreeBSD.ORG> Sent: Wednesday, June 19, 2002 12:02 AM Subject: Re: Bandwidth billing and measurement scripts > On Tue, Jun 18, 2002 at 03:10:15PM +0300, Artyom V. Viklenko wrote: > > Here is some example from my external router. > > In order to count traffic amount on external interface to provider > > I place these rules: > > > > ipfw add 2000 count ip from any to any in recv ed1 > > ipfw add 2001 count ip from any to any out xmit ed1 > > > > 'ipfw show 2000 && ipfw show 2001' produce this output: > > > > 02000 3226667 1630960688 count ip from any to any in recv ed1 > > 02001 3127782 917406180 count ip from any to any out xmit ed1 > > > > Second and third fields are packet and byte counters. > > You can use them in any scripting language ( awk, perl, etc ) > > to make your billing actions. > <snip> > How would you determine how much bandwidth has been used by users > accessing an individual domain a name-based > vhosting apache configuration (ie in the case using ipfw to log traffic is not possible > on a one-domain-one-ip basis). > > TIA > -- > Nobody ever got fired for choosing Microsoft, > but Nobody ever looked stupid for choosing FreeBSD... > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006201c21766$ca492710$62604ac3>