Installing DMA Freeradius on Ubuntu
Update the server.
# sudo apt-get
update
Install apache in the server.
# sudo apt-get
install apache2
Install mysql in the server.
# sudo apt-get
install mysql-server libapache2-mod-auth-mysql php5-mysql
mysql-client
During the installation, MySQL will
ask you to set a root password.
Install php in th server
# sudo apt-get
install php5 libapache2-mod-php5 php5-mcrypt php5-mysql php5-cli
php5-curl php5-gd php5-snmp
Install libraries and dependencies
# sudo apt-get
install build-essential binutils
# sudo apt-get
install libtool libssl-dev openssl
# sudo apt-get
install libmcrypt-dev libstdc++6-4.6-dev
# sudo apt-get
install libmysqlclient-dev
# sudo apt-get
install snmp libsnmp-dev
# sudo apt-get
install libgdbm-dev
# sudo apt-get
install mc wget rcconf make gcc
Download and install libtool 1.x
from http://www.dmasoftlab.com/downloads
# wget
http://www.dmasoftlab.com/cont/download/libltdl3_1.5.24-1ubuntu1_i386.deb
# wget
http://www.dmasoftlab.com/cont/download/libltdl3-dev_1.5.24-1ubuntu1_i386.deb
# dpkg -i
libltdl3_1.5.24-1ubuntu1_i386.deb
# dpkg -i
libltdl3-dev_1.5.24-1ubuntu1_i386.deb
Installation of ioncube in the
server
Copy and untar the ionCube runtime
libraries to /usr/local/ioncube
Add the appropriate ionCube loader to
your php.ini like given below
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.2.so
set the correct PHP version in the
zend_extension line.
Check php -v for verification . You can
see ionCube PHP Loader version displayed .
# sudo apache2ctl
restart
Download Freeradius from DMA
Softlabs
# wget
http://dmasoftlab.com/cont/download/freeradius-server-2.1.8-dmamod
3.tar.gz
Extract Freeradius
# tar zxfv
freeradius-server-2.1.8-dmamod-3.tar.gz
Change directory to Freeradius and
Configure it
# cd
freeradius-server-2.1.8
Create the make file
# ./configure
Before the make step do the below
given steps;
Now open
freeradius-server-2.1.8/src/modules/rlm_eap/Makefile
in any text editor and add -lfreeradius-radius-2.1.8 to it:
Locate the entry below..
radeapclient: radeapclient.lo
$(CLIENTLIBS) $(LIBTOOL) –mode=link $(CC) $(LDFLAGS) $(RLM_LDFLAGS)
-o radeapclient radeapclient.lo $(CLIENTLIBS) $(LIBS) $(OPENSSL_LIBS)
and change it to..
radeapclient: radeapclient.lo
$(CLIENTLIBS) $(LIBTOOL) –mode=link $(CC) $(LDFLAGS) $(RLM_LDFLAGS)
-o radeapclient radeapclient.lo $(CLIENTLIBS)
/yourfolder/freeradius-server-2.1.8/src/lib/.libs/libfreeradius-radius-2.1.8.so
$(LIBS) $(OPENSSL_LIBS)
Compile it by issuing “Make“
# sudo make
# make install &&
ldconfig
To run the freeradius,
# radiusd -X
Set the correct ownership on FreeRadius
configuration files
# chown www-data
/usr/local/etc/raddb
# chown www-data
/usr/local/etc/raddb/clients.conf
Verify the MySQL credentials in
/usr/local/etc/raddb/sql.conf
Create MySQL databases and credential.
# mysql -u root
-ppassword
>CREATE
DATABASE radius;
>CREATE
DATABASE conntrack;
>CREATE USER
‘radius’@’localhost’ IDENTIFIED BY ‘radius123’;
>CREATE USER
‘conntrack’@’localhost’ IDENTIFIED BY ‘conn123’;
>GRANT ALL ON
radius.* TO radius@localhost;
>GRANT ALL ON
conntrack.* TO conntrack@localhost;
Now the databases are ready to use.
Installation procedure of Radius
Manager
Purchase Radius Manager
Decompress the Radius Manager tar
archive
invoke the installer script, but first
change its permission to 755
# chmod 755
install.sh
# ./install.sh
Now the install script will ask few
questions . . . Select answers as per your local design.
For example:
Select the Operating System
2
(For Ubuntu)
Select Installation type:
1
(New Installation)
WWW root path:
Press Enter to select the Default ,
which is /var/www
Radius Database host:
Press Enter to select the Default ,
which is localhost
Radius Database username:
Press Enter to select the Default ,
which is radius
Radius Database password:
Press Enter to select the Default ,
which is radius123
CTS Database host:
Press Enter to select the Default ,
which is localhost
CTS database username:
Press Enter to select the Default ,
which is conntrack
CTS database password:
Press Enter to select the Default ,
which is conn123
Freeradius UNIX User:
Press Enter to select the Default ,
which is root
Httpd Unix User:
Press Enter to select the Default ,
which is www-data
Create rmpoller service:
Press Enter to select the Default ,
which is y (yes)
create rmconntrack service:
Press Enter to select the Default ,
which is y (yes)
Backup Radius database:
Press Enter to select the Default ,
which is y (yes)
Now it will ask if you want to start
the installation
Press y and press ENTER to continue the
installation.
and at the end you will INSTALLATION
COMPLETE.
Now copy the two license files (that
you receive from DMASOFTLAB) in /var/www/radiusmanager
lic.txt
mode.txt
Now access the admin panel from your
browser
http://yourip/radiusmanager/admin.php
using the default login details.
Post a Comment