FreeRADIUS is a widely used open-source RADIUS server that provides various authentication and accounting services, such as Wi-Fi, dial-up, and VPN network access control. If you want to install FreeRADIUS on your Fedora Server, follow these simple steps.
Before installing FreeRADIUS, make sure that you have the following prerequisites:
Open the Terminal on your Fedora Server.
Update the package repository index and the installed packages by running the following command:
$ sudo dnf update -y
$ sudo dnf install freeradius -y
$ sudo systemctl start radiusd
$ sudo systemctl status radiusd
If the service is running correctly, you will see the 'active (running)' status message.
$ sudo cp /etc/raddb/radiusd.conf /etc/raddb/radiusd.conf.orig
$ sudo nano /etc/raddb/radiusd.conf
Uncomment the line that starts with '# $INCLUDE clients.conf' to activate the 'clients.conf' configuration file. Save and close the file.
Edit the 'clients.conf' file by running the following command:
$ sudo nano /etc/raddb/clients.conf
client 192.168.1.100 {
secret = mysecretkey
shortname = myhostname
}
Make sure to replace 'mysecretkey' with a secret of your choice.
Save and close the 'clients.conf' file.
Restart the FreeRADIUS service to apply the changes by running the following command:
$ sudo systemctl restart radiusd
$ sudo radtest test password 192.168.1.100 0 mysecretkey
If the authentication is successful, you will see the 'Access-Accept' message.
$ sudo radacct -f /var/log/radius/radacct/192.168.1.100/detail-$(date +%Y%m%d)
In this tutorial, you learned how to install and configure FreeRADIUS on Fedora Server Latest. You also learned how to test the authentication and accounting functionality of the FreeRADIUS server.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!