From owner-freebsd-isp Tue Jun 18 22:43:18 2002 Delivered-To: freebsd-isp@freebsd.org Received: from buck.Hughes.com.au (ns1.Hughes.com.au [203.16.25.1]) by hub.freebsd.org (Postfix) with ESMTP id A367137B406 for ; Tue, 18 Jun 2002 22:43:13 -0700 (PDT) Received: from Fawn (szpp-p-144-139-27-206.prem.tmns.net.au [144.139.27.206]) by buck.Hughes.com.au (8.12.1/8.11.1) with SMTP id g5J5f7Bq002686 for ; Wed, 19 Jun 2002 15:41:10 +1000 (EST) (envelope-from bambi@Hughes.com.au) From: "David J. Hughes" To: Subject: RE: Bandwidth billing and measurement scripts Date: Wed, 19 Jun 2002 15:40:32 +1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <20020619000227.A5671@munkboxen.mine.nu> Importance: Normal Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > 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