All Today

🛜 NetQmon: a self-hosted eBPF network monitor for OpenWrt routers

· 3 min

In brief


NetQmon is a self-hosted tool for monitoring and controlling traffic in home networks that run OpenWrt routers. 🛜 A small agent on the router captures flows with TC eBPF; a controller in a Docker container analyses them and shows devices, applications, destinations and history. From that, rules can block applications or devices or cap their bandwidth, also on a schedule. According to the project page, no content is decrypted. The source code is on GitHub under the Apache 2.0 licence.


Who it is for. NetQmon is aimed at people who run a home or small network on OpenWrt and want to know what uses the bandwidth, without turning the router into a heavy analytics appliance. According to the project description the agent runs on OpenWrt 24.10 or newer (x86_64 and aarch64); Linux 6.6 or newer is recommended, and kernels from 5.15 may work with the required eBPF/TC features. The maker's site also mentions a lightweight daemon for MIPS, ARM and x86 routers.

What becomes visible. The controller shows clients with real-time upload and download and history, applications by organisation, category, domain and protocol, individual flows with ports and bytes, and destinations by country, ASN and provider. The page says devices are recognised passively through DHCP fingerprints, mDNS and MAC vendor prefixes; applications such as YouTube, Steam or Discord are inferred from TLS SNI hints, DNS answers, ASN ownership and port patterns, without decrypting TLS. The project stresses that it deals with metadata, not content.

Rules. A policy engine can block applications or categories per device or globally (a fast drop path in eBPF) or limit upload and download separately (through Linux TC with HTB, CAKE or FQ-CoDel). Schedules with time zones are possible, for example throttling streaming during working hours. A simulator tests rules against sample traffic before they go live, and a rule's path from controller to kernel is tracked in four stages. If something goes wrong, `netqmon-agent policies unlock` on the router removes all rules at once.

Installation and storage. According to the README the controller starts with `docker compose up -d` and is then reachable on port 3000; SQLite is the default storage, with ClickHouse optional for larger volumes. On the router, two kernel modules (kmod-sched-core, kmod-sched-bpf) and the agent package are installed, plus an optional LuCI app.

Community and Pro. Both use the same engine and interface; the difference is the rule dataset for application recognition. Pro provides a larger, maintained dataset through NetQmon Cloud, which the site says includes one year of updates from purchase; the licence does not expire, only the update entitlement. Prices are listed on the project page. The cloud is optional; the standard setup keeps the controller and database on your own infrastructure.

Sources

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service