Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2003 11:30:08 +0100
From:      Jez Hancock <jez.hancock@munk.nu>
To:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD tool for network bandwidthmeasure  ?
Message-ID:  <20030805103007.GA83222@users.munk.nu>
In-Reply-To: <001d01c35b13$3b308e50$5f4f0844@DT>
References:  <001d01c35b13$3b308e50$5f4f0844@DT>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030805103007.GA83222>