From owner-freebsd-hackers Thu Jun 8 4:44:47 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id 3CDCA37B6CE for ; Thu, 8 Jun 2000 04:44:30 -0700 (PDT) (envelope-from luigi@info.iet.unipi.it) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id NAA03448; Thu, 8 Jun 2000 13:40:38 +0200 (CEST) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200006081140.NAA03448@info.iet.unipi.it> Subject: Re: IP prepaid accounting In-Reply-To: <20000608121017.A39941@mithrandr.moria.org> from Neil Blakey-Milner at "Jun 8, 2000 12:10:18 pm" To: Neil Blakey-Milner Date: Thu, 8 Jun 2000 13:40:38 +0200 (CEST) Cc: Poul-Henning Kamp , Hans Huebner , freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > sorry if i lost part of the discussion, but why dont you > > just associate a quota with a rule and specify one of the > > two possible results when exceeding quota: > > > > ipfw match-upto 20MB > > ipfw deny-above 20MB ... > Well, it may or may not be able to cover a situation I'm thinking about > now: ... it does, just use skipto rules to reach the final one where the quota is enforced, make it a "match-upto" rule, and follow it with a pipe (and match-upto the difference between first and second threshold, and so on...) cheers luigi -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137 -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message