From owner-freebsd-net@FreeBSD.ORG Wed Dec 10 01:07:14 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45B3916A4CE for ; Wed, 10 Dec 2003 01:07:14 -0800 (PST) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC9CE43D29 for ; Wed, 10 Dec 2003 01:07:11 -0800 (PST) (envelope-from eugen@kuzbass.ru) Received: from kuzbass.ru (kost [213.184.65.82])hBA976fi080680 for ; Wed, 10 Dec 2003 16:07:07 +0700 (KRAT) (envelope-from eugen@kuzbass.ru) Message-ID: <3FD6E1C2.DF8EC599@kuzbass.ru> Date: Wed, 10 Dec 2003 16:05:06 +0700 From: Eugene Grosbein Organization: SVZServ X-Mailer: Mozilla 4.8 [en] (Win98; U) X-Accept-Language: ru,en MIME-Version: 1.0 To: net@freebsd.org Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Subject: ipfwshow as shell builtin? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2003 09:07:14 -0000 Hi! There are some tasks that are can be easily and efficiently solved with ipfw(8). For example, it can summarize traffic delivered over ethernet with unicast packets (ipfw2 feature), or make sums of traffic from/to distinct network blocks. It's not about generic detailed traffic accounting, it's about simple sums (f.e. for MRTG). The problem is how to get these values easly and efficiently for the same time. To supply values for MRTG I use net-snmpd and its 'pass_persist' feature (think about one MRTG and many monitires hosts). Simple shell script uses 'ipfw show' to return values. It is easy but still is not very optimal. There is additional fork+exec of /sbin/ipfw still. It would be nice to have something lightweight like 'ipfwshow' as /bin/sh builtin, isn't it? Eugene Grosbein