From owner-freebsd-hackers Wed Jun 7 10:18:58 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 54A1D37B5C0 for ; Wed, 7 Jun 2000 10:18:52 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id TAA31779; Wed, 7 Jun 2000 19:18:07 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Hans Huebner Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: IP prepaid accounting In-reply-to: Your message of "Wed, 07 Jun 2000 19:08:27 +0200." Date: Wed, 07 Jun 2000 19:18:07 +0200 Message-ID: <31777.960398287@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , Hans Huebner writes: >Hi there, > >I've made a first shot at the prepaid system I described yesterday. Citing >the ipfw manpage: > > The usage of IP quotas is illustrated by the following example: > > First, a quota entry is set up: > > ifpw quota set guest quota 100000 warn 90000 > > The above rule creates a quota entry which allows for 100,000 bytes to be > transfered and which will trigger a warning message after 90,000 bytes > have been used up. > > ipfw add quota guest ip from 192.168.1.0/24 to any > ipfw add quota guest ip from any to 192.168.1.0/24 > > These rules assign all traffic to and from a /24 subnet to the quota en- > try. > > ipfw deny all ip from any to any exquota It should be possible to say say ipfw deny all ip from any to any exquota any as well as: ipfw deny all ip from any to any exquota guest -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message