Anda di halaman 1dari 11

03/06/13

Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu

Search 7

Menu

Like

about 6 us contact us Privacy Policy Terms and Conditions 6 LinuxDrops


Tw eet

Every small drop counts StumbleUpon Submit

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

Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu

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

Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu

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

Start the MySQL instance

#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

Next we need to create the radius database, so execute

#m y s q lu r o o tp

Next create the database and grant all privileges to user radius

m y s q l >C R E A T ED A T A B A S Er a d i u s ; m y s q l >G R A N TA L LO Nr a d i u s . *T Or a d i u s @ l o c a l h o s tI D E N T I F I E DB Y" r a d i u s @ 1 2 3 " ; m y s q l >f l u s hp r i v i l e g e s ; m y s q l >e x i t

Now we need to build the schema for radius database On CentOS/RHEL

#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

Enter your mysql database details you just created


linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 3/11

03/06/13

Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu

#C o n n e c t i o ni n f o : s e r v e r=" l o c a l h o s t " p o r t=3 3 0 6 l o g i n=" r a d i u s " p a s s w o r d=" r a d i u s @ 1 2 3 " #D a t a b a s et a b l ec o n f i g u r a t i o nf o re v e r y t h i n ge x c e p tO r a c l e r a d i u s _ d b=" r a d i u s "

Next open /etc/raddb/radiusd.conf On CentOS/RHEL

#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

Uncomment Line 700 to include sql.conf

$ 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

Install FreeRadius with Daloradius on CentOS/RHEL, 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 / i n n e r t u n n e l

Open up /etc/raddb/clients.conf On CentOS/RHEL

#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 }

Restart FreeRADIUS for the new configuration to take effect. On CentOS/RHEL

#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

Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu

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

Next open the daloradius.conf.php

#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

Add the database username, password and db name.

$ 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 ' ;

Move daloradius to the web root directory On Debian, Ubuntu

#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

Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu

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

Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu

# 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 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

What do you think?


Name required Email required Website

linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/#

8/11

03/06/13

Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu

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.

First Name Email Subscribe

You can leave the list at any time. Removal instructions are included in each message.

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


linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 9/11

03/06/13

Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu

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

Specialized Server Lift


Specialized server handling device, safely lift servers 602254-1557 by ServerLift on YouTube

Back to top
Search

Privacy Policy Terms and Conditions

Catagories
linuxdrops.com/install-freeradius-with-web-based-management-daloradius-on-centosrhel-debian-ubuntu/# 10/11

03/06/13

Install FreeRadius with Daloradius on CentOS/RHEL, Debian, Ubuntu

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

Anda mungkin juga menyukai