How to install the Ntopng network monitoring tool on Ubuntu 20.04

s2 0

Ntopng is a web-based application for real monitoring of network traffic flow, available as open freeware. It’s an improved type of innovative ntop that shows network usage, statistics and bing data. It works with a wide variety of computer systems including Windows, Linux, Mac OS, and BSD. Ntopng is available in professional and enterprise versions with license restrictions, as well as a free, open source community version. In this guide, I’ll show you how to install and configure the Ntopng Community Edition on Ubuntu 20.04.

Install Ntopng on Ubuntu

To get started, you’ll need to launch the console application named “Terminal” from your system from the Activities Pane, or use “Ctrl + Alt + T” for quick start to install Ntopng locally. If you want to install the software on a server, you can, for example, connect to the remote system via SSH. Now the terminal is open, we need to update our system and apt packages first. To do this, run the specified command in the shell. If necessary, add your sudo account password to continue.

$ sudo apt-get update -y

The ntopng has some dependencies on different packages that should be installed on our system. So install them first using the apt-get query below.

$ sudo apt-get install wget gnupg -y

Install GnuPG

Now use the “wget” package to download the “ntop” file package to the system. To do this, use the following query in the shell.

$ cd /tmp
$ wget

You can see the package is quickly downloaded and saved in the system.

Download ntopng

Now we can install the downloaded “deb” file using the following command. Press Enter on your keyboard to perform this instruction. It takes little time to install yourself.

$ sudo dpkg -i apt-ntop.deb

Install the Ntopng Debian package with apt

As an alternative to downloading the latest version as shown above, you can install an older version using apt as follows:advertising

$ sudo apt-get install ntopng

Meanwhile, during the installation process, the system will interrupt the installation and ask you to authorize the installation. If you want to install it you have to press “Y”, otherwise press “n”.

Confirm installation

You’ll have to wait and sit back while the installation completes. The final lines for the installation completion would look like the image below.

Create symlinks

Now that Ntopng has been successfully installed on our system, it is time to configure it properly. To do this, we need to open the configuration file, which is located in the / etc / ntopng folder, via the GNU Nano editor. To do this, use the following command.

$ sudo nano /etc/ntopng.conf

Edit ntopng configuration

After the file opens, you need to add the same configurations as shown in the screenshot below. Save the Ntopng configuration file with “Ctrl + S”. Then close the updated file with “Ctrl + X” and navigate back to the terminal shell.

  • -e =
  • -i = eth0
  • -w = 3000


Now that the updates are complete, we need to implement these changes in our system. To do this, we must first restart the ntopng service. Therefore we used the “systemctl” command below with the keyword “restart” followed by the name of a server, eg ntopng.

$ sudo systemctl restart ntopng

Restart the ntopng service

If you want to check all the existing interfaces of your Ntopng server in your system, you can do so with the following query in the shell.

$ sudo ntopng -h

List interfaces

Make sure you open port 3000 for the Ntopng server if your system is running a firewall by using the following query.

$ sudo ufw allow 3000

Configure the firewall

Start the Ntopng server with the following command “systemctl” followed by the keyword “start”.

$ sudo systemctl start ntopng

Start the ntopng server

Now activate the Ntopng service via the following query.

$ sudo systemctl enable ntopng

Activate ntopng service

To access the NtopNG interface, open your web browser and enter the following url: http: // your-ip-address: 3000. Replace your IP address with the IP address of the system on which you installed ntopng. It opens the login panel of Ntopng. The default username is ‘admin’ with the password ‘admin’.

Ntopng on Ubuntu

How to install the Ntopng network monitoring tool on Ubuntu 20.04