From owner-freebsd-hackers Fri Jun 23 22:02:07 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id WAA10769 for hackers-outgoing; Fri, 23 Jun 1995 22:02:07 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id WAA10759 for ; Fri, 23 Jun 1995 22:02:05 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id WAA12272; Fri, 23 Jun 1995 22:01:57 -0700 From: "Rodney W. Grimes" Message-Id: <199506240501.WAA12272@gndrsh.aac.dev.com> Subject: Re: Network Usage Stats To: evanc@synapse.net Date: Fri, 23 Jun 1995 22:01:57 -0700 (PDT) Cc: hackers@freefall.cdrom.com In-Reply-To: <199506240057.UAA28543@sentinel.synapse.net> from "Evan Champion" at Jun 23, 95 08:57:30 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1199 Sender: hackers-owner@FreeBSD.org Precedence: bulk > > I am looking for a non-intrusive, hopefully low-CPU usage network > usage monitor that can tell me something about how much the network(s) > going in to a FreeBSD router is being used. > > Is there such a beast? Well, it is not quite what you want, but your FreeBSD router has it built in. It is kernel pseudo-device bpfilter: # The `bpfilter' pseudo-device enables the Berkeley Packet Filter. Be # aware of the legal and administrative consequences of enabling this # option. The number of devices determines the maximum number of # simultaneous BPF clients programs runnable. pseudo-device bpfilter 4 #Berkeley packet filter It is intrusive if run on the router itself as that will place additional load on it. But, if you take another FreeBSD box and hang it on the net to be watched it makes a reasonable very low cost sniffer (nothing like a real one mind you, but it gets the job done for me). See man tcpdump and man bpf for how to dump and filter packets once you have configured this into your kernel. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Reliable computers for FreeBSD