From owner-freebsd-pf@FreeBSD.ORG Thu Aug 21 05:17:02 2008 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B3501065675 for ; Thu, 21 Aug 2008 05:17:02 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2C67A8FC0A for ; Thu, 21 Aug 2008 05:17:02 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id EFB0C1CC0BD; Wed, 20 Aug 2008 22:17:01 -0700 (PDT) Date: Wed, 20 Aug 2008 22:17:01 -0700 From: Jeremy Chadwick To: Erik Danielsson Message-ID: <20080821051701.GA82314@eos.sc1.parodius.com> References: <48AC1BCE.3050109@quis.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-pf@freebsd.org Subject: Re: Limiting bandwidth X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2008 05:17:02 -0000 On Thu, Aug 21, 2008 at 07:07:57AM +0200, Erik Danielsson wrote: > Thanks guys. > > One question remains though. To count the total traffic from a certain IP > range, should a separate PF rule with a label be used? If so, how can I > reset only the labels statistics whenever I want to? The manpage to pfctl doesn't really indicate this is possible. You could simply delete then re-create the label rule, I would think. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |