GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Come installare Ntopng su Ubuntu 16.04

In questo tutorial, ti mostreremo come installare e configurare Ntopng su Ubuntu 16.04. Per chi non lo sapesse, Ntopng è uno strumento relativamente utile se stai cercando di monitorare diversi protocolli di rete sui tuoi server. Fornisce una serie di strumenti per il monitoraggio di vari protocolli, varianti di traffico e sì, larghezza di banda su più intervalli di tempo. Ntopng è basato su libpcap ed è stato scritto in modo portatile per funzionare virtualmente ogni piattaforma Unix, MacOSX e anche su Win32.

Questo articolo presuppone che tu abbia almeno una conoscenza di base di Linux, sappia come usare la shell e, soprattutto, che ospiti il ​​tuo sito sul tuo VPS. L'installazione è abbastanza semplice e presuppone che tu sono in esecuzione nell'account root, in caso contrario potrebbe essere necessario aggiungere 'sudo ' ai comandi per ottenere i privilegi di root. Ti mostrerò l'installazione passo passo di Ntopng su un server Ubuntu 16.04 LTS (Xenial Xerus).

Installa Ntopng su Ubuntu 16.04

Passaggio 1. Innanzitutto, verifica che il repository dell'universo sia abilitato controllando '/etc/apt/sources.list ' con il tuo editor preferito.

sudo gedit /etc/apt/sources.list

Se l'universo non è incluso, modifica il file in modo che:

deb http://us.archive.ubuntu.com/ubuntu xenial main universe

Passaggio 2. Installazione di Ntopng.

Per installare Ntopng, esegui il seguente comando come utente root del tuo server:

sudo apt-get install redis-server
sudo apt-get install ntopng

Passaggio 3. Configura Ntopng.

Crea un file di configurazione Ntopng, in questo articolo utilizziamo nano come editor di testo. Puoi usare il tuo editor di testo preferito per creare file di configurazione Ntopng:

sudo nano /etc/ntopng/ntopng.conf
# /etc/ntopng/ntopng.conf
#
#        The  configuration  file is similar to the command line, with the exception that an equal
#        sign '=' must be used between key and value. Example:  -i=p1p2  or  --interface=p1p2  For
#        options with no value (e.g. -v) the equal is also necessary. Example: "-v=" must be used.
#
#
#       -G|--pid-path
#        Specifies the path where the PID (process ID) is saved.
#
-G=/var/tmp/ntopng.pid
#
#       -e|--daemon
#        This  parameter  causes ntop to become a daemon, i.e. a task which runs in the background
#        without connection to a specific terminal. To use ntop other than as a casual  monitoring
#        tool, you probably will want to use this option.
#
-e=
#
#       -i|--interface
#        Specifies  the  network  interface or collector endpoint to be used by ntopng for network
#        monitoring. On Unix you can specify both the interface name  (e.g.  lo)  or  the  numeric
#        interface id as shown by ntopng -h. On Windows you must use the interface number instead.
#        Note that you can specify -i multiple times in order to instruct ntopng to create  multi‐
#        ple interfaces.
#
-i=1
#
#       -w|--http-port
#        Sets the HTTP port of the embedded web server.
#
-w=3000
#
#       -m|--local-networks
#        ntopng determines the ip addresses and netmasks for each active interface. Any traffic on
#        those  networks  is considered local. This parameter allows the user to define additional
#        networks and subnetworks whose traffic is also considered local in  ntopng  reports.  All
#        other hosts are considered remote. If not specified the default is set to 192.168.1.0/24.
#
#        Commas  separate  multiple  network  values.  Both netmask and CIDR notation may be used,
#        even mixed together, for instance "131.114.21.0/24,10.0.0.0/255.0.0.0".
#
-m=192.168.1.0/24
#
#       -n|--dns-mode
#        Sets the DNS address resolution mode: 0 - Decode DNS responses  and  resolve  only  local
#        (-m)  numeric  IPs  1  -  Decode DNS responses and resolve all numeric IPs 2 - Decode DNS
#        responses and don't resolve numeric IPs 3 - Don't decode DNS responses and don't  resolve
#
-n=1
#
#       -S|--sticky-hosts
#        ntopng  periodically purges idle hosts. With this option you can modify this behaviour by
#        telling ntopng not to purge the hosts specified by -S. This parameter requires  an  argu‐
#        ment  that  can  be  "all"  (Keep  all hosts in memory), "local" (Keep only local hosts),
#        "remote" (Keep only remote hosts), "none" (Flush hosts when idle).
#
-S=
#
#       -d|--data-dir
#        Specifies the data directory (it must be writable). Default directory is ./data
#
-d=/var/tmp/ntopng
#
#       -q|--disable-autologout
#        Disable web interface logout for inactivity.
#
-q=

Crea il file ntopng.start:

sudo nano /etc/ntopng/ntopng.start

##Add this line##

--local-networks "192.168.0.0/24"  ## give your local IP Ranges here.
--interface 1

Per vedere tutte le interfacce e le opzioni disponibili, usa ntopng -h opzione:

sudo ntopng -h

Avvia il demone del server Ntopng:

systemctl start ntopng.service
systemctl start redis-server.service

Passaggio 4. Verifica Ntopng.

Ora puoi testare la tua applicazione Ntopng digitando http://your-domain:3000 . Vedrai la pagina di accesso di Ntopng. Per la prima volta, puoi utilizzare l'utente "admin" e la password "admin".

Congratulazioni! Hai installato con successo Ntopng. Grazie per aver utilizzato questo tutorial per installare l'analisi del traffico basata sul Web ad alta velocità Ntopng e la raccolta del flusso sul tuo sistema Ubuntu 16.04. Per ulteriore aiuto o informazioni utili, ti consigliamo di controllare il sito Web ufficiale di Ntopng.


Ubuntu
  1. Come installare Odoo su Ubuntu

  2. Come installare Ntopng su Ubuntu 14.04

  3. Come installare Ntopng su Ubuntu 18.04 LTS

  4. Come installare R su Ubuntu 16.04

  5. Come installare Vai su Ubuntu 18.04

Come installare R su Ubuntu 18.04

Come installare Ntopng su Ubuntu 20.04

Come installare Ntopng su Ubuntu 20.04 LTS

Come installare qt su Ubuntu 20.04

Come installare Go in Ubuntu 20.04

Come installare Vai su Ubuntu 22.04