From owner-freebsd-questions@FreeBSD.ORG Tue Aug 5 03:30:10 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 9F45E37B404 for ; Tue, 5 Aug 2003 03:30:10 -0700 (PDT) Received: from munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7AA243FBF for ; Tue, 5 Aug 2003 03:30:09 -0700 (PDT) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.20) id 19jz4y-000MmB-3Q for freebsd-questions@freebsd.org; Tue, 05 Aug 2003 11:30:08 +0100 Date: Tue, 5 Aug 2003 11:30:08 +0100 From: Jez Hancock To: freebsd-questions@freebsd.org Message-ID: <20030805103007.GA83222@users.munk.nu> Mail-Followup-To: freebsd-questions@freebsd.org 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.4.1i Sender: User Munk 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 10:30:11 -0000 On Mon, Aug 04, 2003 at 10:34:20PM -0700, dt wrote: > Hello, > > 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? trafshow displays network throughput in an ncurses frontend in a console. I don't think there are any special requirements for trafshow - perhaps you need to have the bpf option enabled in the kernel (which it is by default?). Install it and try it it's in the ports under /usr/ports/net/trafshow. ipfw can count network traffic using different rules, so for example you could count all traffic bound for a certain address or interface using something like: ipfw add count all from any to 192.168.0.1 80 ipfw can also (very usefully) count traffic on a per uid basis. ipfw does have to be enabled in the kernel though. See the handbook for more info on this. -- Jez http://www.munk.nu/