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-
ipfw deny all ip from any to any exquota
This rule denies all traffic which has exceeded a quota. Typically, sys-
logd(8) is used to process messages produced by the ipquota(4) system.
The patch against -STABLE can be downloaded from
I've tried patching a -CURRENT checkout and it seems to pass well with
Any comments and suggestions are gladly appreciated.
finger firstname.lastname@example.org for details
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message