UPDATE DMASOFTLAB RadiusManager in Centos 7

Linux Varie

Per fare l’upgrade di DMASOFTLAB RadiusManager da Centos 6 a Centos 7 seguire le seguenti istruzioni

Installare una nuova macchina Centos 7 Minimal

Eseguire
yum update -y
yum -y install nano

Disabilitare selinux
nano /etc/selinux/config
Cambia
SELINUX=enforcing
in
SELINUX=disabled
salva ed esci e riavvia la macchina
Disabilita Firewall
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld

Installa le varie librerie di supporto
rpm -ivh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-13.noarch.rpm
yum -y install mc wget crontabs make gcc libtool-ltdl curl mysql-devel php php-mysql php-gd php-snmp php-process ntp alpine mariadb-server mariadb php-mcrypt cronie wget net-tools psmiscyum -y install glibc.i686 libgcc_s.so.1
systemctl start mariadb.service
systemctl enable mariadb.service

Configura Mysql ricordati di inserire la stessa password di root che hai sulla macchina originale
mysql_secure_installation

Adesso abilita Apache
systemctl start httpd.service
systemctl enable httpd.service

Installiamo IONCUBE
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -xvzf ioncube_loaders_lin_x86-64.tar.gz
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

Aggiungiamo IONCUBE in PHP
nano /etc/php.ini
Aggiungi alla fine
zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.4.so
Riavvia Apache
systemctl restart httpd.service
Controlla che ioncube sia correttamente caricato
php -v
Risultato
HP 5.4.16 (cli) (built: Nov 6 2016 00:29:02)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com unconfigured) v6.1.0 (), Copyright (c) 2002-2017, by ionCube Ltd.

Installiamo freeradius e lo compiliamo
cd /temp
wget http://www.dmasoftlab.com/download/freeradius-server-2.2.0-dma-patch-3.tar.gz
tar -xvzf freeradius-server-2.2.0-dma-patch-3.tar.gz
cd freeradius-server-2.2.0
./configure
make
make install
Controlliamo che il radius funzioni correttamente
radiusd -X
Risultato
… adding new socket proxy address * port 60057
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on command file /usr/local/var/run/radiusd/radiusd.sock
Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel
Listening on proxy address * port 1814
Ready to process requests.

Creiamo i database e autorizziamo gli utenti ricordando di utilizzare le stesse password del vecchio Radius Server
mysql -u root -pYOURMYSQLPASS
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;

Adesso installiamo il RADIUS MANAGER recuperando il file di installazione originale nel mio caso la Versione 4.1.6
cd /temp/
tar zxvf radiusmanager-4.1.6.tgz
cd radiusmanager-4.1.6
chmod 755 install.sh
./install.sh

Radius Manager installer script
Copyright 2004-2013, DMA Softlab LLC
All right reserved.

(Use CTRL+C to abort any time)

Select the type of your operating system:

  1. Redhat (CentOS, Fedora Core)
  2. Debian (Ubuntu, Debian)

Choose an option: [1]
Selected operating system is: REDHAT

Select installation type:

  1. New installation
  2. Upgrade

Choose an option: [1]
Selected installation mode: NEW INSTALLATION
WWW root path: [/var/www/html]
RADIUS database host: [localhost]
RADIUS database username: [radius]
RADIUS database password: [radius123] RICORDATI LA TUA VECCHIA PASSQORD
CTS database host: [localhost]
CTS database username: [conntrack]
CTS database password: [conn123] RICORDATI LA TUA VECCHIA PASSQORD
Freeradius UNIX user: [root]
HTTPD UNIX user: [apache]
Create rmpoller service: [y]
Create rmconntrack service: [y]
Back up RADIUS database: [y]

WARNING! If You continue the existing RADIUS database will be overwritten!

Are You sure to begin the installation? [n] y
Starting installation…

Stopping rmpoller
./install.sh: line 368: killall: command not found
Stopping rmconntrack
./install.sh: line 370: killall: command not found
Stopping radiusd
./install.sh: line 372: killall: command not found
Stopping rmauth
./install.sh: line 374: killall: command not found
Stopping rmacnt
./install.sh: line 376: killall: command not found
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
Backing up RADIUS database…
Creating MySQL tables
Enabling rmpoller service at boot time
Enabling rmconntrack service at boot time
Enabling radiusd service at boot time
Copying logrotate script
Copying cronjob script
Setting permission on raddb files

Installation complete!

A questo punto ricopiate la vecchia cartella del radiusmanager sul nuovo

Controllare i seguenti file

/etc/radiusmanager.cfg
/var/www/html/radiusmanager/config/system_cfg.php
/usr/local/etc/raddb/sql.conf

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

venti − 18 =