Date: Tue, 5 Jun 2001 09:39:41 +0200 From: "Patrick O'Reilly" <patrick@mip.co.za> To: <freebsd-questions@FreeBSD.ORG> Cc: "BSD Freak" <bsd-freak@mbox.com.au> Subject: RE: Traffic Metering Message-ID: <NDBBIMKICMDGDMNOOCAIKEFOCKAA.patrick@mip.co.za> In-Reply-To: <2365f0231763.2317632365f0@mbox.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBIMKICMDGDMNOOCAIKEFOCKAA.patrick>