From owner-freebsd-questions@FreeBSD.ORG Tue Aug 5 10:33:39 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FCF537B401 for ; Tue, 5 Aug 2003 10:33:39 -0700 (PDT) Received: from adsl-209.142.188.58-rb.clm.centurytel.net (adsl-209.142.188.58-rb.clm.centurytel.net [209.142.188.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9697643F85 for ; Tue, 5 Aug 2003 10:33:38 -0700 (PDT) (envelope-from herbert@adsl-209.142.188.58-rb.clm.centurytel.net) Received: (qmail 84941 invoked by uid 1000); 5 Aug 2003 17:40:59 -0000 Date: Tue, 5 Aug 2003 12:40:59 -0500 From: Herbert Wolverson To: freebsd-questions@freebsd.org Message-ID: <20030805174059.GA84699@charizard.tsghelp.com> References: <001d01c35b13$3b308e50$5f4f0844@DT> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001d01c35b13$3b308e50$5f4f0844@DT> User-Agent: Mutt/1.4i Subject: Re: FreeBSD tool for network bandwidthmeasure ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2003 17:33:39 -0000 On Mon, Aug 04, 2003 at 10:34:20PM -0700, dt wrote: > Is there any standard (or non) FreeBSD tool that is used to measure a > current network throughput/bandwidth? And also, what are the > requirements to do so, and do I need to be root to run, or do I need to > load a special kernel module? ntop and trafshow from the ports are both very good. They require that you have BPF (Berkeley Packet Filter) compiled into the kernel (its there by default, I believe), and read access to /dev/bpf*. By default, only root has that - I sometimes give it to wheel, just so that I don't need to su to root in order to run the monitor. For longer term monitoring, if you install net-snmp and mrtg from the ports you can get nice graphs showing bandwidth usage and trends (as well as use any SNMP monitor program to keep tabs on bandwidth use). IPA (IP Accounting), also in ports, is nice if you need fine grained monitoring - for example monitoring specific services/IPs' bandwidth use over time. It requires that you use count rules in your firewall, and works off there. Hope that helps, Herbert.