ntopng 7.0 in Practice: Network Visibility and Security Monitoring with Open Source
Which devices are talking to whom? Which applications are eating your bandwidth? And has a rogue DHCP server just shown up on the network? ntopng answers these questions in real time. In this post we install it on Ubuntu 26.04, set up the basics, and walk through the security features that have proven their worth in day-to-day operations.
As of October 2026, ntopng 7.0 is the stable release. The screenshots were taken on an older production installation, so menus may differ slightly depending on version and license.
The short version
- ntopng is a web-based, open source traffic analysis tool. Thanks to nDPI, our deep packet inspection library, it identifies hundreds of protocols and applications, even in encrypted traffic.
- On Ubuntu 26.04 LTS: add the ntop repository, run
apt install ntopng, done. Since 7.0 the web interface runs on HTTPS, port 3001 by default. - For security, look at Behavioural Checks, Network Configuration (expected DNS, DHCP and NTP servers) and blacklists. Alerts can go out via syslog, email, messengers or webhooks, for example into Wazuh.
- New in 7.0: the AI assistant nAnalyst, SSO/MFA/passkeys, BGP monitoring with RPKI, and a completely redesigned UI.
Where ntopng comes from
It all started with ntop (Network TOP), a project Luca Deri began in the late 1990s. The idea: a tool that works like UNIX top, but for network traffic. Over time the original ntop hit technical limits, so we rewrote it from scratch, faster and web-based, and released it in 2013 as ntopng (ntop Next Generation). The current release is 7.0, and 7.1 is already in development.
ntopng is written in C++, keeps configuration and live data in Redis, and ships its own web interface, built entirely on Vue.js as of 7.0. Historical flows and time series can go to ClickHouse, the central backend for long-term analysis in the commercial editions.
ntopng is not alone. The rest of the family:
| Tool | Purpose |
|---|---|
| nDPI | Open source DPI library: identifies protocols and applications and assesses risks. The core of ntopng's traffic classification. |
| PF_RING | High-performance packet capture for Linux, relevant at 10 Gbit/s and beyond. |
| nProbe | NetFlow/IPFIX/sFlow probe and collector, ideal for large, distributed networks. |
| n2disk | Line-rate packet recording, e.g. for forensics. |
| nEdge / nEdge Lite | ntopng as an inline bridge/router that can shape or block traffic based on policies. |
How it works
ntopng captures traffic via libpcap or the faster PF_RING, or receives flows from nProbe, routers and firewalls. For every connection, nDPI determines protocol and application, even when encrypted or obfuscated. ntopng then enriches the metadata with geolocation, autonomous system, blacklists and more, and shows it in the web interface. You can run it on a firewall or router, or on a separate box fed by a switch mirror port (SPAN). See your switch vendor's documentation for how to set one up (overview).
What nDPI brings to the table:
- Application detection: 400+ protocols and services out of the box. Since nDPI 5.0, custom protocols and categories can be added at runtime.
- Encrypted traffic: TLS or QUIC connections are attributed using metadata such as the server name (SNI) and fingerprints (e.g. JA4), without decrypting anything.
- Flow risks: dozens of risks per connection, such as clear-text passwords, expired certificates, suspicious domain names (DGA) or protocols on non-standard ports.
Installation
ntopng comes as source code, as containers on Docker Hub, and as packages for all common Linux distributions, FreeBSD, OPNsense/pfSense and macOS. For Windows we only provide development builds, so Linux is the recommended platform for production. Stable and nightly builds live at packages.ntop.org.
On Ubuntu 26.04 LTS (for 24.04 or 22.04 just change the version in the URL):
sudo apt-get install software-properties-common wget
sudo add-apt-repository universe
wget https://packages.ntop.org/apt-stable/26.04/all/apt-ntop-stable.deb
sudo apt install ./apt-ntop-stable.deb
sudo apt-get update
sudo apt-get install ntopng
Prefer containers? Use the ntop/ntopng image. Since ntopng needs to capture packets, it usually runs with --net=host.
Basic configuration
Configuration lives in /etc/ntopng/ntopng.conf (see the configuration example). Only a few settings need attention. One gotcha: in the file, option and value are separated by an equals sign, so -i=eth1, not -i eth1.
# Interface(s) to monitor, can be specified multiple times
-i=enp5s0
# Local networks (otherwise only 192.168.1.0/24 by default!)
-m=192.168.10.0/24,10.0.0.0/8
# DNS mode: 0 = resolve local IPs only, 1 = resolve all IPs
-n=1
# Web server: since 7.0 HTTPS only on port 3001, HTTP disabled
-w=0
-W=3001
-isets the interfaces to listen on. If you leave it out, you can pick the interface later in the web UI. With a single interface, set it here.-mdefines your local networks so ntopng can tell internal from external hosts. Without it only192.168.1.0/24counts as local, so always set it.-ncontrols name resolution, from "resolve everything" to "resolve nothing".
Without -i, the interface can be selected in the web interface.
Licensing note: up to 6.x, ntopng unlocked the paid features for ten minutes when started without a license, unless you set --community. As of 7.0 that option is gone: without a license, ntopng starts directly as the Community Edition.
Restart the service after changes:
sudo systemctl restart ntopng
The web interface is then at https://<server-ip>:3001. ntopng generates a self-signed certificate at install time, so expect a browser warning on first access. For long-term use, install your own certificate at /usr/share/ntopng/httpdocs/ssl/ntopng-cert.pem.
Dashboard and navigation
On first login (admin / admin) ntopng asks you to change the password. 7.0 also adds multi-factor authentication and passkeys, and the commercial editions add single sign-on via OpenID Connect. For an interface with this much insight into your network, turn them on.
The dashboard shows current flows, top hosts and top applications, plus their classification (breed): Safe, Acceptable, Fun, Unsafe and so on. The top bar shows current throughput and shortcuts to alerts, flows and flows rated as dangerous, based on a score ntopng computes for every host and flow.
Traffic broken down by application and breed.
The main menu is on the left. Under Monitoring you can set up active measurements such as ICMP latency checks, speed tests or HTTP(S) response times.
Active measurements show at a glance whether connectivity and services are healthy.
- Alerts / Explorer: analyse recorded alerts
- Flows: live view of all current connections
- Hosts and Maps: what a machine is doing and who it talks to
- Interface: traffic by protocol and application
Settings covers alerts, caching and data retention. Developer and Help give you the REST API docs and more.
Security features
The heart of it is the Policies menu.
Allowed Applications
Allowed Applications lists every application and category ntopng recognises. All are allowed by default (radio button on the check mark), and you can set the policy separately for a device acting as client or as server.
Per application and category, define whether the client and server role is allowed.
Example: filter for the AdultContent category and set Device As Client to the warning symbol. Now every internal device that connects to adult content raises an alert. It pays to go through the categories carefully, since you decide which scenarios matter. RemoteAccess is a good one: it shows whether outdated protocols such as Telnet or unencrypted VNC are still around. Filter Policies lets you check afterwards which entries trigger alerts.
Network Configuration
Under Network Configuration you enter the known DNS, NTP, DHCP and SMTP servers and gateways. ntopng then reports a rogue DHCP server handing out addresses, or clients talking to unauthorised DNS, NTP or SMTP servers. Handy if your policy says only the domain controller answers client DNS queries.
Behavioural Checks
Behavioural Checks offers well over 100 checks for network anomalies. Since 7.0 the menu is also in the Community Edition; the full set requires Enterprise L. Filter by scope (Host, Interface, Flow) and by Enabled/Disabled, because it's easy to lose track. Some tuning for your network is needed to keep alerts meaningful.
| Check | What it catches |
|---|---|
| Binary App/.exe Transfer | Executable file transfers. Possible false positives from Windows updates. |
| Blacklisted Country | Connection to a country on your blacklist. |
| Blacklisted Server Contact | A host on a known blacklist was contacted. |
| Clear-Text Credentials | Credentials in clear text, e.g. IMAP or FTP. |
| Malware Host Contacted | Contact with a known malware host. |
| Susp. DGA Domain | Domain looks generated by a DGA, typical of malware. |
| Susp. Device Protocol | An application forbidden in Allowed Applications was detected. |
| Susp. DNS Traffic | Unusual DNS traffic, e.g. DNS tunnelling. |
| SYN Scan Victim | Alert on X SYN packets per minute. |
| Slow DoS (new in 7.0) | Slow denial-of-service attacks such as Slowloris. |
| Unexpected DHCP / DNS / NTP / SMTP Server, Unexpected Gateway | Service not listed in Network Configuration. |
Analysing alerts
Alerts → Explorer shows everything logged so far, filterable by type such as Flow. This is where applications forbidden in Allowed Applications show up, along with connections to blacklisted countries. Since 6.2, many alerts are also mapped to MITRE ATT&CK tactics and techniques, which makes them much easier to assess.
If the known DHCP servers are entered in Network Configuration, ntopng also flags unexpected ones. That's a classic symptom of shadow IT, for instance someone plugging a private Wi-Fi router into the corporate network.
False positive? Acknowledge or delete the alert, and use Alert Exclusions to exclude specific hosts, flows or domains so it doesn't come back. Besides Flow, check the Host category too: hosts that exceeded thresholds such as the maximum number of countries contacted at once, a SYN flood or too many remote access connections. Reports can be exported as CSV. Note that the Community Edition is not built for team collaboration, e.g. in a SOC.
Notifications and SIEM integration
External alerting lives under Notifications. Even the Community Edition supports email, syslog, Discord, Slack, Telegram, webhooks and custom shell scripts. The commercial editions add Microsoft Teams, Elasticsearch and Fail2Ban, among others.
Syslog is the easiest way to feed ntopng alerts into a SIEM such as Wazuh; a ready-made integration with decoders and rules exists. ntopng 7.0 also ships a native Wazuh integration that collects Wazuh alerts, correlates them with network data and shows them in a dedicated view. According to the changelog it requires ClickHouse and Enterprise M or higher.
Blacklists
Under Settings you can enable many public blacklists. They update daily, and matches show up in the Malware category.
What's new in ntopng 7.0
7.0 is the biggest update in a long time. Some of it is mostly for larger environments and the commercial editions:
- nAnalyst (agentic AI): ask in natural language, e.g. "Which hosts uploaded an unusual amount of data last night?". Supports various LLM providers including local models, and comes with its own MCP server. Requires ClickHouse and at least Enterprise M.
- More secure login: MFA, passkeys, SSO via OpenID Connect, API keys for the REST API. HTTPS is now the default.
- New user interface: Vue.js with D3 charts and a new search that works across interfaces.
- Sites and BGP: group networks into sites with their own dashboards. Via BGP/BMP, ntopng monitors routing changes including RPKI validation.
- Industrial networks (OT): S7comm (Siemens) and Profinet.
- Active Scan: the former Vulnerability Scan has been renamed, and the CVE view is gone.
6.4 and 6.6 already brought an Asset Inventory, Quality of Experience indicators and dashboards for autonomous systems.
Editions at a glance
ntopng comes as a free Community Edition and as commercial Professional and Enterprise editions (M, L, XL and larger). Everything shown above can be tried with the Community Edition.
| Community | Professional | Enterprise M | Enterprise L+ | |
|---|---|---|---|---|
| Live analysis, flows, hosts, nDPI | ✓ | ✓ | ✓ | ✓ |
| Alerts via email, syslog, messengers, webhooks | ✓ | ✓ | ✓ | ✓ |
| Teams, Elasticsearch, Fail2Ban | – | ✓ | ✓ | ✓ |
| LDAP / SSO (OpenID Connect) | – | ✓ | ✓ | ✓ |
| Flow history in ClickHouse | – | – | ✓ | ✓ |
| Shape/block traffic via policies | – | – | ✓ | ✓ |
| nAnalyst (AI) | – | – | ✓ | ✓ |
| All Behavioural Checks, historical explorer | – | – | – | ✓ |
Source: Available Versions & Licensing. Check the current overview before buying.
Wrapping up
Put ntopng on a mirror port or your firewall and you see your network differently: which applications are really in use, where outdated protocols survive, and where shadow IT is hiding. With policies, 100+ Behavioural Checks, blacklists and notifications into your SIEM, you can detect threats early, even with the free Community Edition. 7.0 adds HTTPS by default, MFA and passkeys, and opens the door to AI-assisted analysis with nAnalyst.
Try it, tell us what you find, and report bugs or ideas on GitHub. Full list of changes in the changelog, and more in the documentation.
Enjoy monitoring your network, and stay secure out there!