Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Search 7
Menu
Like
Menu Home Database How To Monitoring Performance Security Tips and Tricks Home How To Install FreeRadius with Web Based Management Daloradius on CentOS/RHEL, Debian, Ubuntu Mar 3, 2013 - 92 days ago admin Visited 6170 times , 27 Visits today
Install FreeRadius with Web Based Management Daloradius on CentOS/RHEL, Debian, Ubuntu
How To 139
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/#
1/11
03/06/13
Overview
FreeRADIUS is the most popular open source RADIUS server[2] and the most widely deployed RADIUS server in the world.[2] It supports all common authentication protocols, and the server comes with a PHPbased web user administration tool called dialupadmin . It is the basis for many commercial RADIUS products and services, such as embedded systems, RADIUS appliances that support Network Access Control, and WiMAX. It supplies the AAA needs of many Fortune-500 companies, telcos, and Tier 1 ISPs. It is also widely used in the academic community, including eduroam. The server is fast, featurerich, modular, and scalable. The currently shipping stable version is 2.2.0.
Install FreeRadius with Web Based Management Daloradius on CentOS/RHEL, Debian, Ubuntu
On CentOS/RHEL 5
#y u mi n s t a l lf r e e r a d i u s 2f r e e r a d i u s 2 m y s q lf r e e r a d i u s 2 u t i l sm y s q l s e r v e rm y s q lp h p m y s q l p h pp h p p e a r
On CentOS/RHEL 6
#y u mi n s t a l lf r e e r a d i u sf r e e r a d i u s m y s q lf r e e r a d i u s u t i l sm y s q l s e r v e rm y s q lp h p m y s q l p h pp h p p e a r
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/#
2/11
03/06/13
Ubuntu or Debian
#a p t g e ti n s t a l lf r e e r a d i u sf r e e r a d i u s m y s q lf r e e r a d i u s u t i l sm y s q l s e r v e rm y s q l c h k c o n f i gp h p 5p h p 5 m y s q l
#c h k c o n f i gm y s q l do n #/ e t c / i n i t . d / m y s q l ds t a r t
#m y s q lu r o o tp
Next create the database and grant all privileges to user radius
#m y s q lu r a d i u spr a d i u s</ e t c / r a d d b / s q l / m y s q l / s c h e m a . s q l
On Debian/Ubuntu
#m y s q lu r a d i u spr a d i u s</ e t c / f r e e r a d i u s / s q l / m y s q l / s c h e m a . s q l
Now edit the sql.conf file and populate the database credentials. On CentOS/RHEL
#v i/ e t c / r a d d b / s q l . c o n f
On Debian, Ubuntu
#v i/ e t c / f r e e r a d i u s / s q l . c o n f
03/06/13
#v i/ e t c / r a d d b / r a d i u s d . c o n f
On Debian, Ubuntu
#v i/ e t c / f r e e r a d i u s / r a d i u s d . c o n f
$ I N C L U D Es q l . c o n f
Next edit /etc/raddb/sites-available/default and uncomment the line 177 containing sql under the authorize {} section and line 406 sql under the accounting {} section, also uncomment sql under session {} line 454. On CentOS/RHEL
#v i/ e t c / r a d d b / s i t e s a v a i l a b l e / d e f a u l t
On Debian, Ubuntu
#v i/ e t c / f r e e r a d i u s / s i t e s a v a i l a b l e / d e f a u l t
Now, edit /etc/raddb/sites-available/inner-tunnel and uncomment the line 131 and line 255 containing sql under authorize {} and under session {}. On CentOS/RHEL
#v i/ e t c / r a d d b / s i t e s a v a i l a b l e / i n n e r t u n n e l
On Debian, Ubuntu
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/#
4/11
03/06/13
#v i/ e t c / f r e e r a d i u s / s i t e s a v a i l a b l e / i n n e r t u n n e l
#v i/ e t c / r a d d b / c l i e n t s . c o n f
On Debian, Ubuntu
#v i/ e t c / f r e e r a d i u s / c l i e n t s . c o n f
To add NAS clients that will use RADIUS server for AAA you have to add the following to the clients.conf file. Append a block such as this, replace 192.168.209.1 with the ip address of your NAS client that will use FreeRADIUS for AAA.
c l i e n t1 9 2 . 1 6 8 . 2 0 9 . 1{ s e c r e t=9 1 9 8 2 6 5 0 d 8 9 n a s t y p e=o t h e r }
#s e r v i c er a d i u s dr e s t a r t
On Ubuntu, Debian
#s e r v i c ef r e e r a d i u sr e s t a r t
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
#r a d i u s dX
On Ubuntu, Debian
#f r e e r a d i u sX
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/#
5/11
03/06/13
Update: Radius use MySQL to store usernames and passwords. To manage radius server daloradius is a good choice. To install daloradius
#w g e th t t p : / / s o u r c e f o r g e . n e t / p r o j e c t s / d a l o r a d i u s / f i l e s / l a t e s t / d o w n l o a d ? s o u r c e = f i l e s #t a rz x v fd a l o r a d i u s 0 . 9 9 . t a r . g z #m y s q lu r a d i u spr a d i u s<d a l o r a d i u s 0 . 9 9 / c o n t r i b / d b / f r 2 m y s q l d a l o r a d i u s a n d f r e e r a d i u s . s q l
#v id a l o r a d i u s 0 . 9 9 / l i b r a r y / d a l o r a d i u s . c o n f . p h p
$ c o n f i g V a l u e s [ ' D A L O R A D I U S _ V E R S I O N ' ]=' 0 . 9 9 ' ; $ c o n f i g V a l u e s [ ' F R E E R A D I U S _ V E R S I O N ' ]=' 2 ' ; $ c o n f i g V a l u e s [ ' C O N F I G _ D B _ E N G I N E ' ]=' m y s q l ' ; $ c o n f i g V a l u e s [ ' C O N F I G _ D B _ H O S T ' ]=' l o c a l h o s t ' ; $ c o n f i g V a l u e s [ ' C O N F I G _ D B _ U S E R ' ]=' r a d i u s ' ; $ c o n f i g V a l u e s [ ' C O N F I G _ D B _ P A S S ' ]=' r a d i u s @ 1 2 3 ' ; $ c o n f i g V a l u e s [ ' C O N F I G _ D B _ N A M E ' ]=' r a d i u s ' ;
#m vd a l o r a d i u s 0 . 9 9/ v a r / w w w / d a l o r a d i u s
On CentOS/RHEL
#m vd a l o r a d i u s 0 . 9 9/ v a r / w w w / h t m l / d a l o r a d i u s
Point your browser to http://ip-address-or-hostname/daloradius Login using Username administrator Password radius You can add new groups and users to the database and manage the radius server.
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/#
6/11
03/06/13
admin
Previous postHow to repair and optimise MySQL databases OpenVPN with FreeRadius on CentOS/RHEL 5 or 6 Part 1
Next postInstall
Related Articles
27 days agoVisualize log files using gltail on CentOS RHEL Fedora Debian Ubuntu 30 days agoperform cron jobs redundancy using rcron on centos rhel debian ubuntu fedora 32 days agoVisualize logs using logstalgia on CentOS RHEL Fedora Debian Ubuntu 37 days agoInstall and Configure Open vSwitch on CentOS RHEL Fedora 47 days agoCreate mysql backup using mylvmbackup on CentOS RHEL Debian Ubuntu 47 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 found the 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
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 7/11
03/06/13
admin Thanks for the heads up!!! May 25, 2013 Reply
2. hazarder Hi people! I was just in the middle of the same installation It 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 be done just via user/pass, on any device. Suggestions? May 28, 2013 Reply
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/#
8/11
03/06/13
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!!
Enter your primary email address to get our free newsletter.
You can leave the list at any time. Removal instructions are included in each message.
Powered by WPNewsman
Popular Posts
03/06/13
Back to top
Search
Catagories
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 10/11
03/06/13
Database (16) How To (139) Monitoring (40) Performance (5) Security (18) Tips and Tricks (7) uncategorized (7)
Archives
May 2013 April 2013 March 2013 February 2013 January 2013 December 2012 November 2012 October 2012 September 2012 August 2012 July 2012 June 2012 2013 LinuxDrops. All Rights Reserved.
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/#
11/11