From owner-freebsd-questions Fri Jan 29 03:10:49 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA01098 for freebsd-questions-outgoing; Fri, 29 Jan 1999 03:10:49 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from turkey.ispro.net.tr (turkey.ispro.net.tr [195.174.18.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA01093 for ; Fri, 29 Jan 1999 03:10:40 -0800 (PST) (envelope-from yurtesen@turkey.ispro.net.tr) Received: from localhost (yurtesen@localhost) by turkey.ispro.net.tr (8.8.8/8.8.8) with SMTP id NAA24628; Fri, 29 Jan 1999 13:10:18 +0200 (EET) (envelope-from yurtesen@turkey.ispro.net.tr) Date: Fri, 29 Jan 1999 13:10:18 +0200 (EET) From: Evren Yurtesen To: HERBELOT Thierry cc: questions Subject: Re: Measuring 'net traffic In-Reply-To: <36B09EA0.1F1C3DEB@telspace.alcatel.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I thought the netstat -i command shows incoming and outgoing packet numbers. you can find out how many bytes you have received from there I guess On Thu, 28 Jan 1999, HERBELOT Thierry wrote: > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message