Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2002 00:02:27 +0100
From:      Jez Hancock <jez.hancock@munkboxen.mine.nu>
To:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Bandwidth billing and measurement scripts
Message-ID:  <20020619000227.A5671@munkboxen.mine.nu>
In-Reply-To: <3D0F2327.FDF97290@mipk-kspu.kharkov.ua>; from artem@mipk-kspu.kharkov.ua on Tue, Jun 18, 2002 at 03:10:15PM %2B0300
References:  <F579D533-82AF-11D6-9899-003065C60B4C@mac.com> <3D0F2327.FDF97290@mipk-kspu.kharkov.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020619000227.A5671>