This is an old revision of the document!
Installing FreeRADIUS on Ubuntu 24.04
Introduction
- Install FreeRADIUS and MySQL module.
sudo apt-get -y install libdatetime-perl libdbd-mysql-perl libdigest-hmac-perl libdatetime-format-rfc3339-perl eapoltest sudo apt-get -y install freeradius freeradius-mysql # Answer yes to the question to install these packages with their dependencies # Please note that the installation of this package generates some things that can take a lot of time on slower computers.
- Activating and starting FreeRADIUS
sudo systemctl enable freeradius sudo systemctl start freeradius sudo systemctl status freeradius
Configure FreeRADIUS
- Proceed as follows to configure FreeRADIUS to work with RADIUSdesk
# Stop the service if it is already running sudo systemctl stop freeradius # Backup the original FreeRADIUSdirectory sudo mv /etc/freeradius /etc/freeradius.orig # Extract the RADIUSdesk modified FreeRADIUS directory sudo tar xzf /var/www/html/cake4/rd_cake/setup/radius/freeradius-radiusdesk.tar.gz --directory /etc sudo chown -R freerad. /etc/freeradius/3.0/ sudo mkdir /var/run/freeradius sudo chown freerad: /var/run/freeradius
- Configure the site-wide shared secret. This is the value used by ALL dynamic clients.
sudo vi /etc/freeradius/3.0/sites-enabled/dynamic-clients
- Locate this part of the file and change FreeRADIUS-Client-Secret to the value you want to use.
# Echo the IP address of the client. FreeRADIUS-Client-IP-Address = "%{Packet-Src-IP-Address}" # require_message_authenticator FreeRADIUS-Client-Require-MA = no # secret FreeRADIUS-Client-Secret = "testing123" # shortname FreeRADIUS-Client-Shortname = "%{Packet-Src-IP-Address}"
- After you have completed these steps, restart FreeRADIUS.
sudo systemctl restart freeradius sudo systemctl status freeradius
Next steps
- You will need to make a few small adjustments to your environment