Time for action – incorporating the Hotspot Happy Hour policy

We will use a virtual server to incorporate the Hotspot Happy Hour policy. This will then be added to the access point in the canteen's client definition. When we apply the virtual server to a client definition it makes it easy to use the same virtual server with other clients also.

Enabling the Happy Hour virtual server

Follow these steps to enable the server:

  1. Under the sites-available directory inside the FreeRADIUS configuration directory, create a file called happy_hour with the following content:
    server happy_hour { authorize { files # If user not present allow them free access # between 13:00 and 14:00 if(noop){ update control { Login-Time := 'Al1300-1400' Auth-Type := "Accept" } ...

Get FreeRADIUS Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.