Time for action – using a virtual server

Follow these steps to make a virtual server available:

  1. Edit the radiusd.conf file in the FreeRADIUS configuration directory and add the following to the listen section that contains type = auth (there are two listen sections, one has type = auth, the other has type = acct):
    virtual_server = always_accept.
  2. Restart FreeRADIUS in debug mode.
  3. Try to authenticate any user with any password. Your request should be accepted every time.
  4. Observe the debug output when FreeRADIUS accepts the request.
  5. Edit the radiusd.conf file again, but this time change the virtual_server directive from virtual_server = always_accept to virtual_server = always_reject.
  6. Restart FreeRADIUS in debug mode.
  7. Try to authenticate specifying any user ...

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.