From owner-freebsd-questions@FreeBSD.ORG Fri Oct 28 17:10:05 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 5E5C216A41F for ; Fri, 28 Oct 2005 17:10:05 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9657D43D48 for ; Fri, 28 Oct 2005 17:10:04 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id x3so479250nzd for ; Fri, 28 Oct 2005 10:10:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JmAsxxbVJ4aAZNb8GGlnOHRQbkKv2ttSO9N10xxJT7CI7wUW2v/Lyt0C2DjM1nIc+G1AJJPLK/tdoYBRmnl/QGQLZyl7nB55bny+5MhMdHwnkk3WYxrqchJENQZhdVtthMDJRPnfDqA8hirn5eBDi61iUdos7riFPhz91wWm4CU= Received: by 10.37.15.65 with SMTP id s65mr440298nzi; Fri, 28 Oct 2005 10:10:03 -0700 (PDT) Received: by 10.37.20.34 with HTTP; Fri, 28 Oct 2005 10:10:03 -0700 (PDT) Message-ID: Date: Fri, 28 Oct 2005 21:10:03 +0400 From: "Andrew P." To: Grant Peel In-Reply-To: <013901c5dbd6$1a71ff50$6401a8c0@GRANT> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <013901c5dbd6$1a71ff50$6401a8c0@GRANT> Cc: freebsd-questions@freebsd.org, Jamie Cameron Subject: Re: IPFW - Counter 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: Fri, 28 Oct 2005 17:10:05 -0000 On 10/28/05, Grant Peel wrote: > Hi all, > > Is is possible, to make a single rule counter, or, a multiple rule counte= r > (maybe that pies to 1 single counter), so one can track inclomming and > outgoing bandwidth? > > I would like to say: > > 000001 count from any to any via 1.2.3.4 > > or > > 000001 count 1.2.3.4 > > To have the same effect as: > > 000001 count from any to 1.2.3.4 in via fxp0 > 000002 count from 1.2.3.4 to and out via fxp0 > > but somehow I don't think they will work :-) > > -Grant > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > You can try using pipes for some kind of consolidation (they are not meant for it, of course). You can also use skips like this: skipto 1000 skipto 1000 ... skipto 1500 ip from any to any And have rule number 1001 that counts all the types you have defined. Or you can try telling us precisely what you want, we might come up with some rules.