On this page
Katoolin is a script that helps to install Kali Linux tools on your Linux distribution of choice. For those of us who like to use penetration testing tools provided by Kali Linux development team can effectively do that on their preferred Linux distribution by using Katoolin.
FreeRADIUS is a free and open-source client/server protocol that provides centralized network authentication on systems. It is a high-performance and feature-rich RADIUS server ships with both server and client, development libraries and RADIUS related utilities. RADIUS allows you to maintain user-profiles and track usage for billing from the central server. It provides support for various databases, including, OpenLDAP, MySQL, Redis, Microsoft AD, Apache Cassandra, PostgreSQL, etc.
daloRADIUS is a web-based application for managing RADIUS server. It is an advanced web-based application for managing hotspots and ISP deployments. It is written in PHP and JavaScript and supports MySQL, PostgreSQL, SQLite, MsSQL as a database backend. It comes with a rich set of features such as, Access Control Lists, graphical reporting, billing engine, graphical reporting, and accounting, create, delete and edit users, create, delete and edit HotSpot, Create, delete and edit NAS, and much more.
FreeRADIUS works as the back-end while daloRADIUS works as the front-end.
In this tutorial, I will explain step by step how to install FreeRADIUS server and Daloradius web client on Ubuntu 18.04 LTS.
Requirements
- A server running Ubuntu 18.04.
- A root password is set up on your server.
Getting Started
First, update your system's package to the latest version with the following command:
Once all the packages are updated, restart your system to apply all the configuration changes.
Install LAMP Server
First, you will need to install Apache, MariaDB, PHP and other required packages to your system. You can install all of them with the following command:
Once all the packages are installed, you can proceed to the next step.
Configure Database for FreeRADIUS
By default, MariaDB is not secured. So you will need to secure it first. You can secure it with the following command:
Answer all the questions as shown below:
Next, you will need to create a database and user for FreeRADIUS. To do so, log in to MariaDB shell with the following command:
Enter your root password when prompt then create a database and user with the following command:
Next, flush the privileges and exit from the MariaDB shell with the following command:
Once you have finished, you can proceed to the next step.
Install FreeRADIUS
By default, FreeRADIUS is available in the Ubuntu 18.04 default repository. You can install it with the following command:
Once installed, import the freeradius MySQL database schema with the following command:
Provide your radius database user password when prompt and hit Enter to import the database schema.
Next, you will need to create a symbolic link for sql module. You can do it with the following command:
Next, log in to MariaDB shell and check the created tables with the following command:
Enter your root password when prompt. Once login, change the database to radiusdb with the following command:
Next, list the created tables using the following command:
You should see the following output:
Next, exit from the MariaDB shell with the following command:
Next, you will need to define your database connection details in freeradius SQL module. You can do it by editing /etc/freeradius/3.0/mods-enabled/sql file:
Make the following changes as per your database:
Save and close the file, when you are finished. Then, change the ownership of /etc/freeradius/3.0/mods-enabled/sql with the following command:
Finally, restart freeradius service to apply all the configuration changes:
You can also verify the freeradius status with the following command:
You should see the following output:
Once you have finished, you can proceed to the next step.
Install daloRADIUS
Next, you will need to install daloRADIUS to manage FreeRADIUS from the web browser.
First, download the latest version of daloRADIUS from the Git repository with the following command:
Once downloaded, unzip the downloaded file with the following command:
Next, move the extracted directory to the Apache web root directory with the following command:
Next, import daloRADIUS mysql tables to radiusdb with the following command:
Next, give proper permission to the daloradius directory with the following command:
Next, open daloradius.conf.php file and define the database connection details:
Make the following changes that match your database:
Save and close the file. Then, restart freeradius and apache service with the following command:
You can also check the status of Apache web service with the following command:
You should see the following command:
Once you have done, you can proceed to the next step.
Access daloRADIUS Web Interface
FreeRADIUS and daloRADIUS are now installed and configured. It's time to access daloRADIUS web interface. To access the web inetrface, open your web browser and type the URL http://your-server-ip/daloradius/login.php. You will be redirected to the daloRADIUS login page:
Now, provide default username and password as administrator / radius, and click on the Login button. You should see the daloRADIUS default dashboard in the following page:
Congratulations! you have successfully installed and configured FreeRADIUS and daloRADIUS on your Ubuntu 18.04 server. For more information, you can visit the official documentation at https://github.com/lirantal/daloradius. Feel free to ask me if you have any questions.