Installation Script for Ubuntu (64 Bit)


#!/bin/bash

clear
getconf LONG_BIT

sqlpass=”radius”

wwwpath=”/var/www”
radhost=”localhost”
raduser=”radius”
myusr_rad=”radius”
mypsw_radius=”radius123″
myusr_cts=”conntrack”
mypsw_cts=”conn123″
httpuser=”www-data”
rmver40=”radiusmanager-4.0.4.tgz”
rmver41=”radiusmanager-4.1.0.tgz”

osver=cat /etc/issue |awk ‘{print $1}’

RM Installation Package Download URL
rmurl=”http://talhaali.byethost13.com/files/rm_related/

if [[ $osver == Ubuntu ]]; then
echo
lsb_release -a
sleep 3
else
exit 1
fi
echo
FILE=”/tmp/out.$$”
GREP=”/bin/grep”
if [ “$(id -u)” != “0” ]; then
echo
exit 1
fi

temp=”temp”

{
if [ ! -d “/temp” ]; then
echo
mkdir /temp
else
echo
echo
fi
}

cd /$temp
rm -fr /temp/radiusmanager.
rm -fr /temp/freeradius.
rm -fr /temp/libltd.
rm -fr /temp/ioncube.
sleep 5
echo
cd /temp
wget -q $rmurl/rm4.txt
{
if [ ! -f /temp/rm4.txt ]; then
echo
exit 0
fi
}
rm -fr /temp/rm4.txt
sleep 6

clear

echo
echo “1. Radius Manager 4.0.4”
echo “2. Radius Manager 4.1.0”
echo
echo -n “Choose an option: [1] ”

read rmver
if [ -z “$rmver” ]; then
rmver=”1″
fi
case $rmver in
echo .
defver=”radiusmanager-4.0.4.tgz”
defverdir=”radiusmanager-4.0.4″
sleep 5
wget $rmurl/$defver
;;

defver=”radiusmanager-4.1.0.tgz”
defverdir=”radiusmanager-4.1.0″
echo .
sleep 5
wget $rmurl/$defver
;;
echo
exit
;;
esac

{
if [ ! -f /$temp/$defver ]; then
echo .
exit 0
fi
}

echo
sleep 5
apt-get update
echo .
sleep 5

apt-get -y install mc wget rcconf make gcc mysql-server mysql-client libmysqlclient15-dev libperl-dev curl php5 php5-mysql php5-cli php5-curl php5-mcrypt php5-gd php5-snmp apache2

sleep 5
cd /$temp
wget www.dmasoftlab.com/cont/download/libltdl3_1.5.26-1ubuntu1_amd64.deb
wget www.dmasoftlab.com/cont/download/libltdl3-dev_1.5.26-1ubuntu1_amd64.deb
dpkg -i libltdl3_1.5.26-1ubuntu1_amd64.deb
dpkg -i libltdl3-dev_1.5.26-1ubuntu1_amd64.deb

echo .
sleep 5
wget www.dmasoftlab.com/cont/download/ioncube_loaders_lin_x86-64.tar.gz
{
if [ ! -f /$temp/ioncube_loaders_lin_x86-64.tar.gz ]; then
echo .
exit 0
fi
}
tar zxvf ioncube_loaders_lin_x86-64.tar.gz
mkdir /usr/local/ioncube
cd /$temp/ioncube
cp -fr * /usr/local/ioncube/

echo .
sleep 5
echo “zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so” >> /etc/php5/apache2/php.ini
echo “zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so” >> /etc/p
hp5/cli/php.ini

cd /$temp
echo .
sleep 5
wget http://www.dmasoftlab.com/cont/download/freeradius-server-2.2.0-dma-patch-2.tar.gz
{
if [ ! -f /$temp/freeradius-server-2.2.0-dma-patch-2.tar.gz ]; then
echo .
exit 0
fi
}
echo .
sleep 5
tar zxvf freeradius-server-2.2.0-dma-patch-2.tar.gz
cd freeradius-server-2.2.0/
./configure
make
make install

radiusd -X
ldconfig

chown $httpuser /usr/local/etc/raddb
chown $httpuser /usr/local/etc/raddb/clients.conf

echo .
sleep 1
mysql -u root -p$sqlpass -e “create database radius”;
mysql -u root -p$sqlpass -e “create database conntrack”;
mysql -u root -p$sqlpass -e “CREATE USER ‘$myusr_rad’@’$radhost’ IDENTIFIED BY ‘$mypsw_radius’;”
mysql -u root -p$sqlpass -e “CREATE USER ‘$myusr_cts’@’$radhost’ IDENTIFIED BY ‘$mypsw_cts’;”
mysql -u root -p$sqlpass -e “GRANT ALL ON radius.* TO radius@$radhost;”
mysql -u root -p$sqlpass -e “GRANT ALL ON conntrack.* TO conntrack@$radhost;”

cd /$temp
tar zxvf $defver
cd /$temp/$defverdir
echo .
sleep 5

echo Copying Radius Manager WEB content to $wwwpath/radiusmanager
cp -fr www/radiusmanager $wwwpath

cp $wwwpath/radiusmanager/config/paypal_cfg.php.dist $wwwpath/radiusmanager/config/paypal_cfg.php
mv $wwwpath/radiusmanager/config/paypal_cfg.php.dist $wwwpath/radiusmanager/config/paypal_cfg.php
mv $wwwpath/radiusmanager/config/netcash_cfg.php.dist $wwwpath/radiusmanager/config/netcash_cfg.php
mv $wwwpath/radiusmanager/config/authorizenet_cfg.php.dist $wwwpath/radiusmanager/config/authorizenet_cfg.php
mv $wwwpath/radiusmanager/config/dps_cfg.php.dist $wwwpath/radiusmanager/config/dps_cfg.php
mv $wwwpath/radiusmanager/config/2co_cfg.php.dist $wwwpath/radiusmanager/config/2co_cfg.php

chown $httpuser $wwwpath/radiusmanager/config
chown $httpuser $wwwpath/radiusmanager/config/system_cfg.php
chown $httpuser $wwwpath/radiusmanager/config/paypal_cfg.php
chown $httpuser $wwwpath/radiusmanager/config/netcash_cfg.php
chown $httpuser $wwwpath/radiusmanager/config/authorizenet_cfg.php
chown $httpuser $wwwpath/radiusmanager/config/dps_cfg.php
chown $httpuser $wwwpath/radiusmanager/config/2co_cfg.php
chown $httpuser $wwwpath/radiusmanager/tftpboot
chmod 600 $wwwpath/radiusmanager/config/system_cfg.php
chmod 600 $wwwpath/radiusmanager/config/paypal_cfg.php
chmod 600 $wwwpath/radiusmanager/config/netcash_cfg.php
chmod 600 $wwwpath/radiusmanager/config/authorizenet_cfg.php
chmod 600 $wwwpath/radiusmanager/config/dps_cfg.php
chmod 600 $wwwpath/radiusmanager/config/2co_cfg.php
chmod 644 $wwwpath/radiusmanager/config/docsis_keyfile
chmod 644 $wwwpath/radiusmanager/config/docsis_template

mkdir /var/www/radiusmanager/tmpimages
chown $httpuser $wwwpath/radiusmanager/tmpimages

chmod 755 bin/rm*
cp -fr bin/rm* /usr/local/bin

cp -fr bin/rootexec /usr/local/sbin
chmod 4755 /usr/local/sbin/rootexec

cp -fr etc/radiusmanager.cfg /etc
chown root /etc/radiusmanager.cfg
chmod 600 /etc/radiusmanager.cfg

cp -fr rc.d/rmpoller /etc/init.d
chown root.root /etc/init.d/rmpoller
chmod 755 /etc/init.d/rmpoller
update-rc.d rmpoller defaults 99

cp -fr rc.d/rmconntrack /etc/init.d
chown root.root /etc/init.d/rmconntrack
chmod 755 /etc/init.d/rmconntrack
update-rc.d rmconntrack defaults 99

chmod 755 rc.d/debian/radiusd
cp -fr rc.d/debian/radiusd /etc/init.d
update-rc.d radiusd defaults 99

cp -fr etc/logrotate.d/radiusd /etc/logrotate.d/radiusd

cp -fr etc/cron/radiusmanager /etc/cron.d/radiusmanager
chmod 644 /etc/cron.d/radiusmanager

echo .
sed -i ‘s/var\/lib\/mysql\/mysql.sock/var\/run\/mysqld\/mysqld.sock/g’ /etc/radiusmanager.cfg
sed -i ‘s/var\/www\/html/var\/www/g’ /etc/radiusmanager.cfg
sed -i ‘s/var\/www\/html/var\/www/g’ /etc/cron.d/radiusmanager
sed -i ‘s/var\/www\/html/var\/www/g’ /var/www/radiusmanager/config/system_cfg.php

chown $httpuser /usr/local/etc/raddb
chown $httpuser /usr/local/etc/raddb/clients.conf

service radiusd start
service apache2 restart
service mysql restart

Advertisements

Installation Script for Ubuntu (32 Bit)


#!/bin/bash

clear
getconf LONG_BIT

sqlpass=”radius”
wwwpath=”/var/www”
radhost=”localhost”
raduser=”radius”
myusr_rad=”radius”
mypsw_radius=”radius123″
myusr_cts=”conntrack”
mypsw_cts=”conn123″
httpuser=”www-data”
rmver40=”radiusmanager-4.0.4.tgz”
rmver41=”radiusmanager-4.1.0.tgz”

osver=cat /etc/issue |awk ‘{print $1}’

rmurl=”http://talhaali.byethost13.com/files/rm_related/

if [[ $osver == Ubuntu ]]; then
echo
lsb_release -a
sleep 3
else
exit 1
fi
echo
FILE=”/tmp/out.$$”
GREP=”/bin/grep”
if [ “$(id -u)” != “0” ]; then
echo
exit 1
fi

temp=”temp”
{
if [ ! -d “/temp” ]; then
echo
mkdir /temp
else
echo
echo
fi
}

cd /$temp
rm -fr /temp/radiusmanager.
rm -fr /temp/freeradius.
rm -fr /temp/libltd.
rm -fr /temp/ioncube.
sleep 5
echo
cd /temp
wget -q $rmurl/rm4.txt
{
if [ ! -f /temp/rm4.txt ]; then
echo
exit 0
fi
}
rm -fr /temp/rm4.txt
sleep 6

clear

echo
echo “1. Radius Manager 4.1.5”
echo “2. Radius Manager 4.1.6”
echo
echo -n “Choose an option: [1]”
if [ -z “$rmver” ]; then
rmver=”1″
fi
case $rmver in

1) echo “Selected RM version is: 4.0.4″
echo .
defver=”radiusmanager-4.0.4.tgz”
defverdir=”radiusmanager-4.0.4″
sleep 5
wget $rmurl/$defver
;;

2) echo “Selected RM version is: 4.1.0″
defver=”radiusmanager-4.1.0.tgz”
defverdir=”radiusmanager-4.1.0″
echo .
sleep 5
wget $rmurl/$defver
;;

*) echo “Invalid selection. Installation aborted”
echo
exit
;;
esac
{
if [ ! -f /$temp/$defver ]; then
echo .
exit 0
fi
}

echo
sleep 5
apt-get update

echo .
sleep 5

apt-get -y install mc wget rcconf make gcc mysql-server mysql-client libmysqlclient15-dev libperl-dev curl php5 php5-mysql php5-cli php5-curl php5-mcrypt php5-gd php5-snmp apache2

sleep 5
cd /$temp
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

echo .
sleep 5
wget http://www.dmasoftlab.com/cont/download/ioncube_loaders_lin_x86.tar.gz
{
if [ ! -f /$temp/ioncube_loaders_lin_x86.tar.gz ]; then
echo .
exit 0
fi
}
tar zxvf ioncube_loaders_lin_x86.tar.gz
mkdir /usr/local/ioncube
cd /$temp/ioncube
cp -fr * /usr/local/ioncube/

echo .
sleep 5
echo “zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so” >> /etc/php5/apache2/php.ini
echo “zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so” >> /etc/php5/cli/php.ini

cd /$temp
echo .
sleep 5
wget http://www.dmasoftlab.com/cont/download/freeradius-server-2.2.0-dma-patch-2.tar.gz
Checking if FREERADIUS is downloaded
{
if [ ! -f /$temp/freeradius-server-2.2.0-dma-patch-2.tar.gz ]; then
echo .
exit 0
fi
}
echo .
sleep 5
tar zxvf freeradius-server-2.2.0-dma-patch-2.tar.gz
cd freeradius-server-2.2.0/
./configure
make
make install
radiusd -X
ldconfig

chown $httpuser /usr/local/etc/raddb
chown $httpuser /usr/local/etc/raddb/clients.conf

echo .
sleep 1
mysql -u root -p$sqlpass -e “create database radius”;
mysql -u root -p$sqlpass -e “create database conntrack”;
mysql -u root -p$sqlpass -e “CREATE USER ‘$myusr_rad’@’$radhost’ IDENTIFIED BY ‘$mypsw_radius’;”
mysql -u root -p$sqlpass -e “CREATE USER ‘$myusr_cts’@’$radhost’ IDENTIFIED BY ‘$mypsw_cts’;”
mysql -u root -p$sqlpass -e “GRANT ALL ON radius.* TO radius@$radhost;”
mysql -u root -p$sqlpass -e “GRANT ALL ON conntrack.* TO conntrack@$radhost;”

cd /$temp
tar zxvf $defver
cd /$temp/$defverdir
echo .
sleep 5

echo Copying Radius Manager WEB content to $wwwpath/radiusmanager
cp -fr www/radiusmanager $wwwpath
cp $wwwpath/radiusmanager/config/paypal_cfg.php.dist $wwwpath/radiusmanager/config/paypal_cfg.php
mv $wwwpath/radiusmanager/config/paypal_cfg.php.dist $wwwpath/radiusmanager/config/paypal_cfg.php
mv $wwwpath/radiusmanager/config/netcash_cfg.php.dist $wwwpath/radiusmanager/config/netcash_cfg.php
mv $wwwpath/radiusmanager/config/authorizenet_cfg.php.dist $wwwpath/radiusmanager/config/authorizenet_cfg.php
mv $wwwpath/radiusmanager/config/dps_cfg.php.dist $wwwpath/radiusmanager/config/dps_cfg.php
mv $wwwpath/radiusmanager/config/2co_cfg.php.dist $wwwpath/radiusmanager/config/2co_cfg.php

chown $httpuser $wwwpath/radiusmanager/config
chown $httpuser $wwwpath/radiusmanager/config/system_cfg.php
chown $httpuser $wwwpath/radiusmanager/config/paypal_cfg.php
chown $httpuser $wwwpath/radiusmanager/config/netcash_cfg.php
chown $httpuser $wwwpath/radiusmanager/config/authorizenet_cfg.php
chown $httpuser $wwwpath/radiusmanager/config/dps_cfg.php
chown $httpuser $wwwpath/radiusmanager/config/2co_cfg.php
chown $httpuser $wwwpath/radiusmanager/tftpboot
chmod 600 $wwwpath/radiusmanager/config/system_cfg.php
chmod 600 $wwwpath/radiusmanager/config/paypal_cfg.php
chmod 600 $wwwpath/radiusmanager/config/netcash_cfg.php
chmod 600 $wwwpath/radiusmanager/config/authorizenet_cfg.php
chmod 600 $wwwpath/radiusmanager/config/dps_cfg.php
chmod 600 $wwwpath/radiusmanager/config/2co_cfg.php
chmod 644 $wwwpath/radiusmanager/config/docsis_keyfile
chmod 644 $wwwpath/radiusmanager/config/docsis_template

mkdir /var/www/radiusmanager/tmpimages
chown $httpuser $wwwpath/radiusmanager/tmpimages
chmod 755 bin/rm*
cp -fr bin/rm* /usr/local/bin
cp -fr bin/rootexec /usr/local/sbin
chmod 4755 /usr/local/sbin/rootexec
cp -fr etc/radiusmanager.cfg /etc
chown root /etc/radiusmanager.cfg
chmod 600 /etc/radiusmanager.cfg
cp -fr rc.d/rmpoller /etc/init.d
chown root.root /etc/init.d/rmpoller
chmod 755 /etc/init.d/rmpoller
update-rc.d rmpoller defaults 99
cp -fr rc.d/rmconntrack /etc/init.d
chown root.root /etc/init.d/rmconntrack
chmod 755 /etc/init.d/rmconntrack
update-rc.d rmconntrack defaults 99
chmod 755 rc.d/debian/radiusd
cp -fr rc.d/debian/radiusd /etc/init.d
update-rc.d radiusd defaults 99
cp -fr etc/logrotate.d/radiusd /etc/logrotate.d/radiusd
cp -fr etc/cron/radiusmanager /etc/cron.d/radiusmanager
chmod 644 /etc/cron.d/radiusmanager

echo .
sed -i ‘s/var\/lib\/mysql\/mysql.sock/var\/run\/mysqld\/mysqld.sock/g’ /etc/radiusmanager.cfg
sed -i ‘s/var\/www\/html/var\/www/g’ /etc/radiusmanager.cfg
sed -i ‘s/var\/www\/html/var\/www/g’ /etc/cron.d/radiusmanager
sed -i ‘s/var\/www\/html/var\/www/g’ /var/www/radiusmanager/config/system_cfg.php

chown $httpuser /usr/local/etc/raddb
chown $httpuser /usr/local/etc/raddb/clients.conf

service radiusd start
service apache2 restart
service mysql restart

Radius Manager Manual Installation For CentOS (32 & 64 Bit)


Checking Linux Version
lsb_release  -a

Checking 32 Bit (or) 64 Bit Operating System
getconf LONG_BIT

Updating System Packages
yum install update

Disabled SELinux in /etc/sysconfig/selinux
vim /etc/sysconfig/selinux
SELINUX=disabled

Installation of EPL Repository
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Installation of Packages & Dependencies
yum install mc wget crontabs vixie-cron make gcc libtool-ltdl curl mysql-server mysql-devel net-snmp net-snmp-utils php php-mysql php-mcrypt php-gd php-snmp php-process ntp sendmail sendmail-cf alpine mutt

Server Install 32 bit glibc
yum install glibc.i386 libgcc_s.so.1

Download & Install Liberary Files
32 Bit Files
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

64 Bit Files
wget http://dmasoftlab.com/cont/download/libltdl3_1.5.26-1ubuntu1_amd64.deb
wget http://dmasoftlab.com/cont/download/libltdl3-dev_1.5.26-1ubuntu1_amd64.deb
dpkg -i libltdl3_1.5.26-1ubuntu1_amd64.deb
dpkg -i libltdl3-dev_1.5.26-1ubuntu1_amd64.deb

Download & Install Ioncube
32 Bit Files
cd /usr/local
wget http://www.dmasoftlab.com/cont/download/ioncube_loaders_lin_x86.tar.gz
tar -xvf ioncube_loaders_lin_x86.tar.gz
cd /ioncube
sudo cp loader-wizard.php /var/www/html

64 Bit Files
cd /usr/local
wget http://www.dmasoftlab.com/cont/download /ioncube_loaders_lin_x86-64.tar.gz
tar -xvf ioncube_loaders_lin_x86-64.tar.gz
cd /ioncube
sudo cp loader-wizard.php /var/www/html

Check PHP Version
php -v

Edit php.ini Configure File & Add Ioncube File extension location
vim  /etc/php.ini
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so

Re-Start httpd Service
service httpd restart
/etc/init.d/httpd restart

Now Check Ioncube Loader file in Web Interface
http://IP-Address/loader-wizard.php
Click on Local Install1

Loader Installed (PHP is Working)2

Download & Installation Free-Radius
wget http://dmasoftlab.com/cont/download/freeradius-server-2.2.0-dma-patch-2.tar.gz
tar -xvf freeradius-server-2.2.0-dma-patch-2.tar.gz
cd freeradius-server-2.2.0

Configure Freeradius
./configure
make
make install

Copy File -lfreeradius-radius-2.2.0 in Makefile
cd   src/modules/rlm_eap
vim MakeFile

(LIBTOOL) –mode=link $(CC) $(LDFLAGS) $(RLM_LDFLAGS) -lfreeradius-radius-2.2.0 -o radeapclient radeapclient.lo $(CLIENTLIBS) $(LIBS) $(OPENSSL_LIBS)

freerad

Configure Free Radius after Copying File to MakeFile
make
make install

radiusd -X
radiusx

ldconfig

Testing Free Radius in Terminal
radiusd -X
13
14

Setting Permissions
chown apache /usr/local/etc/raddb
chown apache /usr/local/etc/raddb/clients.conf

Creating Mysql Database
mysql -u root -p password
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;

Downloading & Installation Radius Manager 4
Radius Manager 4.0.4
wget http://talhaali.byethost13.com/files/rm_related/radiusmanager-4.0.4.tgz

Radius Manager 4.1.0
wget http://talhaali.byethost13.com/files/rm_related/radiusmanager-4.1.0.tgz

tar -xvf radiusmanager-4.0.4.tgz
tar -xvf radiusmanager-4.1.0.tgz
cd radiusmanager-4.0.4
cd radiusmanager-4.1.0

Setting Permissions
chmod 775 ./install
./install

Select Operating System 1 (Redhat, CentOS, Fedora)
1.png

Choose Option Type
2

Choose Option 1 (New Installation)
3

Press Enter
4

Press Enter
5.png

Press Enter
6.png

Press Enter
7

Press Enter
8

Press Enter
9

Press ‘y’ to Continue
10.png

Installation Process is Started
11

Installation is Completed
12

Setting Permissions for Binaries
chmod 775 /usr/local/bin/rmauth
chmod 775 /usr/local/bin/rmacant
chmod 775 /usr/local/bin/rmpoller
chmod 775 /usr/local/bin/rmconntrack

Change Permissions & Owner for /etc/radiusmanager.cfg
chmod 600 /etc/radiusmanager.cfg
chown root.root /etc/radiusmanager.cfg

Change Permissions for tmpimages
chown apache /var/www/html/radiusmanager/tmpimages

Copying Licence Files
Copy Lic.txt & Mod.txt Files to /var/www/html/radiusmanager

Re-Starting httpd Service
service httpd restart

Re-Starting Mysql Service
service mysqld restart

Re-Starting Free Radius Service
service radiusd restart

Admin Login Page
http://IP-Address/radiusmanager/admin.php
Username – admin
Password – 1111

rm-logo

User Login Page
http://IP-Address/radiusmanager/user.php
Username – user
Password – 1111

1

Radius Manager Manual Installation For Ubuntu (32 & 64 Bit)


Checking Linux Version
lsb_release  -a

Checking 32 Bit (or) 64 Bit Operating System
getconf LONG_BIT

Updating System Packages
sudo apt-get update

Installation of Packages & Dependencies
apt-get install mc wget rcconf make gcc mysql-server mysql-client libmysqlclient15-dev libperl-dev curl php5 php5-mysql php5-cli php5-curl php5-mcrypt php5-gd php5-snmp freeradius-mysql apache2 apache2.2-common php5-cli

Download & Install Liberary Files
32 Bit Files
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

64 Bit Files
wget http://dmasoftlab.com/cont/download/libltdl3_1.5.26-1ubuntu1_amd64.deb
wget http://dmasoftlab.com/cont/download/libltdl3-dev_1.5.26-1ubuntu1_amd64.deb
dpkg -i libltdl3_1.5.26-1ubuntu1_amd64.deb
dpkg -i libltdl3-dev_1.5.26-1ubuntu1_amd64.deb

Download & Install Ioncube
32 Bit Files
cd /usr/local
wget http://www.dmasoftlab.com/cont/download/ioncube_loaders_lin_x86.tar.gz
tar -xvf ioncube_loaders_lin_x86.tar.gz
cd /ioncube
sudo cp loader-wizard.php /var/www

64 Bit Files
cd /usr/local
wget http://www.dmasoftlab.com/cont/download/ioncube_loaders_lin_x86-64.tar.gz
tar -xvf ioncube_loaders_lin_x86-64.tar.gz
cd /ioncube
sudo cp loader-wizard.php /var/www

Check PHP Version
php -v

Edit php.ini Configure File & Add Ioncube File extension location
vim  /etc/php5/cli/php.ini
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so
vim /etc/php5/apache2/php.ini
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so

Re-Start Apache2 Service
service apache2 restart
/etc/init.d/apache2 restart

Now Check Ioncube Loader file in Web Interface
http://IP-Address/loader-wizard.php
Click on Local Install1

Loader Installed (PHP is Working)2

Download & Installation Free-Radius
wget http://dmasoftlab.com/cont/download/freeradius-server-2.2.0-dma-patch-2.tar.gz
tar -xvf freeradius-server-2.2.0-dma-patch-2.tar.gz
cd freeradius-server-2.2.0

Configuring Freeradius
./configure
make
make install

Copy File -lfreeradius-radius-2.2.0 in MakeFile
cd  src/modules/rlm_eap
vim MakeFile

(LIBTOOL) –mode=link $(CC) $(LDFLAGS) $(RLM_LDFLAGS) -lfreeradius-radius-2.2.0 -o radeapclient radeapclient.lo $(CLIENTLIBS) $(LIBS) $(OPENSSL_LIBS)

freerad

Configure Free Radius after Copying File to MakeFile
make
make install

radiusd -Xradiusx

ldconfig

Testing Free Radius in Terminal
radiusd -X
13

Testing Free Radius in Terminal
radtest user 1111 localhost 1812 testing123
14

Setting Permissions
chown www-data /usr/local/etc/raddb
chown www-data /usr/local/etc/raddb/clients.conf

Creating Mysql Database
mysql -u root -p password
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;

Downloading & Installation Radius Manager 4
Radius Manager 4.0.4
wget http://talhaali.byethost13.com/files/rm_related/radiusmanager-4.0.4.tgz

Radius Manager 4.1.0
wget http://talhaali.byethost13.com/files/rm_related/radiusmanager-4.1.0.tgz

tar -xvf radiusmanager-4.0.4.tgz
tar -xvf radiusmanager-4.1.0.tgz
cd radiusmanager-4.0.4
cd radiusmanager-4.1.0

Setting Permissions
chmod 775 ./install
./install

Select Operating System 2 (Ubuntu & Debian)
1.png

Choose Option Type
2

Choose Option 1 (New Installation) & Choose Web Root /var/www (Root Path)
3

Press Enter
4

Press Enter
5.png

Press Enter
6.png

Press Enter
7

Press Enter
8

Press Enter
9

Press ‘y’ to Continue
10.png

Installation Process is Started
Should be –> Copying Web Content to /var/www/radiusmanager
11

Installation is Completed
12

Setting Permissions for Binaries
chmod 775 /usr/local/bin/rmauth
chmod 775 /usr/local/bin/rmacant
chmod 775 /usr/local/bin/rmpoller
chmod 775 /usr/local/bin/rmconntrack

Change Permissions & Owner for /etc/radiusmanager.cfg
chmod 600 /etc/radiusmanager.cfg
chown root.root /etc/radiusmanager.cfg

Change Permissions for tmpimages
chown www-data /var/www/radiusmanager/tmpimages

Copying Licence Files
Copy Lic.txt & Mod.txt Files to /var/www/radiusmanager

Re-Starting apache2 Service
service apache2 restart

Re-Starting Mysql Service
service mysql restart

Re-Starting Free Radius Service
service radiusd restart

Radius Manager Admin Login Page
http://IP-Address/radiusmanager/admin.php
Default Username & Password
Username – admin
Password  – 1111

rm-logo

Radius Manager User Login Page
http://IP-Address/radiusmanager/user.php
Default Username & Password
Username – user
Password – 1111

1

Radius Manager Installation Process


Radius Manager

radius-arch

About the RADIUS Protocol
The RADIUS (Remote Authentication Dial-In User Service) protocol is an industry standard protocol for authentication, authorization, and accounting (AAA). Terminal servers or Network Access Server (NAS) use the RADIUS protocol to communicate AAA requests to, and return results from, a database of customer information.

RADIUS Manager uses the RADIUS protocol to provide AAA services in the BRM environment.

Radius Manager Installation Process
Radius Manager Installation Process is as follows

1) Disable SELinux (CentOS & Fedora)
2) Install IonCube Runtime Libraries
3) Build & Configure FreeRadius Server
4) Configure MySQL Database & Credentials
5) Install Radius Manager WEB Components
6) Install Radius Manager Binaries
7) Install & Configure DHCP Server
8) Install DOCSIS Utility
9) Complete Post Installation Steps

 

 

 

 

Radius Manager Configuring Admin Panel


Admin Login Page – (http://Ip-Address/radiusmanager/admin.php)

rm-logo

IN System Category
System Settingshttps://i1.wp.com/www.dmasoftlab.com/cont/images/screenshots/systemsettings.gif

IN Users Category
List Userslist users

Find Usershttps://i0.wp.com/www.dmasoftlab.com/cont/images/screenshots/searchusers.gif

Creating New User (New User Registration)https://i0.wp.com/www.dmasoftlab.com/cont/images/screenshots/newuser.gif

List User Groupslist user groups

Creating New User Groupnew user group

IN Services Category
List Serviceshttps://i1.wp.com/www.dmasoftlab.com/cont/images/screenshots/listservices.gif

Edit Serviceshttps://i2.wp.com/www.dmasoftlab.com/cont/images/screenshots/editservice.gif

Creating New ServicesNew Service

Scheduled ChangesScheduled Changes

Service ChangeService Changes

IN Managers Category
List Managerslist managers

Creating New Managernew manager

new manager1

IN NAS Category
Creating New NASNew nas

Listing NASlist nas

IN Access Point(AP) Category
List Access Point
List Access Point

New Access Pointaccess point

IN CMTS Category
List CMTSlist cmts

New CMTSnew cmts.png

IN IP Pools Category
List IP PoolsList Ip Pools

New IP PoolNew Ip Pool

IN Financial Category
Find Invoicesfind invocies

Generate Postpaid Invoicesgenerate

List Invoiceshttps://i2.wp.com/www.dmasoftlab.com/cont/images/screenshots/listinvoices.gif

IN Card System
Prepaid Card Generatorhttps://i0.wp.com/www.dmasoftlab.com/cont/images/screenshots/cardgen.gif

Card Statisticshttps://i1.wp.com/www.dmasoftlab.com/cont/images/screenshots/cardstats.gif

Find Refilling Cardsrefilling

IN IAS Category
List IAS Userslist users.png

Instant Access ServiceInstant Access

New IASnew ias

IN Reports Category
Online Radius Usersonlineradius

 

Registered Cable Modemonlinedocsis

 

Monthly Traffic Reporthttps://i2.wp.com/www.dmasoftlab.com/cont/images/screenshots/trafrepmonthly.gif

Detailed Traffic Reporthttps://i2.wp.com/www.dmasoftlab.com/cont/images/screenshots/trafrepdetailed.gif

Connection Reporthttps://i1.wp.com/www.dmasoftlab.com/cont/images/screenshots/ctsreport.gif

Authentication Loglog.png

System Informationinformation

System StatisticsStatistics