Friday, July 9, 2010

Radius Manager Installation


Radius manager installation

Radius Manager key features:
  • The most affordable, user friendly RADIUS billing solution
  • Web based Adminstration Control Panel and User Control Panel
  • Available in 15 languages
  • Support for prepaid, postpaid, mac-only and prepaid card accounts
  • Integrated prepaid card generator
  • Accept payments online with PayPal (CC processing and PayPal Express checkout)
  • Mikrotik, Cisco, StarOS, ChilliSpot NAS support
  • Instant access services (purchase coupons online)
  • Self registering of users, fully automatized system
  • User authentication (PPPoE, Hotspot, PPtP and L2tP) and traffic accounting
  • Data rate limitation for PPP and Hotspot users, auto disconnecting users upon reaching their limits
  • Burst mode support with priorities
  • UNIX account synchronization (mailboxes), setup disk quotas in one step
  • Connection Tracking System (logging the source / destination ip and port, user name, time, protocol)
  • Complete financial accounting module, fully customizable invoice form
  • Full multilingual support (UTF-8), customizable design and language

Which operating systems are supported?

Almost every Linux system is supported, which meet the following conditions:
Apache http server installed
PHP version 4 or better with MySql support configured
MySql version 5 or better

Our clients successfully installed Radius Manager on various systems, including Redhat 8-9, Fedora Core 2-9, Suse 9, Slackware, Debian 4, FreeBSD 6.2, Mandrake, Ubuntu 7 etc. On older system it is necessary to upgrade the components: MySql, PHP etc.

We always encourage our customers to use Fedora Core 5-10 system. It is the most complete Linux system available nowdays and the installation of Radius Manager takes only 20-40 minutes on it (including the installation of missing packages using YUM). You can get Fedora Core via the following URL:

Fedora Project

Download:

http://rapidshare.com/files/312229936/Radius-Manager-2-www.admins.ir.zip



Step 1: License


Apply for 1 mount free license


Step 2: install PHP

su -
yum install php


Step 3:SeLinux

Disable SeLinux


Selinux mode
• Permissive - switch the SELinux kernel into a mode where every operation is allowed. Operations that would be denied are allowed and a message is logged identifying that it would be denied. The mechanism that defines labels for files which are being created/changed is still active.
• Disabled - SELinux is completely switched off in the kernel. This allows all operations to be permitted, and also disables the process which decides what to label files & processes with.

Temporarily switch off enforcement
You can switch the system into permissive mode with the following command:
echo 0 >/selinux/enforce

Permanently Permissive
The above will switch off enforcement temporarily - until you reboot the system. If you want the system to always start in permissive mode, then here is how you do it.
In Fedora Core and RedHat Enterprise, edit /etc/selinux/config and you will see some lines like this:

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
... just change SELINUX=enforcing to SELINUX=permissive, and you're done. Reboot if you want to prove it.
For the other Linuxes which don't have the /etc/selinux/config file, you just need to edit the kernel boot line, usually in /boot/grub/grub.conf if you're using the GRUB boot loader. On the kernel line, add enforcing=0 at the end. For example,

title SE-Linux Test System
root (hd0,0)
kernel /boot/vmlinuz-2.4.20-selinux-2003040709 ro root=/dev/hda1 nousb enforcing=0
#initrd /boot/initrd-2.4.20-selinux-2003040709.img

Fully Disabling SELinux
Fully disabling SELinux goes one step further than just switching into permissive mode. Disabling will completely disable all SELinux functions including file and process labelling.
In Fedora Core and RedHat Enterprise, edit /etc/selinux/config and change the SELINUX line to SELINUX=disabled:

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted



Step 4: Install Mysql
yum -y install mysql mysql-server



Step 5 install c/c++ compiler
yum install gcc


Step 6: install Mysql development library
[root@localhost ~]# yum install mysql-devel.i386






Step 7: Install Curl, PHP-my

[root@localhost]# yum install curl
[root@localhost]# yum install php-mysql
[root@localhost]# yum install compat-libstdc++-33
[root@localhost]# yum install libtool-ltdl-devel




Step 8 Copy and Test Ion Cube
Radius Manager uses ionCube to achieve the best performance and to protect the intellectual
property of the software developers. You can download ionCube runtime libraries for various systems

via the following URL’s:

http://www.ioncube.com/loaders.php
http://www.dmasoftlab.com/downloads

A loader file is required to read PHP scripts encoded with the ionCube Encoder. There are two
ways to use this file, requiring different installation methods: run-time loading and via the php.ini file.

You can find the specific loaders for your system on the ionCube site. Always use the version which is
compatible with your software environment
Theory of operation of ionCube system
The loader is a .so file which PHP uses to decode scripts encoded with the ionCube Encoder.
When the web server first launches PHP, a configuration file called php.ini is read. It is
possible to add a line to this file to instruct PHP to load the ionCube Loader.
Troubleshooting the run-time loading
If encoded files fail to run, you can test this by using the helper PHP script ioncube-loaderhelper.
php that's included in the loader download archive.
1. Copy the ioncube-encoded-file.php PHP scripts to your http root (on Redhat-based
system it is /var/www/html).
2. Access the ioncube-encoded-file.php script using your favorite WWW browser:
http://yourhost/ioncube-encoded-file.php
3. If You can see the message “This file has been successfully decoded. ionCube Loaders
are correctly installed”. It means, You have successfully installed ionCube runtime on your
host and it is ready to use.
Manual installation of loaders in the php.ini file
Before installing, you need to know:
1. Which operating system are You using?
2. Which PHP version are You using?
3. Is your PHP build threaded or not?
4. Where is your php.ini file located?
The “Server System Information” link in the ionCube helper script will give you the
required informations.


[root@localhost /]# cp /usr/local/ioncube/ioncube-encoded-file.php /var/www/html/

go to this website

http://10.1.2.12/ioncube-encoded-file.php

result: This file has been successfully decoded. ionCube Loaders are correctly installed.



Step 9 Install Free radius

cp -pr /home/admin/Desktop/freeradius-server-2.1.8/ /

cd freeradius-server-2.1.8/

./configure
make
make install
radiused -X






Step 10 : setup mysql

1 restart mysql
[root@localhost /]# service mysqld restart

2. set pass
root@localhost /]# mysqladmin -u root password aaa

3. connect to mysql
[root@localhost /]# mysql -u root -p

4. mysql> CREATE DATABASE radius;
Query OK, 1 row affected (0.00 sec)

mysql> CREATE DATABASE conntrack;
Query OK, 1 row affected (0.00 sec)

mysql> CREATE USER 'radius'@'localhost' IDENTIFIED BY 'radius123';
Query OK, 0 rows affected (0.00 sec)

mysql> CREATE USER 'conntrack'@'localhost' IDENTIFIED BY 'conn123';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL ON radius.* TO radius@localhost;
Query OK, 0 rows affected (0.01 sec)

mysql> GRANT ALL ON conntrack.* TO conntrack@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| conntrack |
| mysql |
| radius |
| test |
+--------------------+
5 rows in set (0.00 sec)



step 11 install radius manager


[root@localhost admin]# cp -pr /home/admin/Desktop/radiusmanager-3.7.0-rel/ /


[root@localhost /]# cd radiusmanager-3.7.0-rel/
[root@localhost radiusmanager-3.7.0-rel]# chmod 755 install.sh
[root@localhost radiusmanager-3.7.0-rel]# ./install.sh
Radius Manager installer
Copyright 2004-2010, DMA Softlab LLC
All right reserved.

(Use CTRL+C to abort any time)

Select installation type:

1. New installation
2. Upgrade old system
3. Exit

Choose an option: [1] 1
Selected installation method: NEW INSTALLATION
WWW root path: [/var/www/html]
RADIUS database host: [localhost]
RADIUS database username: [radius]
RADIUS database password: [radius123]
CTS database host: [localhost]
CTS database username: [conntrack]
CTS database password: [conn123]
Freeradius UNIX user: [root]
Httpd UNIX user: [apache]
Create rmpoller service: [y]
Create rmconntrack service: [y]
Create database backup: [y]

WARNING! If You continue You will overwrite the existing RADIUS database!

Are You sure to start the installation? [n] y
Starting installation process...

Copying web content to /var/www/html/radiusmanager
Copying binaries to /usr/local/bin
Copying rootexec to /usr/local/sbin
Copying radiusmanager.cfg to /etc
Creating database backup
Creating mysql tables
Creating rmpoller service
Creating rmconntrack service
Copying logrotate script

Configuration files are:
/var/www/html/radiusmanager/config/system_cfg.php
/var/www/html/radiusmanager/config/paypal_cfg.php
/var/www/html/radiusmanager/config/netcash_cfg.php
/var/www/html/radiusmanager/config/authorizenet_cfg.php
/etc/radiusmanager.cfg

Installation finished!



step 12 Automate the task

1--------------------------------------------------------------------------
The password has to match the predefined one in system_cfg.php.
By default, the password is 12345, which must match the password defined in system_cfg.php.

[root@localhost /]# gedit /var/www/html/radiusmanager/config/system_cfg.php

define("rootexec_psw", "12345"); // rootexec password

2--------------------------------------------------------------------------

gedit /etc/crontab

02 0 * * * root /usr/bin/php /var/www/html/radiusmanager/rmscheduler.php 12345





Step 13 install the licence

/var/www/html/radiusmanager
copy the files



Step 14 set memory limitation for php config file

go to
[root@localhost /]# gedit /etc/httpd/conf.d/php.conf
add : php_value memory_limit 500M



step 15 install phpmyadmin


yum install phpmyadmin
service httpd restart

add permission in phpmyadmin
[root@localhost /]# gedit /etc/httpd/conf.d/phpMyAdmin.conf
allowfrom ipaddress

3 comments:

  1. Radius Manager is a commercial program available for free download. Radius billing solution for Mikrotik, pfsense systems, which supports traffic limitation, date expiration, prepaid, postpaid accounts and prepaid cards etc. Thanks a lot...

    ReplyDelete
  2. can i connect radius manager server with 2 Mikrotik servers on different isp ?

    ReplyDelete
  3. Radius Manager? Try to download it to visp.net.

    ReplyDelete