From owner-freebsd-questions@FreeBSD.ORG Sun Jul 25 10:13:10 2004 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 DDC4816A4CE for ; Sun, 25 Jul 2004 10:13:10 +0000 (GMT) Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36A8B43D48 for ; Sun, 25 Jul 2004 10:13:08 +0000 (GMT) (envelope-from angus.g.barrow@stud.man.ac.uk) Received: from [10.2.18.1] (helo=gerhayn.mcc.ac.uk) by probity.mcc.ac.uk with esmtp (Exim 4.20) id 1Bog08-000LLN-7C for freebsd-questions@freebsd.org; Sun, 25 Jul 2004 11:13:04 +0100 Received: from spc1-with1-4-0-cust247.bagu.broadband.ntl.com ([213.106.183.247] helo=[192.168.1.10]) by gerhayn.mcc.ac.uk with asmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.04) id 1Bog08-000DVE-00 for freebsd-questions@freebsd.org; Sun, 25 Jul 2004 11:13:04 +0100 From: Angus Barrow To: freebsd-questions@freebsd.org Content-Type: text/plain Message-Id: <1090753960.2113.9.camel@agb-dtop.studnet> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 25 Jul 2004 12:12:40 +0100 Content-Transfer-Encoding: 7bit X-Authenticated-Sender: MBDX3AGB from spc1-with1-4-0-cust247.bagu.broadband.ntl.com ([192.168.1.10]) [213.106.183.247] X-Authenticated-From: angus.g.barrow@stud.man.ac.uk X-Spam-Score: -4.8 (----) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *1Bog08-000LLN-7C*nqRZpsZ1zGs* Subject: Interface Statistics X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: angus.g.barrow@stud.man.ac.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jul 2004 10:13:11 -0000 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. Sorry about the rambling post I'm not really sure how much detail to provide. Thanks in advance for any help you can give me. Angus Barrow