From owner-freebsd-questions Thu Jan 28 11:14:01 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA27024 for freebsd-questions-outgoing; Thu, 28 Jan 1999 11:14:01 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mel.alcatel.fr (mel.alcatel.fr [212.208.74.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA25224 for ; Thu, 28 Jan 1999 11:00:39 -0800 (PST) (envelope-from Thierry.Herbelot@alcatel.fr) Received: from aifhs2.alcatel.fr (mailhub.alcatel.fr [155.132.180.80]) by mel.alcatel.fr (ALCANET/SMTP) with ESMTP id SAA13098 for ; Thu, 28 Jan 1999 18:40:00 +0100 Received: from lune.telspace.alcatel.fr (lune.telspace.alcatel.fr [155.132.144.65]) by aifhs2.alcatel.fr (ALCANET/SMTP2) with ESMTP id SAA25889 for ; Thu, 28 Jan 1999 18:37:52 +0100 (MET) Received: from telss1.telspace.alcatel.fr (telss1.telspace.alcatel.fr [155.132.51.4]) by lune.telspace.alcatel.fr (8.9.1a/8.9.1) with SMTP id SAA19779 for ; Thu, 28 Jan 1999 18:17:59 +0100 (MET) Received: from telspace.alcatel.fr (nairobi.telspace.alcatel.fr) by telss1.telspace.alcatel.fr (4.1/SMI-4.1) id AA03873; Thu, 28 Jan 99 18:25:29 +0100 Message-Id: <36B09EA0.1F1C3DEB@telspace.alcatel.fr> Date: Thu, 28 Jan 1999 18:30:08 +0100 From: HERBELOT Thierry Organization: Alcatel Telspace X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4m) X-Accept-Language: en Mime-Version: 1.0 To: questions Subject: Measuring 'net traffic Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I would like to know the number of bytes sent to and received from an Ethernet NIC. I have installed ipfw (on a 3.0-Current) and 'ipfw show' shows counters of packets and bytes gone through the rule "ip allow any from any" (all that has not been denied before), BUT, I can't get it to show traffic in each direction. I have tried to replace the former rule by two (one for each direction : ip allow any from any in and ip allow any from any out), but this setup does not work at all (I can't get communication to the network and back). I have seen that pipes could be used to discriminate the two ways, but is it possible to Keep It Simple St.. and have separate counters without pipes ? TIA TfH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message