Reading Time: 1 minute, 32 secs

Install FreeRadius on CentOS 7 with DaloRadius for management

I have recently purchased a load of Ubiquiti UniFi equipment, as part of this i have the UniFi USG which in order to deploy a User VPN requires a RADUIS Server for user authentication. This article will run through how to install and set this up.

I will be using FreeRADIUS as this is the most commonly used, it supports most common authentication protocols.

Add MariaDB to the CentOS Repo:

First we need to update our CentOS server and install the required applications:

We must now enable the FreeRADIUS and httpd services to run at boot:

We need to configure MariaDB:

Allow local connections only:

Configure the database to work with freeRADIUS:

Install PHP 7:

We need to add Radius ports to the firewall:

Now we will run Radius in debug mode to make sure it runs correctly:

Import the Radius database scheme:

Create a soft line for SQL:

configure the SQL module and change the database connection:

Change the group for the SQL folder to radiusd:

Installing Daloradius:

Import Daloradius MySQL:

Move to the httpd directory:

change permissions for httpd:

Modify configuration for MySQL:

To make sure everything works restart all services:

Access the web interface:

Default Login:
User: Administrator
Pass: radius


Leave a Comment.