Configure FreeRADIUS to use MySql on Linux.

Damiano Ciro
CodeX
Published in
7 min readMay 13, 2022

--

Photo by Markus Spiske on Unsplash

For work reasons, I had to configure FreeRADIUS on a Linux Server (both Ubuntu and Red Hat) and it took me a lot of time to get all the info here and there to accomplish this task. So I would like to write an introductory guide with all the information I collected to ease the job of who should accomplish the same task.

What is FreeRADIUS?

FreeRADIUS is an open-source implementation of RADIUS, an IETF protocol for AAA (Authorisation, Authentication, and Accounting). More information can be found on the FreeRADIUS website, where you can find the whole documentation as well as a quick start guide to quick start your RADIUS server.

Installation.

The installation and configuration of FreeRADIUS is slightly different between Linux Debian-based and Centos-based. This is mainly due to the different folders where you can find the configuration files.

The following guide is written for RHEL8 and Ubuntu 20.04.3 LTS. For every step, you find the instruction both for Ubuntu and Red Hat (when is not specified, it means that the instruction is the same on both environments).

#Installation on Ubuntu
apt-get install freeradius freeradius-mysql freeradius-utils
#Installation on RedHat
yum install freeradius…

--

--

Damiano Ciro
CodeX

I am a DevOps Engineer with passion for cartography and geospatial analysis.