Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2002 15:40:32 +1000
From:      "David J. Hughes" <bambi@Hughes.com.au>
To:        <freebsd-isp@FreeBSD.ORG>
Subject:   RE: Bandwidth billing and measurement scripts
Message-ID:  <MBEKKDFNOOOCNGBGIOMHEEKCGFAA.bambi@Hughes.com.au>
In-Reply-To: <20020619000227.A5671@munkboxen.mine.nu>

next in thread | previous in thread | raw e-mail | index | archive | help

> 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).

If you really need to do this for true volume numbers (rather than just the
info you can glean from the log files) you could run a proxy in front of
your web server(s) (i.e. a reverse proxy, or distributor,  or whatever your
terminology dictates) and assign each virtual host a distinct private IP
address.  In effect you allow the proxy box to act as an HTTP 1.1 to HTTP
1.0 gateway.  Do your traffic accounting based on the private IP's (using
ipfw on the proxy box or whatever method you choose) and your problem is
solved. I'm not saying I'd do it but it would give you what you are looking
for (i.e. real IP accounting on 1.1 virtual hosts).

For other traffic accounting tasks, I have a simple but effective package
available called TraffAcct.  It's SNMP based and handles your usual
interface oriented connections, Cisco ISDN connections, and Cisco IP
accounting based data collection.  It also includes a template driven web
interface for user access, and a generic report writer that can generate
text based reports in whatever format you want (for importing into your
billing system).  It's been running at various places for several years and
is stable enough to handle your billing etc.

It's GPLed, it's freely available, and it's in use at quite a few Australian
ISPs.  If you are interested you can find out more from www.Hughes.com.au.
Remember though that YMMV and you get what you pay for ;)



Bambi
...


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?MBEKKDFNOOOCNGBGIOMHEEKCGFAA.bambi>