Lab – accounting using a FreeRADIUS server

The installation of the FreeRADIUS server is unquestionably a challenge. Several steps have to be strictly followed in order to have a working configuration. To do this, we will divide the installation into the following steps:

  • Installing packages and dependencies
  • Installing FreeRADIUS and radius Client
  • Configuring OpenSIPS

Package and dependencies

To install the RADIUS components, we need to install some libraries and software packages:

  1. For FreeRADIUS, install the following packages:
    apt-get install freeradius libradiusclient-ng2 libradiusclient-ng-dev
    
  2. Compile OpenSIPS to use RADIUS.
  3. Go to the source code and run the configuration command, make menuconfig in /usr/src/opensips_21:

    Select Configure Compile Options ...

Get Building Telephony Systems with OpenSIPS - Second Edition 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.