From owner-freebsd-ports Thu Mar 6 06:48:17 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA21369 for ports-outgoing; Thu, 6 Mar 1997 06:48:17 -0800 (PST) Received: from mail.intercenter.net (mir.intercenter.net [207.211.128.20]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id GAA21358 for ; Thu, 6 Mar 1997 06:48:13 -0800 (PST) Received: (qmail 8564 invoked from network); 6 Mar 1997 14:48:11 -0000 Received: from bigboy.intercenter.net (207.211.128.17) by mir.intercenter.net with SMTP; 6 Mar 1997 14:48:11 -0000 Date: Thu, 6 Mar 1997 09:48:11 -0500 (EST) From: Ron Bickers To: Intuitive Design Archive cc: David Ramahefason , freebsd-ports@freefall.freebsd.org, freebsd-isp@freefall.freebsd.org Subject: Re: Is there a tool for IP traffic accounting ?? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 6 Mar 1997, Intuitive Design Archive wrote: > > I'm looking for a tool to count the IP traffic from one IP to the rest of > > the world.... > > Is ipfw the only way ? > > > > Thanks for answering > > How about a IP counter for aliases? > > How do people generally do megabyte accounting for > virtual websites? It may not be the best solution, but I've been running nnstat with a simple config that sums up the bytes to/from the given IP address into each customers "bucket". A perl script gathers the info from it's log. It's been running unmodified without problems for 2 years now. nnstat makes use of the fact that ethernet is broadcast (it's pretty much a sniffer) so the machine must be located where all the traffic will pass. --- Ron