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:
- Under the
sites-available
directory inside the FreeRADIUS configuration directory, create a file calledhappy_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" } } # April Fools' Day prank - Rickroll everyone update reply { WISPr-Redirection-URL...