Subscriber Quotas
Time and volume quotas can be associated to a subscriber IP address. Once a quota is exhausted, the subscriber IP address is restricted (by default, the traffic is blocked). Both a time and a volume quota can be associated to an IP address at the same time, in which case the restriction happens when any of the quotas is exhausted.
Quotas are assigned to IP addresses. If a subscriber changes the IP address to a new one, that new IP address will not have a quota associated until one is provisioned through the REST API.
A time quota grants access for a period. There are two ways to define a time quota:
- As an absolute time. For example, 05/23/2023 (23rdof May, 2023).
- As an extension of current date (e.g. 15 days from now).
A volume quota grants access for a volume of traffic. There are two ways to define a time quota:
- As an absolute amount. For example, 10 GB.
- As an extension of amount (e.g. 5 GB on top of existing 10).
Quota General Configuration
To configure general aspects of quota behavior, go to Status->Subscribers->Subscriber Quotas and extend Advanced Quota Parameters.

Subscriber initial quota status defines what to do with IP addresses without an assigned quota:
- When set to disabled (the default), traffic is allowed, without restrictions.
- When set to blocked, traffic will be blocked until a valid quota is assigned.
See the Captive Portal section under Subscriber Blocking chapter for details about how to configure redirections.
Associating Quotas to Subscriber IPs
To associate a quota to a subscriber IP address, go to Status->Subscribers->Subscriber Quotas. Click on Add Quota to new Subscriber… It can also be accessed from Configuration->Subscriber Quotas->Subscriber Quotas.
The following example define a time quota as an absolute time:

It is also possible to define the time quota relative to current date and time (+1 month in the example):

To define a volume quota, first define an absolute value (20GB in the example):

Once created, a volume quota can be extended editing the quota and using the option Increment limit by this amount (5 GB in the following example):

Note that the field Current Volume Used informs about the quota already gone. A pie chart on the lower right shows it graphically.
Time and volume quotas can coexist, and in this case the subscriber traffic will be restricted when either of the two become exhausted.
It is also possible to edit the quota and remove its time or volume component pressing the button Remove Time Limit or Remove Volume Limit respectively.
Checking quota state
Status->Subscribers->Subscriber Quotas shows the quotas and, in the case of volume quotas, how much has been consumed already.

In the previous example, there are three volume quotas, and two time quotas (note that month is given before day, so 9/29/2023 is 29thof September 2023). For volume quotas, the volume already consumed is also shown (for example, 10.0.0.3 has a quota of 15 GB and it has consumed 20 MB).
Traffic not subject to quota
It is possible to define some traffic to be excluded fromthe quota (it will not increase quota usage and will not be blocked when quotais exhausted). In this example, some video streaming identified by DPI is associated to a policy not subject to quota.

When RADIUS is used to report quota usage, this traffic free of quota is deducted of the reported volume.
The policy not affected by quota exhaustion has the quota switchset to off:

Quotas managed using REST API
In addition to the GUI, the BQN REST API can be used to manage time and volume quotas.
See REST API reference for more details.
Time Quota
There are two ways to define a time quota:
- As an absolute time: as POSIX time, defined as the number of seconds elapsed since midnight Coordinated Universal Time (UTC) of January 1, 1970. For example, 1672531200 is UTC Sunday, 1 January 20230:00:00. Absolute time is UTC, so convert your local time to UTC when setting the quota.
- As seconds relative to current time: for example, a 3600 second quota will be exhausted an hour from now.
To enable a time quota of one hour:
To extend the quota to two hours from now:
To remove the quota, so the subscriber is no longer subject to a time quota:
Volume Quota
A volume quota grants access for a number of Kbytes of traffic. The BQN convention is that 1 Kbyte is 1000 bytes.
To enable a 1GB volume quota:
To extend the quota adding 500 MB:
To remove the quota, so the subscriber is no longer subject to a volume quota:
Volume and Time Quotas at the same time
To enable a 1GB volume quota and 1 month (whatever happens first):
To extend the volume quota in 500 MB, keeping the time quota unchanged:
To remove both quotas, so the subscriber is no longer subject to them:
Checking quota state
You can also check the quota state through the REST API:
Quotas managed from RADIUS
BQN in RADIUS proxy deployment can handle volume and time quotas. Go to RADIUS chapter for more details.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.