Time for action – creating two virtual servers
In this exercise we will create two very simple virtual servers. The one will accept all authentication requests while the other will reject all authentication requests.
- Under the
sites-available
directory inside the FreeRADIUS configuration directory, create a file calledalways_accept
with the following content:server always_accept { authorize { update control { Auth-Type := "Accept" } } }
- Under the
sites-available
directory inside the FreeRADIUS configuration directory, create a file calledalways_reject
with the following content:server always_reject { authorize { update control { Auth-Type := "Reject" } } }
- Ensure you are in the FreeRADIUS configuration directory. Enable these virtual servers by creating symbolic links from the
sites-enabled
directory to the files just created in thesites-available
directory:# ln -s ../sites-available...