*BSD News Article 99084


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!not-for-mail
From: David Henshaw <dhenshaw@silas.cc.monash.edu.au>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: data monitoring software
Date: Sun, 06 Jul 1997 21:17:49 +1000
Organization: Monash Uni
Lines: 25
Message-ID: <33BF7EDD.41C67EA6@silas.cc.monash.edu.au>
References: <867907798.14345@dejanews.com>
NNTP-Posting-Host: ascendp-int-58.cc.monash.edu.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-NNTP-Posting-User: root
X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.2.1-RELEASE i386)
To: fk@webnet.com.au
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44012

fk@webnet.com.au wrote:
> 
> Hi,
> 
> I was wondering if anyone knew of any software that could keep track, as
> in give me a figure, of all incoming bytes, ie Thur 3th Jul host 129.x.x.x
>  received X number of bytes , or something similar for FreeBSD systems.
> If not, could I gather this info from log files ?
> 
> Thanks
> 
> Fay
> 
> -------------------==== Posted via Deja News ====-----------------------
>       http://www.dejanews.com/     Search, Read, Post to Usenet

Take a look at trafshow in the ports/packages.
It requires a kernel rebuild, but will do what you need.  I'm not sure
how you'd log the results though...

You could also write your own using the berkely packet filters. 
trafshow uses these.  Beware that it does open a security hole however.
-- 
David Henshaw
dhenshaw@silas.cc.monash.edu.au