From owner-freebsd-questions@FreeBSD.ORG Wed Sep 7 13:31:50 2005 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 CA79116A41F for ; Wed, 7 Sep 2005 13:31:50 +0000 (GMT) (envelope-from gpeel@thenetnow.com) Received: from constellation.thenetnow.com (thenetnow.com [69.90.69.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81A4C43D45 for ; Wed, 7 Sep 2005 13:31:50 +0000 (GMT) (envelope-from gpeel@thenetnow.com) Received: from hpeel.ody.ca ([216.240.12.2] helo=GRANT) by constellation.thenetnow.com with esmtpa (Exim 4.43) id 1ED01k-000EfG-Uz for freebsd-questions@freebsd.org; Wed, 07 Sep 2005 09:31:49 -0400 Message-ID: <004301c5b3b0$7ffa4010$6501a8c0@GRANT> From: "Grant Peel" To: Date: Wed, 7 Sep 2005 09:31:43 -0400 Organization: The Net Now Internet MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: IPFW X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Grant Peel List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2005 13:31:50 -0000 Hi all, After pouring through the manual and manpages, I suspect the answer is now, but I would really love to be wrong! Is there a way to count bytes inbound and outbound for a specific ip using ipfw in a SINGLE RULE? 10000 count ip from 192.168.1.2 OR to 192.168.1.2 via em0 I know that above won't work, but hopefully it gets the question accoss! To the dev guys, how about adding a 'through' or 'both' keyword! example: 10000 count ip through 192.168.1.2 via em0 or 10000 count ip 192.168.1.2 both via em0 -Grant