Limiting the usage of a user
As stated at the start of this chapter, we can use accounting data for capacity planning. The rest of this chapter will cover a scenario where we limit the daily usage of a user based on existing accounting data for the specified user.
30 minutes per day in total
Isaac's WISP is flying again and he has been approached by the local pizzeria to provide Internet access for their customers. Each customer will get 30 minutes free Internet with every pizza they purchase. This free Internet must be valid for one day only and should expire at 22:00 hrs the same day when the pizza was bought. Isaac uses a combination of Coova Chilli and Mikrotik captive portals for his WISP.
How FreeRADIUS can help
During the introduction to the RADIUS protocol we mentioned that a RADIUS server cannot impose limitations on a user. Although a RADIUS server will return AVPs to indicate certain limitations, it is the responsibility of the NAS to impose them.
Common limitations are data...