From owner-freebsd-questions@FreeBSD.ORG Mon Nov 6 15:34:09 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2523416A40F for ; Mon, 6 Nov 2006 15:34:09 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40B9D43D55 for ; Mon, 6 Nov 2006 15:34:07 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-2) with ESMTP id kA6FXrJh010748 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 6 Nov 2006 17:33:54 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id kA6FXhBl004560; Mon, 6 Nov 2006 17:33:44 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id kA6FXhWn004559; Mon, 6 Nov 2006 17:33:43 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 6 Nov 2006 17:33:43 +0200 From: Giorgos Keramidas To: Niek Message-ID: <20061106153343.GB4123@kobe.laptop> References: <20061005103759.L57215@bravo.pjkh.com> <454F4C0F.607@bigfoot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <454F4C0F.607@bigfoot.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.527, required 5, AWL -0.13, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20, UNPARSEABLE_RELAY 0.00) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: tools for network traffic accounting X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2006 15:34:09 -0000 On 2006-11-06 15:51, Niek wrote: > Thanks, also to all others who answered this question. > I found out that setting 'set loginterface ' in pf.conf makes it > possible to get transfer statistics from pfctl -si. Maybe it is of > interest for other beginners like me. There is also `pfctl -vv -s Interface -i ', which may be of interest in gathering per-interface statistics with PF: % # pfctl -vv -s Interface -i ath0 % Password: ******** % No ALTQ support in kernel % ALTQ related functions disabled % ath0 (instance, attached) % Cleared: Mon Nov 6 15:51:45 2006 % References: [ States: 0 Rules: 0 ] % In4/Pass: [ Packets: 48403 Bytes: 39977970 ] % In4/Block: [ Packets: 8600 Bytes: 1280772 ] % Out4/Pass: [ Packets: 44268 Bytes: 3636974 ] % Out4/Block: [ Packets: 0 Bytes: 0 ] % In6/Pass: [ Packets: 0 Bytes: 0 ] % In6/Block: [ Packets: 46 Bytes: 3152 ] % Out6/Pass: [ Packets: 0 Bytes: 0 ] % Out6/Block: [ Packets: 0 Bytes: 0 ] % #