Date: Wed, 07 Jun 2000 19:18:07 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Hans Huebner <hans@Huebner.ORG> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: IP prepaid accounting Message-ID: <31777.960398287@critter.freebsd.dk> In-Reply-To: Your message of "Wed, 07 Jun 2000 19:08:27 %2B0200." <Pine.BSF.4.20.0006071902420.16831-100000@huebner.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.4.20.0006071902420.16831-100000@huebner.org>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31777.960398287>