Install Ntopng on Rocky Linux 9

This guide intends to teach you to Install Ntopng Monitoring Tool on Rocky Linux 9.

Introduction To Ntopng

ntopng is a network top program that lets admins display all the relevant parameters for the connected networks. Ntopng is a passive network monitoring tool that supports statistical evaluation of traffic data on the connected networks; it does not actively intervene in the network traffic (but see the “Layer 7 Manipulation” box). It is therefore ideally suited as a tool for administrators wanting to answer, among others, the following questions:

  • What devices are currently on the network?
  • How much traffic do the various devices cause on the network?
  • Which devices are communicating or exchanging data with others (internally and externally)?
  • What kind of bandwidth is used by each device, or which device is currently hogging the Internet connection?
  • What protocols exist on the network, and how is network traffic distributed among them?
  • Is any suspicious data traffic on the network caused by, for example, viruses or Trojans?

Ntopng is ideally suited for monitoring small and medium-sized Class C networks at gigabit speeds but can also be used for monitoring larger networks, given appropriate hardware.

Steps To Install Ntopng on Rocky Linux 9

To complete this guide, you must log in to your server as a root user with sudo privileges and set up a basic firewall. To do this, you can follow our guide on Initial Server Setup with Rocky Linux 9.

Add Ntopng Repository on Rocky Linux

As you know, Ntopng packages aren’t available in the default Rocky Linux repository.

First, you need to add the Ntop packages repository with the following command:

curl > /etc/yum.repos.d/ntop.repo

Install Epel Repository

Then, you need to install the Epel repository on your server:

dnf install epel-release -y

Install Remi Repository

Now you need to add the Remi repository to your server with the following command:

rpm -ivh

Install DNF Plugins

Next, install the dnf plugins on Rocky Linux 9:

dnf install dnf-plugins-core -y

Enable Power Tools

Use the following commands to enable the power tools and Remi repository:

# dnf config-manager --set-enabled remi

powertools are called crb(CodeReady Linux Builder) now. To enable it, run

dnf config-manager --set-enabled crb

Run the system update:

dnf update -y

Install Ntopng Monitoring Tool on Rocky Linux 9

At this point, you can install the Ntopng and its dependencies  with the following command:

dnf install pfring-dkms n2disk nprobe ntopng cento -y

Note: PF_RING is now packaged without ZC drivers so you can optionally install them:

dnf install pfring-drivers-zc-dkms

Most software work without licenses. However, some components do need a license. They include:

  • PF_RING ZC user-space libraries
  • nProbe (NetFlow/IPFIX probe)
  • n2disk (packet to disk application)

If you are a nProbe user and want to install a nProbe package with no dependency, please install the nProbes (rather than the nProbe) package. Note that you can either install the nProbe or the nProbes package but NOT both simultaneously.

Start and Enable Ntopng

Now start and enable your Ntopng service on Rocky Linux 9 with the following command:

systemctl enable --now ntopng

Verify your service is active and running:

systemctl status ntopng
● ntopng.service - ntopng high-speed web-based traffic monitoring and analysis >
     Loaded: loaded (/usr/lib/systemd/system/ntopng.service; enabled; vendor pr>
     Active: active (running) since Sun 2023-01-22 06:21:44 EDT; 2s ago
    Process: 36766 ExecStartPre=/bin/sh -c /usr/bin/ntopng-utils-manage-config >
    Process: 36780 ExecStartPre=/bin/sh -c /bin/cat /etc/ntopng/ntopng.conf > />
    Process: 36782 ExecStartPre=/bin/sh -c /bin/cat /etc/ntopng/ntopng.conf.d/*>
    Process: 36784 ExecStartPre=/bin/sh -c /bin/sed "/^[ ]*-e.*$\|^[ ]*-G.*\|^[>
   Main PID: 36786 (ntopng)
      Tasks: 7 (limit: 23609)
     Memory: 37.3M
        CPU: 542ms
     CGroup: /system.slice/ntopng.service
             └─36786 /usr/bin/ntopng /run/ntopng.conf

Configure Firewall For Ntopng

Ntopng by default listens on port 3000. You need to open the Ntopng port through Rocky Linux 9 firewall with the following command:

firewall-cmd --permanent --add-port=3000/tcp

Reload the firewall to apply the new rules:

firewall-cmd --reload

Access Ntopng Dashboard Rocky Linux 9

At this point, you can access the Ntopng web interface by typing your server’s IP address in your web browser followed by 3000:


You will see the Ntopng login screen. Use the default credentials: admin:admin and reset the password afterward.

Ntopng login screen
Ntopng Login screen

Now you can change the default password and press change password.

Change default password of Ntopng
Change password

At this point, you will see your Ntopng dashboard.

Ntopng dashboard
Ntopng dashboard

That’s it, you are done.


At this point, you have learned to Install and Configure Ntopng on Rocky Linux 9.

Hope you enjoy it. You may be like these articles:

Install Zabbix on Rocky Linux 9

Install XAMPP on Rocky Linux 9

How To Install Netdata on Rocky Linux 9

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Stay informed and not overwhelmed, subscribe now!