Menu

Install Radius Manager 4 in CentOS 7 

DMA Radius Manager billing system
Overview

DMA Radius Manager is a easy to use administration system for Mikrotik, Cisco, StarOS, Chillispot, DD-WRT, pfSense NAS devices and DOCSIS CMTS. It provides centralized authentication, accounting and billing functions.

Feature overview:

  • RADIUS and DOCSIS account support
  • Traffic accounting (RADIUS)
  • Prepaid and postpaid billing, invoicing
  • Linux mailbox account synchronization
  • Supporting multiple NAS, CMTS and AP devices
  • Payment tracking
  • Financial reports
  • Prepaid card system
  • Instant Access Service system (IAS)
  • Online payment gateway support (PayPal etc.)
  • Connection Tracking System (CTS)
  • Wireless and DOCSIS signal monitoring
  • Account self registration option
  • Automatic expired account disconnection (RADIUS, DOCSIS)

Initial Prerequisites:
Update: Some users are facing yum repo issues after installing epel. To solve that:
1. nano /etc/yum.repos.d/epel.repo
2. Replace https with http.
3. Save and exit.
4. yum repolist. Verify installation is successful.
4. Issue yum update

 Steps to install Radius Manager 4 in CentOS 7

  1. After you clean install CentOS 7 with proper NIC MAC Address configured, install nano for editing the configuration files.
yum install update
yum install nano

  1. Disable SELinux by editing the following and changing SELINUX=disabled

nano /etc/sysconfig/selinux
3. Stop and disable CentOS 7 firewall. If you want to use firewall then you need proper configuration for allowing radius requests and reply messages.
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
4. Install EPEL Repo.
rpm -ivh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

5.Install all other dependencies.
yum install mc wget crontabs make gcc libtool-ltdl curl mysql-devel net-snmp net-snmp-utils php php-mysql php-gd php-snmp php-process ntp sendmail sendmail-cf alpine mutt mariadb-server mariadb php-mcrypt cronie wget phpmyadmin net-tools psmisc
6.Install libraries
yum install glibc.i686 libgcc_s.so.1
7.Start and configure MariaDB (replacement from MySQL) services.
systemctl start mariadb.service
 systemctl enable mariadb.service
 mysql_secure_installation
8.Start httpd.

systemctl start httpd.service
 systemctl enable httpd.service
9.Allow phpmyadmin access.
nano /etc/httpd/conf.d/phpMyAdmin.conf




After That
============

Comment out the <Directory “/usr/share/phpmyadmin”> stanza using ‘#’
Then add:
<Directory /usr/share/phpMyAdmin/>
Options none
AllowOverride Limit
Require all granted
</Directory>
Save and exit


10.Change authentication of phpmyadmin.
nano /etc/phpMyAdmin/config.inc.php


After That
change the authentication in phpMyAdmin from cookie to http – $cfg[‘Servers’][$i][‘auth_type’] = ‘http’;
11.Check php version.

php -v
12.Download ioncube loaders.

wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
13.Extract the ioncube package.
tar -xvzf ioncube_loaders_lin_x86-64.tar.gz
14.Move in to the ioncube directory and copy the loader based on your php version to the required php modules folder and assign a permission of 777 to the ioncube file.

cd ioncube
mv ioncube_loader_lin_5.4.so  /usr/lib64/php/modules/
chmod 777 /usr/lib64/php/modules/ioncube_loader_lin_5.4.so
15.Find the location of your php.ini file.
php -i | grep "Loaded Configuration File"
16.Edit and add ioncube loader location in the PHP configuration file.
nano /etc/php.ini
 Add after [PHP]:
 zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.4.so


17.Restart httpd service.
service httpd restart
18.Check and verify ioncube installation.
php -v
19.Download & install Free Radius.
wget http://www.dmasoftlab.com/cont/download/freeradius-server-2.2.0-dma-patch-2.tar.gz
tar -xvzf freeradius-server-2.2.0-dma-patch-2.tar.gz
cd freeradius-server-2.2.0
./configure
make 
make install
20.Verify freeradius installation by issuing:
radiusd -X
It may fail first time. Issue again, then you will get a message Ready to process.

21 .In case you need to kill the above process find the process id and then issue kill command specifying the process id.
ps ax | grep radius --> Note the pid
kill [pid]
22. Move into MariaDB and create the required DB, users etc.
mysql -u root -p
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;
23. Download and install radius manager 4.1.6 & proceed to install license files. Change the file locations.
wget https://dl.dropboxusercontent.com/u/xxxxx/radiusmanager-4.1.6.tar
tar -xvf radiusmanager-4.1.6.tar
cd radiusmanager-4.1.6
chmod 755 install.sh
./install.sh
cd /var/www/html/radiusmanager
wget https://dl.dropboxusercontent.com/u/xxxxx/mod.txt
wget https://dl.dropboxusercontent.com/u/xxxxx/lic.txt
24 .Open your browser and go to:http://192.168.0.220/radiusmanager/admin.php
25.  Installation is successful and you can now login.
Defaut Username - admin, and Password - 1111 (FOR Administrator Login)
Default User - User, and Password - 1111 (FOR User Login)

26. In case you get blank page, here are the possibilities:
(a) Php memory limit.
(b) Invalid license files.
(c) Permission error for ioncube loaders.
(d) Incompatible ioncube loaders.
27. Apache error log is located @ /etc/httpd/logs/error_log
Apache access log is located @ /etc/httpd/logs/access_log
Check those files for probable errors.

About Author:


I am a Linux Administrator and Security Expert with this site i can help lot's of people about linux knowladge and as per security expert i also intersted about hacking related news.TwitterFacebook

Next
Newer Post
Previous
Older Post

0 comments:

Post a Comment

 
Top