Ntopng
Portability note: Compose examples use rootless Podman andhost.containers.internal(the host gateway from a container). When using Docker, replacepodman-composewithdocker composeandhost.containers.internalwithhost-gateway(addextra_hosts: [host-gateway:host-gateway]to the service). All concepts, architecture patterns, and CLI commands are container-runtime-agnostic.
Ntopng (Network Traffic Analysis)
Purpose: Real-time network traffic monitoring and analysis. Shows active flows, top talkers, protocol breakdown, geo-IP mapping, and historical traffic trends. Can integrate with nProbe for deep packet inspection and with pfSense/OPNsense via NetFlow/sFlow export.
# ~/ntopng/compose.yaml
services:
ntopng:
image: ntop/ntopng:stable
network_mode: host
volumes:
- /home/user/ntopng/data:/var/lib/ntopng:Z
environment:
NTOPNG_COMMUNITY: true
command: --interface=eth0 --http-port=3000 --data-dir=/var/lib/ntopng --community
restart: unless-stopped
cd ~/ntopng && podman-compose up -d
Replaceeth0with your primary network interface name (ip link show).--network hostis required for ntopng to see actual traffic.