From owner-freebsd-questions Tue Jun 5 0:40:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mip.co.za (puck.mip.co.za [209.212.106.44]) by hub.freebsd.org (Postfix) with ESMTP id BE3F637B401 for ; Tue, 5 Jun 2001 00:39:56 -0700 (PDT) (envelope-from patrick@mip.co.za) Received: from patrick (patrick.mip.co.za [10.3.13.181]) by mip.co.za (8.9.3/8.9.3) with SMTP id JAA66987; Tue, 5 Jun 2001 09:39:41 +0200 (SAST) (envelope-from patrick@mip.co.za) From: "Patrick O'Reilly" To: Cc: "BSD Freak" Subject: RE: Traffic Metering Date: Tue, 5 Jun 2001 09:39:41 +0200 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.00.2919.6600 Importance: Normal In-Reply-To: <2365f0231763.2317632365f0@mbox.com.au> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Try using the counters on ipfw - if that's what you're running for your firewall. Make sure there are ipfw rules to trap and count each customer's traffic individually. # ipfw -a list. It might be primitive (no graphs, bells or whistles), but its accurate. A little bit of scripting triggered by cron, to read the counters, write the results somewhere, and reset them once a day should do the trick. NB: be careful not to DOUBLE-COUNT the traffic. Remember, all packets pass through ipfw twice, so make sure your counters are set up only on the inside or the outside interface, NOT BOTH. Patrick. -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of BSD Freak Sent: 05 June 2001 08:51 To: freebsd-questions@FreeBSD.ORG Subject: Traffic Metering Hi all, We run a small server co-location facility with a BSD border firewall/router. We currently charge our clients a monthly charge regardless of traffic. However we would like the option of charging per megabyte of traffic, anyone have any ideas how we can keep a reliable log of traffic volume per each of customer IP address on the network? Thanks in advance ..... ---------------------------------------------- Earn money with mBox Visit http://www.mbox.com.au/referral_programs.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message