How to install the daloRADIUS web-based interface for FreeRADIUS

For easier administration of FreeRADIUS, install the web-based GUI daloRADIUS.

"data-credit =" Image: iStockphoto / Suwat Rujimethakul "rel =" noopener noreferrer nofollow ">   Technicians using the laptop while analyzing the server in the server room

Image: iStockphoto / Suwat Rujimethakul

FreeRADIUS is a high performance open source RADIUS server that provides centralized network authentication for desktops and servers. With RADIUS, you can maintain user profiles and track usage for various purposes. However, managing FreeRADIUS alone can be a daunting task for many administrators.

Fortunately, there is a web-based GUI, daloRADIUS, which makes the administration of FreeRADIUS much easier.

I will guide you through the process of installing FreeRADIUS and daloRADIUS on the Ubuntu Server 18.04 platform.

SEE: 10 free alternatives to Microsoft Word and Excel (download TechRepublic)

What you will need

The only things you will need to make this work are:

  • running instance of Ubuntu Server 18.04
  • A user account with sudo privileges

How to install dependencies

The first thing you should do is install the necessary dependencies. Although Ubuntu Server ships with Apache installed, there are many related dependencies that must be added.

Open a terminal window and issue the command:

  sudo apt-get install apache2 mariadb-server php libapache2-mod-php php-mail php-mail-mime php-mysql php-gd php-common php- pear php-db php-mbstring php-xml php-curl unzip wget -y 

How to secure and configure the database

Once the installation is complete, let's ensure the installation of the database with the command :

  sudo mysql_secure_installation [19659022] First you will be asked to create a password for the MariaDB administrator user. Do that and then answer Y (yes) to the remaining questions. When this is completed, a new database is created. First log in to the database prompt with the command: 

  sudo mysql -u root -p 

Create the database and the user with the following commands:

  CREATE DATABASE radiusdb;
GRANT EVERYTHING ON radiusdb. * To radius @ localhost IDENTIFIED BY "PASSWORD"; 

Where PASSWORD is a secure and unique password.

Finally, remove the privileges and exit the database with the commands:

  FLUSH PRIVILEGES;
get out; 

Configure the details of the database in the appropriate file with the command:

  sudo nano /etc/freeradius/3.0/mods-enabled/sql[19659022font>Asegúresedeeditarelarchivoparareflejarlossiguientescambios:[19659018] sql {
driver = "rlm_sql_mysql"
dialect = "mysql"

# Connection information:
server = "localhost"
port = 3306
login = "radio"
password = "PASSWORD"

# Database table configuration for everything except Oracle
radius_db = "radiusdb"
}

read_clients = yes
client_table = "nas" 

Where PASSWORD is the same password that you created for the radius database user.

Save and close the file.

How to install FreeRADIUS

Now we can install the FreeRADIUS server. This is done with the following command:

  sudo apt-get install freeradius freeradius-mysql freeradius-utils -y 

When the installation is finished, switch to the root user with the su -iy command and then import the base scheme of data with the command:

  mysql -u root -p radiusdb  exit outside the root of the command output 

Create a symbolic link for the sql module with the command:

  sudo ln -s /etc/freeradius/3.0/mods -available / sql /etc/freeradius/3.0/mods-enabled/[19659022▪Changethepropertyfilefilesfilessqlconloscommands:[19659018[sudo chgrp -h freerad /etc/freeradius/3.0/mods-available/sql
sudo chown -R freerad: freerad /etc/freeradius/3.0/mods-enabled/sql[19659022▪RestartFreeRADIUSconelcomando:[19659018methodologysudosystemctlrestartfreeradius

How to install daloRADIUS

Download the latest version of daloRADIUS command:

  wget https://github.com/lirantal/daloradius/archive/master. : 

  sudo mv daloradius-master / var / www / html / daloradius 

Import the daloRAIUS mysql tables into the FreeRADIUS database with the commands:

  cd / var / www / html / daloradius
sudo mysql -u root -p radiusdb <contrib / db / fr2-mysql-daloradius-and-freeradius.sql
sudo mysql -u root -p radiusdb <contrib / db / mysql-daloradius.sql 

Change the permissions of the daloradius directory with the commands:

  sudo chown -R www-data: www-data / var / www / html / daloradius /
sudo chmod 664 /var/www/html/daloradius/library/daloradius.conf.php[19659022▪EditeelarfivodeconfiguracióndaloRADIUSconelcomando:[19659018verallsudonano/var/www/html/daloradius/library/daloradius90f23thatyourconfigurationfilereflectsthefollowingchanges:

Where PASSWORD is the password used for the user of the radio database.

  $ configValues ​​['DALORADIUS_VERSION'] = & # 39; 1.1-1 & # 39 ;;
$ configValues ​​['DALORADIUS_DATE'] = & # 39; Jul 28, 2019 & # 39 ;;
$ configValues ​​['FREERADIUS_VERSION'] = & # 39; 2 & # 39 ;;
$ configValues ​​['CONFIG_DB_ENGINE'] = & # 39; mysqli & # 39 ;;
$ configValues ​​['CONFIG_DB_HOST'] = & # 39; localhost & # 39 ;;
$ configValues ​​['CONFIG_DB_PORT'] = & # 39; 3306 & # 39 ;;
$ configValues ​​['CONFIG_DB_USER'] = & # 39; radio & # 39 ;;
$ configValues ​​['CONFIG_DB_PASS'] =; PASSWORD;
$ configValues ​​['CONFIG_DB_NAME'] = & # 39; radiusdb & # 39 ;; 

Restart FreeRADIUS and Apaches services with the commands:

  sudo systemctl restart freeradius
sudo systemctl restart apache2 

You can now access the web-based GUI daloRADIUS by pointing a browser to http: //SERVER_IP/daloradius/login.php (where SERVER_IP is the IP address of the hosting server). On the login screen ( Figure A ), use the default administrator / radio credentials.

Figure A

The daloRADIUS login screen.

"data-credit =" http://www.techrepublic.com/ "rel =" noopener noreferrer nofollow ">   daloa.jpg daloajpg [19659070font>ThedaloRADIUSdesignhomescreen

You can now start managing FreeRADIUS through the easy-to-use daloRADIUS web-based GUI.

See also

For More Updates Check out Blog, Windows Softwares Drivers, Antivirus, Ms Office, Graphic Design Don't Forget to Look Our Facebook Page Get Into Pc like us & follow on Twitter- @getinpc

Please Note: This content is provided and hosted by a 3rd party server. Sometimes these servers may include advertisements. igetintopc.com does not host or upload this material and is not responsible for the content.