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  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
[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to