Installazione di GestióIP IPAM (gestione indirizzi IP) su CentOS 7

In questo articolo andremo a descrivere come installare l’applicativo per la gestione degli indirizzi ip GestióIP IPAM su CentOS 7.

Consideriamo di partire da una macchina virtuale preinstallata CentOS 7 con ambiente LAMP (qui l’ articolo per dell’ installazione) ed aggiorniamola

yum update

scarichiamo dal sito ufficiale il pacchetto software GestióIP

yum install vim wget

cd

wget https://sourceforge.net/projects/gestioip/files/gestioip_3.4.tar.gz

ed estraiamo il file compresso

tar -xvzf gestioip_3.4.tar.gz

per la corretta installazione del software avremmo necessità del mod_perl presente nel repository ufficiale epel

yum install epel-release

yum install mod_perl

cd gestioip_3.4/

adesso installiamo GestióIP

./setup_gestioip.sh

This script will install GestioIP 3.4 on this computer

Do you wish to continue [y]/n?y

A questo punto inizia la fase di configurazione del software

+———————————————————-+
| Checking for Apache web server daemon… |
+———————————————————-+

Where is Apache daemon binary [/usr/sbin/httpd]?

se i percorsi sono sono corretti andiamo avanti facendo INVIO

+———————————————————-+
| Checking for Apache main configuration file… |
+———————————————————-+

Where is Apache main configuration file [/etc/httpd/conf/httpd.conf]?

OK, using Apache main configuration file /etc/httpd/conf/httpd.conf

+———————————————————-+
| Checking for Apache user account… |
+———————————————————-+

Which user account is running Apache web server [apache]?
OK, Apache is running under user account apache

+———————————————————-+
| Checking for Apache group… |
+———————————————————-+

Which user group is running Apache web server [apache]?
OK, Apache is running under users group apache

+———————————————————-+
| Checking for Apache Include configuration directory… |
+———————————————————-+

Where is Apache Include configuration directory [/etc/httpd/conf.d/]?
OK, using Apache Include configuration directory /etc/httpd/conf.d

+———————————————————-+
| Checking for PERL Interpreter… |
+———————————————————-+

Where is PERL Intrepreter binary [/usr/bin/perl]?
OK, using PERL Intrepreter /usr/bin/perl

+———————————————————-+
| Checking for Apache mod_perl version… |
+———————————————————-+

Checking for Apache mod_perl
Apache mod_perl available – Good!

+———————————————————-+
| Checking for required Perl Modules… |
+———————————————————-+

Do you plan to import networks or hosts from spreadsheets [y]/n? y

Adesso inizia il controllo sui moduli Perl e molto probabilmente molti mancheranno, ma lo stesso script ci permette il recupero e l’installazione di quelli mancanti

Do you wish that the Setup installs the missing Perl Modules now [y]/n? y

installati i moduli Perl, ci viene richiesto la configurazione del comando MAKE per la compilazione di alcuni moduli

Where is MAKE binary [/usr/bin/make]?

Per il controllo tramite SNMP vengono installate le MIB

Do you wish that the Setup installs required MIBs now [y]/n? y

configuriamo anche la cartella dove sarà la GUI di GestióIP

+———————————————————-+
| Configuration of Apache Web Server… |
+———————————————————-+

Which is the Apache DocumentRoot directory [/var/www/html]?

definiamo il percorso per htpasswd per l’autenticazione sulla GUI

Where is htpasswd [/usr/bin/htpasswd]?

OK, using htpasswd /usr/bin/htpasswd

Which should be the user to access to GestioIP [gipadmin]? admin

OK, using rw user admin

+++++++++++++++++++++++++++++++++++++++++++++++++++
Now open a new shell and execute the following
command LIKE ROOT to create the GestioIP apache user:
+++++++++++++++++++++++++++++++++++++++++++++++++++

sudo /usr/bin/htpasswd -c /etc/httpd/users-gestioip admin

apriamo quindi una nuova shell e impostiamo la password per l’utente amministratore admin

/usr/bin/htpasswd -c /etc/httpd/users-gestioip admin

dopo avere impostato la password nella shell di installazione premiamo invio ed avremo

rw user (admin) successfully created

Impostiamo per semplicità SELINUX in modalità permissive (altra shell)

vim /etc/selinux/config

SELINUX=permissive

setenforce 0

ritornando nella shell di installazione, impostiamo la cartella degli script di GestioIP

Under which directory should GestioIP’s script files be installed [/usr/share/gestioip]?

a questo punto avremmo finito l’installazione

Downloading files for the Configuration Management Module…OK
SE_LINUX disabled – skipping update of SE_LINUX policy
+——————————————————-+
| |
| Installation of GestioIP successfully finished! |
| |
| Please, review /etc/httpd/conf.d/gestioip.conf
| to ensure all is good and |
| |
| RESTART Apache daemon! |
| |
| Then, point your browser to |
| |
| http://server/gestioip/install
| |
| to configure the database server. |
| Access with user “admin” and the
| the password which you created before |
| |
+——————————————————-+

riavviamo il server web

systemctl restart httpd

Accediamo alla GUI per completare la configurazione attraverso l’indirizzo http://ip_server/gestioip/install , inseriamo le credenziali di admin

gestioip centos 7

impostiamo quindi i parametri del database ed aggiungiamo l’utente che si connetterà al database

gestioip centos 7

il sistema automaticamente alla creazione del nuovo utente concede anche i permessi

gestioip centos 7

infine impostiamo a scelta il sito che vogliamo gestione, ad esempio “Sito_test”

gestioip centos 7

l’installazione a questo punto è terminata, ci verrà richiesto di eliminare la cartella all’interno del server

rm -rf /var/www/html/gestioip/install

Accediamo quindi all’ interfaccia grafica dal seguente indirizzo http://ip_server/gestioip

gestioip centos 7

il software si presenta con una grafica molto minimale, ma allo stesso tempo è molto utile per la gestione degli indirizzi IP/VLAN di più siti.

Potrebbero interessarti anche...