Date: Sun, 25 Jul 2004 12:34:59 +0200 From: Erik Trulsson <ertr1013@student.uu.se> To: Angus Barrow <angus.g.barrow@stud.man.ac.uk> Cc: freebsd-questions@freebsd.org Subject: Re: Interface Statistics Message-ID: <20040725103459.GA14659@falcon.midgard.homeip.net> In-Reply-To: <1090753960.2113.9.camel@agb-dtop.studnet> References: <1090753960.2113.9.camel@agb-dtop.studnet>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 25, 2004 at 12:12:40PM +0100, Angus Barrow wrote: > Hi, > I'm a relative newbie to the world of computer admining and have the > following problem. I'm one of a group of students sharing a connection > which is limited (by the cabelco) to 1GB maximum transfer in any 24 hour > period. I've been trying in vain to find a way to at least warn us if > the transfer in a 24 hour period approaches a gigabyte. > > I know that on linux ifconfig shows a counter of the total amount of > data transfered over an interface and was wondering if there is a > similar tool for FreeBSD as the ifconfig provided doesn't seem to show > this information. > > I've tried googleing in vain and have attempted to set up ntop and > zabbix to see if they could provide the information (ntop didn't want to > play and zabbix still has me beat). > > I'm running the configuration shown below: > > > > -=INTERNET=- > | > | > -=ROUTER.STUDNET=- > | > | > -=SWITCH=- > | > | > -=Computers in rooms=- > > The router has two NIC's, xl0 is DHCP configured and is the internet, > the other (dc0) is 192.168.1.1. The router is running FreeBSD > 5.2.1-RELEASE and drops almost all incoming traffic via ipfw and uses > natd to masquerade the connections. Parsing the output of 'netstat -I xl0 -b' (or 'netstat -ib' for all interfaces) seems like a viable solution. -- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040725103459.GA14659>