Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jun 2000 19:08:27 +0200 (CEST)
From:      Hans Huebner <hans@Huebner.ORG>
To:        freebsd-hackers@freebsd.org
Subject:   Re: IP prepaid accounting
Message-ID:  <Pine.BSF.4.20.0006071902420.16831-100000@huebner.org>
In-Reply-To: <Pine.BSF.4.20.0006061210090.447-100000@huebner.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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

     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
http://huebner.org/ip-prepaid.patch

I've tried patching a -CURRENT checkout and it seems to pass well with
little fuzz.

Any comments and suggestions are gladly appreciated.

-Hans

-- 
                                       finger hans@huebner.org for details



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?Pine.BSF.4.20.0006071902420.16831-100000>