Configuring DaloRadius as a FreeRadius frontend

Documentation on DaloRadius as a web frontend is pretty sparse at best. So here is a guide on how to fully configure both on Ubuntu 12.04 with Dalo Radius 0.9.9.

We start by updating the Ubuntu server and adding the needed dependencies:

admin@radius-server:~$ sudo apt-get update
admin@radius-server:~$ sudo apt-get upgrade
admin@radius-server:~$ sudo apt-get install mysql-server php5-gd php-pear php-db freeradius freeradius-mysql apache2 php5 php5-mysql
admin@radius-server:~$ sudo apt-get install phpmyadmin   (optional)

Now we have a Ubuntu Server with MySQL, FreeRadius, Apache, and PHP with the appropriate PHP Plugins. Be sure that when it asks you for the MySQL ROOT password, you write it down! you are going to need it for later.

Next we download the DaloRadius source code and unzip then install.

Navigate here and download it onto your server:

I am going to assume you saved it into your home folder and the file name is: daloradius-0.9-9.tar.gz

admin@radius-server:~$ tar zxvf daloradius-0.9-9.tar.gz
admin@radius-server:~$ mv daloradius-0.9-9 daloradius
admin@radius-server:~$ sudo cp daloradius /var/www -R
admin@radius-server:~$ sudo chown www-data:www-data /var/www/daloradius -R
admin@radius-server:~$ sudo chmod 644 /var/www/daloradius/library/daloradius.conf.php

If everything went good, next we create the DaloRadius Database:

admin@radius-server:~$ cd /var/www/daloradius/contrib/db/
admin@radius-server:~$ mysql -u root -p -e “CREATE DATABASE radius;”
admin@radius-server:~$ mysql -u root -p radius < fr2-mysql-daloradius-and-freeradius.sql

This next part is the meat of the configuration.

First, we need to modify DaloRadius to integrate with the FreeRadius configuration

admin@radius-server:~$ cd /var/www/daloradius/library/
admin@radius-server:~$ sudo nano -w daloradius.conf.php

Alter the directives in DaloRadius to look like the following:

$configValues[‘FREERADIUS_VERSION’] = ‘2’;
$configValues[‘CONFIG_DB_PASS’] = ‘password’;
$configValues[‘CONFIG_DB_TBL_RADUSERGROUP’] = ‘radusergroup’;

Next we need to configure the FreeRadius installation to utilize the SQL Database (DaloRadius DB ‘radius‘) for Radius Auth. This is how DaloRadius and FreeRadius “talk”.

By Default there is NO SQL integration in FreeRadius.

Begin by modifying /etc/freeradius/radiusd.conf

admin@radius-server:~$ nano /etc/freeradius/radiusd.conf

Do the following to the file:

UNcomment line 683: $INCLUDE sql.conf
UNcomment line 695: $INCLUDE sql/mysql/counter.conf

Next modify /etc/freeradius/sites-available/default

admin@radius-server:~$ nano /etc/freeradius/sites-available/default

Comment out ‘files’ on line 152 : ###files
UNcomment ‘sql’ on 159 : sql

Finally modify /etc/freeradius/sql.conf

admin@radius-server:~$ nano /etc/freeradius/sql.conf

and do the following:

SET login = “Sqlusername”
SET password = “SQLPASSWORD”
UNCOMMENT LINE 100 : readclients = yes

 Wrap this up by giving FreeRadius a restart:

admin@radius-server:~$ service freeradius restart

If everything worked properly,  you should now be able to browse to the web interface and set up the remainder to completion at http://radius-server/daloradius

From here, simply add your Servers and Users into DaloRadius and set your Radius authenticator to use your new Radius Server.


Thoughts? Comments? Reply here!

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: