From owner-freebsd-isp Sat Jun 22 22:22: 8 2002 Delivered-To: freebsd-isp@freebsd.org Received: from smtpout.mac.com (smtpout.mac.com [204.179.120.85]) by hub.freebsd.org (Postfix) with ESMTP id 9569237B401 for ; Sat, 22 Jun 2002 22:22:05 -0700 (PDT) Received: from smtp-relay.mac.com (smtp-relay01-en1 [10.13.10.224]) by smtpout.mac.com (8.12.1/8.10.2/1.0) with ESMTP id g5N5M0k2004927 for ; Sat, 22 Jun 2002 22:22:00 -0700 (PDT) Received: from asmtp01.mac.com (asmtp01-qfe3 [10.13.10.65]) by smtp-relay.mac.com (8.12.1/8.12.1/1.0) with ESMTP id g5N5LtrE026000 for ; Sat, 22 Jun 2002 22:21:55 -0700 (PDT) Received: from localhost ([202.45.118.93]) by asmtp01.mac.com (Netscape Messaging Server 4.15) with ESMTP id GY588H00.MAF; Sat, 22 Jun 2002 22:21:53 -0700 Date: Sun, 23 Jun 2002 14:51:43 +0930 Subject: Re: Bandwidth billing and measurement scripts Content-Type: text/plain; charset=ISO-8859-1; format=flowed Mime-Version: 1.0 (Apple Message framework v482) Cc: Hans-Joachim Picht To: freebsd-isp@FreeBSD.ORG From: Wincent Colaiuta In-Reply-To: <20020622191521.GA1125@lnxce.net> Message-Id: <1B02AF4B-8669-11D6-A31E-003065C60B4C@mac.com> Content-Transfer-Encoding: quoted-printable X-Mailer: Apple Mail (2.482) 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 El Sunday, 23 June, 2002, a las 04:45 AM, Hans-Joachim Picht escribi=F3: >> What I'd like it to do: >> - run as an hourly cron job >> - count incoming and outgoing bandwidth user per IP based on ipfw >> "count" rules - this should give a totally accurate traffic count >> without the need to resort to parsing mail, http and ftp logs (which >> could get very messy) >> - save ipfw output to disc for safe keeping > > A tool for that is already available. http://www.simon.org.ua/ipa/ Thanks for the reply Hans. I had already checked out IPA and found that=20= it wasn't quite what I was looking for. I had two main problems with it:=20= firstly it was written in C, and I don't know C so I can't modify it or=20= add to it to make it how I would like; and secondly, I'm not so sure I'm=20= entirely happy with how deep it digs down into the kernel. =46rom the = IPA=20 FAQ: > If you installed a new kernel or made some changes in the kernel, then=20= > you should also rebuild ipa(8), becase it uses kernel structures and=20= > they can be changed from one version of the operating system to = another=20 > one, but see below. Don't really feel like having to worry about my billing and invoicing=20 system breaking down when I rebuild the kernel. That's why I want to=20 stick with basic user-land accessible tools like Perl, sh and ipfw. In=20= any case, I've done most of the scripting for my custom solution anyway=20= now. Cheers Wincent To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message