How to Install FreeRADIUS on EndeavourOS Latest

FreeRADIUS is a popular open-source RADIUS (Remote Authentication Dial-In User Service) server used for authentication, authorization, and accounting. In this tutorial, we will learn how to install FreeRADIUS on EndeavourOS latest.

Prerequisites

Before starting the installation process, it is important to make sure that you have:

Installation

To install FreeRADIUS on EndeavourOS, follow these steps:

Step 1: Update the System Packages

Firstly, it is important to make sure that the system packages are up-to-date. Use the following command to update the system packages:

$ sudo pacman -Syu

Step 2: Install FreeRADIUS

Next, use the following command to install the FreeRADIUS package:

$ sudo pacman -S freeradius

Step 3: Configure FreeRADIUS

Once the installation is complete, we need to configure FreeRADIUS. The configuration file for FreeRADIUS is located at /etc/freeradius/.

Basic Configuration

To start, we will configure the basic settings. Open the radiusd.conf file using your preferred text editor:

$ sudo nano /etc/freeradius/radiusd.conf

In the radiusd.conf file, uncomment the line # bind_address = * by removing the # in front of it. Then, change the IP address to the address of the network interface that you want FreeRADIUS to listen on. Save and exit the file.

Clients Configuration

Next, we need to configure the clients who will be accessing the RADIUS server. Open the clients.conf file using your preferred text editor:

$ sudo nano /etc/freeradius/clients.conf

Add the following configuration block:

client <client-name> {
  ipaddr = <client-ip-address>
  secret = <client-secret>
}

Replace <client-name> with a unique name for the client and <client-ip-address> with its IP address. The <client-secret> is a shared secret between the client and the server that is used for authentication. Save and exit the file.

Step 4: Test FreeRADIUS

Finally, we need to test whether FreeRADIUS is working correctly. Use the following command to start FreeRADIUS in debugging mode:

$ sudo radiusd -X

This will start the RADIUS server in debugging mode, which will display all the messages being sent and received.

Now, use a RADIUS client tool such as radtest or freeradius-utils to test the server:

$ echo "User-Name=testuser,User-Password=testpass" | radtest testuser testpass localhost 0 testing123

If the server is working correctly, you should see the response Access-Accept in the debug output.

Conclusion

In this tutorial, we learned how to install and configure FreeRADIUS on EndeavourOS latest. With FreeRADIUS, you can now set up a secure RADIUS server for authentication, authorization, and accounting.

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!