AMP AMP

How to Install ntopNG on Ubuntu 21.04

To Install NtopNG on Ubuntu 21.04

Introduction:

NtopNG is the next generation of ntop, a network traffic probe that monitors network usage. It is designed to provide high-speed web-based traffic analysis and flow collection.

Installation Procedure:

Step 1:Check the OS version by using the below command

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute

Step 2: Update the apt Source List by using the below command

root@linuxhelp:~# apt update 
Hit:1 http://in.archive.ubuntu.com/ubuntu hirsute InRelease
Hit:2 https://download.docker.com/linux/ubuntu bionic InRelease                                                       
Hit:3 http://in.archive.ubuntu.com/ubuntu hirsute-updates InRelease                                                   
Hit:4 http://in.archive.ubuntu.com/ubuntu hirsute-backports InRelease       
Hit:5 http://security.ubuntu.com/ubuntu hirsute-security InRelease          
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.

Step 3: Install NtopNG from apt Repository by using the below command

root@linuxhelp:~# apt install ntopng -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  libllvm11
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  fonts-font-awesome fonts-glyphicons-halflings javascript-common libatomic1 libdbi1 libhiredis0.14 libjemalloc2
  libjs-bootstrap libjs-d3 libjs-jquery libjs-jquery-form libjs-jquery-metadata libjs-jquery-tablesorter
  libjs-jquery-ui libjs-rickshaw liblua5.1-0 liblua5.3-0 liblzf1 libmysqlclient21 libndpi3.0 libnorm1 libpgm-5.3-0
  librrd8 libwireshark-data libzmq5 lua-bitop lua-cjson mysql-common node-html5shiv ntopng-data redis-server
  redis-tools
Suggested packages:
  apache2 | lighttpd | httpd libjs-jquery-ui-docs geoipupdate geoip-database geoip-database-extra libjs-leaflet
  libjs-leaflet.markercluster snmp-mibs-downloader nodejs ruby-redis
The following NEW packages will be installed:
  fonts-font-awesome fonts-glyphicons-halflings javascript-common libatomic1 libdbi1 libhiredis0.14 libjemalloc2
  libjs-bootstrap libjs-d3 libjs-jquery libjs-jquery-form libjs-jquery-metadata libjs-jquery-tablesorter
  libjs-jquery-ui libjs-rickshaw liblua5.1-0 liblua5.3-0 liblzf1 libmysqlclient21 libndpi3.0 libnorm1 libpgm-5.3-0
  librrd8 libwireshark-data libzmq5 lua-bitop lua-cjson mysql-common node-html5shiv ntopng ntopng-data redis-server
  redis-tools
0 upgraded, 33 newly installed, 0 to remove and 1 not upgraded.
Need to get 9,328 kB of archives.
After this operation, 42.1 MB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu hirsute-updates/main amd64 libatomic1 amd64 11.1.0-1ubuntu1~21.04 [9,236 B]
Get:2 http://in.archive.ubuntu.com/ubuntu hirsute/universe amd64 libjemalloc2 amd64 5.2.1-2 [224 kB]
Setting up libzmq5:amd64 (4.3.4-1) ...
Setting up libjs-jquery-form (12-3) ...
Setting up libjs-jquery-ui (1.12.1+dfsg-8) ...
Setting up libjs-rickshaw (1.5.1.dfsg-4) ...
Setting up redis-tools (5:6.0.11-1) ...
Setting up libjs-jquery-metadata (12-3) ...
Setting up libjs-jquery-tablesorter (1:2.31.3+dfsg1-1) ...
Setting up ntopng-data (3.8.1+dfsg1-1build2) ...
Setting up redis-server (5:6.0.11-1) ...
Created symlink /etc/systemd/system/redis.service → /lib/systemd/system/redis-server.service.
Created symlink /etc/systemd/system/multi-user.target.wants/redis-server.service → /lib/systemd/system/redis-server.ser
vice.
Setting up ntopng (3.8.1+dfsg1-1build2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/ntopng.service → /lib/systemd/system/ntopng.service.
Processing triggers for fontconfig (2.13.1-4.2ubuntu3) ...
Processing triggers for libc-bin (2.33-0ubuntu5) ...
Processing triggers for man-db (2.9.4-2) ...

Step 4: View the interface name for configure with NtopNG by using the below command

root@linuxhelp:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:8a:51:86 brd ff:ff:ff:ff:ff:ff
    altname enp2s1
    inet 192.168.6.115/23 brd 192.168.7.255 scope global noprefixroute ens33
       valid_lft forever preferred_lft forever
    inet6 fe80::8c68:1853:3079:71c7/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:9a:8c:56:21 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
    inet6 fe80::42:9aff:fe8c:5621/64 scope link 
       valid_lft forever preferred_lft forever

Step 5: Add the Interface name in /etc/ntopng.conf file

root@linuxhelp:~# vim /etc/ntopng.conf 

-i=ens33

Step 6: Restart the NtopNG Service by using the below command

root@linuxhelp:~# systemctl restart ntopng 

Step 7: Create Admin Credentials

Step 8: Dashboard of NtopNG

By this the Installation of NtopNG on Ubuntu 21.04 have been completed.

FAQ
Q
What are the examples of Network Interfaces/
A
Examples of interfaces are the wired Ethernet eth1 and enp0s0 of a Linux machine, as well as the wireless wlan0.
Q
What are Network Interfaces?
A
Network interfaces (or simply interfaces in the ntopng parlance) are pieces of hardware attached to devices such as computers, servers, smartphones, and set-top boxes to allow them to communicate over a network.
Q
What are some extra features of ntopng Enterprise M?
A
It is useful for large organizations, including SNMP support, advanced alerts management.
Q
What are some extra features of ntopng Professional Edition?
A
The features include graphical reports, traffic profiles, and LDAP authentication.
Q
What is the difference between ntopng and a traffic collector?
A
The main difference is that ntopng not only reports traffic statistics but it also analyzes the traffic, draws conclusions on observed traffic type, and reports cybersecurity metrics.