Install FreeRadius With Daloradius on CentOS_RHEL, Debian, Ubuntu
Transcript of Install FreeRadius With Daloradius on CentOS_RHEL, Debian, Ubuntu
-
03/06/13 Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 1/11
Search
Menu
about uscontact usPrivacy PolicyTerms and Conditions
LinuxDrops
Every small drop counts
Menu
HomeDatabaseHow ToMonitoringPerformanceSecurityTips and Tricks
Home How To Install FreeRadius with Web Based Management Daloradius on CentOS/RHEL,Debian, UbuntuMar 3, 2013 - 92 days ago admin Visited 6170 times , 27 Visits today
Install FreeRadius with Web BasedManagement Daloradius on CentOS/RHEL,Debian, Ubuntu
How To 139
6
TweetTweet
6
StumbleUponSubmit
7
Like
-
03/06/13 Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 2/11
Overview
FreeRADIUS is the most popular open source RADIUS server[2] and the most widely deployed RADIUSserver in the world.[2] It supports all common authentication protocols, and the server comes with a PHP-based web user administration tool called dialupadmin . It is the basis for many commercial RADIUSproducts and services, such as embedded systems, RADIUS appliances that support Network AccessControl, and WiMAX. It supplies the AAA needs of many Fortune-500 companies, telcos, and Tier 1ISPs. It is also widely used in the academic community, including eduroam. The server is fast, feature-rich, modular, and scalable. The currently shipping stable version is 2.2.0.
Install FreeRadius with Web Based Management Daloradiuson CentOS/RHEL, Debian, Ubuntu
On CentOS/RHEL 5
On CentOS/RHEL 6
# yum install freeradius2 freeradius2-mysql freeradius2-utils mysql-server mysql php-mysql
php php-pear
# yum install freeradius freeradius-mysql freeradius-utils mysql-server mysql php-mysql
php php-pear
-
03/06/13 Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 3/11
Ubuntu or Debian
Start the MySQL instance
Next we need to create the radius database, so execute
Next create the database and grant all privileges to user radius
Now we need to build the schema for radius database
On CentOS/RHEL
On Debian/Ubuntu
Now edit the sql.conf file and populate the database credentials.
On CentOS/RHEL
On Debian, Ubuntu
Enter your mysql database details you just created
# apt-get install freeradius freeradius-mysql freeradius-utils mysql-server mysql
chkconfig php5 php5-mysql
# chkconfig mysqld on
# /etc/init.d/mysqld start
# mysql -uroot -p
mysql> CREATE DATABASE radius;
mysql> GRANT ALL ON radius.* TO radius@localhost IDENTIFIED BY "radius@123";
mysql> flush privileges;
mysql> exit
# mysql -uradius -p radius < /etc/raddb/sql/mysql/schema.sql
# mysql -uradius -p radius < /etc/freeradius/sql/mysql/schema.sql
# vi /etc/raddb/sql.conf
# vi /etc/freeradius/sql.conf
-
03/06/13 Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 4/11
Next open /etc/raddb/radiusd.conf
On CentOS/RHEL
On Debian, Ubuntu
Uncomment Line 700 to include sql.conf
Next edit /etc/raddb/sites-available/default and uncomment the line 177 containing sql under theauthorize {} section and line 406 sql under the accounting {} section, also uncomment sql undersession {} line 454.
On CentOS/RHEL
On Debian, Ubuntu
Now, edit /etc/raddb/sites-available/inner-tunnel and uncomment the line 131 and line 255 containing sqlunder authorize {} and under session {}.
On CentOS/RHEL
On Debian, Ubuntu
# Connection info:
server = "localhost"
port = 3306
login = "radius"
password = "radius@123"
# Database table configuration for everything except Oracle
radius_db = "radius"
# vi /etc/raddb/radiusd.conf
# vi /etc/freeradius/radiusd.conf
$INCLUDE sql.conf
# vi /etc/raddb/sites-available/default
# vi /etc/freeradius/sites-available/default
# vi /etc/raddb/sites-available/inner-tunnel
-
03/06/13 Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 5/11
Open up /etc/raddb/clients.conf
On CentOS/RHEL
On Debian, Ubuntu
To add NAS clients that will use RADIUS server for AAA you have to add the following to the clients.conffile. Append a block such as this, replace 192.168.209.1 with the ip address of your NAS client that willuse FreeRADIUS for AAA.
Restart FreeRADIUS for the new configuration to take effect.
On CentOS/RHEL
On Ubuntu, Debian
If you encounter any problems you can run FreeRADIUS in debug mode to find any authentication issues.To run FreeRADIUS in debug mode execute
On CentOS/RHEL
On Ubuntu, Debian
# vi /etc/freeradius/sites-available/inner-tunnel
# vi /etc/raddb/clients.conf
# vi /etc/freeradius/clients.conf
client 192.168.209.1 {
secret = 91982650d89
nastype = other
}
# service radiusd restart
# service freeradius restart
# radiusd -X
# freeradius -X
-
03/06/13 Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 6/11
Update:
Radius use MySQL to store usernames and passwords. To manage radius server daloradius is a goodchoice. To install daloradius
Next open the daloradius.conf.php
Add the database username, password and db name.
Move daloradius to the web root directoryOn Debian, Ubuntu
On CentOS/RHEL
Point your browser to http://ip-address-or-hostname/daloradius
Login using
Username administratorPassword radius
You can add new groups and users to the database and manage the radius server.
# wget http://sourceforge.net/projects/daloradius/files/latest/download?source=files
# tar zxvf daloradius-0.9-9.tar.gz
# mysql -uradius -p radius < daloradius-0.9-9/contrib/db/fr2-mysql-daloradius-and-
freeradius.sql
# vi daloradius-0.9-9/library/daloradius.conf.php
$configValues['DALORADIUS_VERSION'] = '0.9-9';
$configValues['FREERADIUS_VERSION'] = '2';
$configValues['CONFIG_DB_ENGINE'] = 'mysql';
$configValues['CONFIG_DB_HOST'] = 'localhost';
$configValues['CONFIG_DB_USER'] = 'radius';
$configValues['CONFIG_DB_PASS'] = 'radius@123';
$configValues['CONFIG_DB_NAME'] = 'radius';
# mv daloradius-0.9-9 /var/www/daloradius
# mv daloradius-0.9-9 /var/www/html/daloradius
-
03/06/13 Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 7/11
admin
Previous postHow to repair and optimise MySQL databases Next postInstallOpenVPN with FreeRadius on CentOS/RHEL 5 or 6 Part 1
Related Articles
27 days agoVisualize log files using gltail on CentOS RHEL Fedora Debian Ubuntu30 days agoperform cron jobs redundancy using rcron on centos rhel debian ubuntu fedora32 days agoVisualize logs using logstalgia on CentOS RHEL Fedora Debian Ubuntu37 days agoInstall and Configure Open vSwitch on CentOS RHEL Fedora47 days agoCreate mysql backup using mylvmbackup on CentOS RHEL Debian Ubuntu47 days agoHow to enable RPMForge Repository on RHEL/CentOS 6/5/4
3 comments
1.
nhad
I had an Error 500 (internal) after following the steps above. Checking /var/log/http/error_log I foundthe following error:
PHP Warning: include_once(): Failed opening DB.php for inclusions.
This error popped up after logging in to http://ip-address/daloradius
The following steps fixed this problem:
# yum install php-pear
once installed, run:
# pear install DB
Restart httpd
-
03/06/13 Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 8/11
# service httpd restart
May 24, 2013
Reply
admin
Thanks for the heads up!!!
May 25, 2013
Reply
2.
hazarder
Hi people!
I was just in the middle of the same installationIt is great howto.
But
Ipad/Iphone/Linux register to wifi great.
What about Windows 7/8, Android phone, Nokia Symbian phone?
I found some howtos regarding importing certificates. But this is not acceptable. Auth should bedone just via user/pass, on any device.
Suggestions?
May 28, 2013
Reply
What do you think?
Name required Email required Website
-
03/06/13 Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 9/11
Submit
Notify me of followup comments via e-mail. You can also subscribe without commenting.
We cant offer you sweets (duh) but you can have a crisp newsletter for free!!
Powered by WPNewsman
Popular Posts
75 days ago 33 Comments Installing NDOUTILS on Cen
228 days ago 21 Comments How to install a centraliz
117 days ago 19 Comments Install EJBCA enterprise c
Enter your primary email address to get our free newsletter.
First Name
Email
Subscribe
You can leave the list at any time. Removal instructions are included in each message.
-
03/06/13 Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 10/11
51 days ago 17 Comments Install Postfix with Cyrus
138 days ago 13 Comments Install webacula bacula ba
153 days ago 9 Comments Install Google Picasa on U
61 days ago 8 Comments Install RabbitVCS svn, git
82 days ago 7 Comments Use Two-step verification
24 days ago 7 Comments Install jboss 7.1.1 with j
11 days ago 7 Comments Install Nagios 3.5.0 on De
Back to top
Search
Privacy PolicyTerms and Conditions
Catagories
Specialized Server LiftSpecialized Server Lift
Specialized server handling device, safely lift servers 602-Specialized server handling device, safely lift servers 602-
254-1557254-1557
by by ServerLiftServerLift on YouTube on YouTube
-
03/06/13 Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 11/11
Database (16)How To (139)Monitoring (40)Performance (5)Security (18)Tips and Tricks (7)uncategorized (7)
Archives
May 2013April 2013March 2013February 2013January 2013December 2012November 2012October 2012September 2012August 2012July 2012June 2012
2013 LinuxDrops. All Rights Reserved.