Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2000 11:43:17 +0200 (CEST)
From:      Luigi Rizzo <luigi@info.iet.unipi.it>
To:        Neil Blakey-Milner <nbm@mithrandr.moria.org>
Cc:        Poul-Henning Kamp <phk@critter.freebsd.dk>, Hans Huebner <hans@Huebner.ORG>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: IP prepaid accounting
Message-ID:  <200006080943.LAA02967@info.iet.unipi.it>
In-Reply-To: <20000608110055.A38991@mithrandr.moria.org> from Neil Blakey-Milner at "Jun 8, 2000 11:00:55 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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 <action> <match pattern> match-upto 20MB 
   ipfw <action> <match pattern> deny-above 20MB 

where the first syntax does not match when the rule's counters
are above the quota, the second one denies the pkt when above quota.

It looks of trivial implementation and rather easy to understand.
You'd just need a new ipfw command to increase/decrease/set counters to
a specific value rather than just zero them.

	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006080943.LAA02967>