A self-hosted security and visibility dashboard for a home network. Small agents on your OpenWrt / GL.iNet routers report connections, DNS lookups, Wi-Fi clients and firewall drops every minute to a Docker container on your NAS. The dashboard turns that into answers: what is on the network, where it talks to, what is attacking you, what is leaving the house, and what to do about it — block, pause, fix, or prepare the router for a firmware update.
Every name, address and number in these screenshots is fictional demo data (made with
tools/demo_seed.py) — you can load the same demo to try the dashboard without any routers.
→ Step-by-step setup: docs/INSTALL.md · Configuration reference: docs/CONFIGURATION.md
Router cards (CPU, RAM, uptime, live throughput), a system status score with its reasons, live network topology (main router → access points → extenders, wired or Wi-Fi), a world map of connections, recent website activity per device, connection types, top external IPs, live traffic, top domains, top clients and today's threats.
Built for the question "I turned telemetry off — is anything still being sent?"
- Priority Actions banner — unnamed addresses receiving data, devices bypassing your DNS filter, telemetry still getting out, the heaviest senders — each with its one-click action.
- KPI cards with sparklines and change against the previous period.
- Getting better or worse? — a verdict with its reasons, this week vs. last week, a 14-day bar with the days you added rules, and "since your first block: X/day → Y/day".
- Known telemetry endpoints (51 vendors / 109 endpoints out of the box — Microsoft, Apple, Google/Firebase, Amazon devices, smart-TV viewing trackers, AI apps' feature-flag and analytics services, crash reporters, …).
- Destinations ranked by risk (High / Review / Low / Trusted, with the reasons on hover) and quick actions: Block, Pause 1h, Inspect, Whitelist.
- Device drill-down, per-device telemetry policy, Block Device.
- Devices bypassing your DNS filter (plain DNS to outside resolvers, DNS-over-TLS, DNS-over-HTTPS).
| Trends (line chart, smart scale) | Everything blocked right now |
|---|---|
![]() |
![]() |
Inbound drops classified into threats (port scans, SSH/Telnet/RDP/SMB/SIP probes, bad bots), scored with public blocklists (ipsum, FireHOL, Feodo, Spamhaus DROP, CINS, ET), attacks by country and port, and blocking rules you can add from anywhere with a right-click (timed or permanent).
| Firewall & Security | Geographic View |
|---|---|
![]() |
![]() |
Watches threats, blocklists and IDS alerts; in Protect mode it blocks attackers on the router by itself (timed, revertible, rate-limited), in Observe mode it only tells you. Optional plain-English AI briefings from a local Ollama model. Auto-acknowledge switch for days when there is nothing to do but click.
Suricata on a WAN port mirror; alerts are joined with the firewall and threat data, with analyst actions.
Scans the LAN, recognises the services behind each port (including which container and image publishes it when the Docker socket is mounted), checks current exploits and misconfigurations, prioritises by real exposure, and can apply fixes: router-level containment, container fixes, and Windows fixes over PowerShell (credentials kept in memory only).
Per-child profiles with screen-time limits, bedtime, pause / +30 min, content categories and blocked services (enforced through AdGuard Home and the router), live alerts, top sites and apps, and a page the kids see when something is blocked.
Every lookup per device (AdGuard Home or dnsmasq), what was blocked and by which list; device inventory with fingerprinting (type, vendor), band, router, first/last seen.
| Websites & DNS | Clients & Devices |
|---|---|
![]() |
![]() |
A router firmware update with "Keep Settings" keeps /etc/config but removes the packages you installed and any
file outside the keep list — which is where the WatchTower agent lives. Settings → Router Firmware signs in over
SSH (password held in memory only), saves the router's full settings backup to the NAS, snapshots every WatchTower
piece, adds them to /etc/sysupgrade.conf, and after the update compares and puts back whatever is missing.
Wi-Fi client health and roaming, Reports & Charts, Search, Router Logs, System Health, notifications per person (ntfy push with Approve/Block buttons, Pushover, e-mail, SMS), daily digest, encrypted backups, speed tests and WAN outage tracking, a new-device gate, and family (read-only) sign-ins.
flowchart LR
subgraph Routers["OpenWrt / GL.iNet routers"]
A["hcp-agent.sh<br/>every minute: conntrack, clients, Wi-Fi, stats"]
S["syslog<br/>dnsmasq queries, firewall drops"]
R["hcp-rules.sh (main router)<br/>applies block rules (ipset + HCP chain)"]
end
AG["AdGuard Home<br/>(query log, rules, per-child clients)"]
IDS["Suricata on a WAN mirror<br/>(optional)"]
subgraph NAS["Docker host / NAS"]
C["WatchTower collector<br/>Flask + SQLite"]
UI["Dashboard :8098"]
end
A -- "HTTP POST /api/ingest (token)" --> C
S -- "UDP 5514" --> C
C -- "rule list /api/rules/export" --> R
C <-- "API" --> AG
IDS -- "alerts" --> C
C --> UI
- One container, one SQLite database in
./data. Raw rows are kept 30 days (connections 7), daily roll-ups forever. - Nothing leaves your network except optional lookups you turn on: public blocklists, IP geolocation (or a local MaxMind GeoLite2 file), and the notification services you configure.
- A Docker host with Docker Compose — tested on a Synology NAS (DSM 7.2, Container Manager); any Linux box works.
- OpenWrt-based routers with SSH — built and tested on GL.iNet firmware 4.x: GL-MT6000 (Flint 2) as the main router, GL-AX1800 (Flint) as an access point, GL-SFT1200 (Opal) as an extender. Plain OpenWrt works the same way.
- Optional: AdGuard Home (built into GL.iNet routers), a MaxMind GeoLite2-City database, Ollama, a spare NIC + VM for Suricata.
git clone https://github.com/winreboot/network-watchtower.git
cd network-watchtower
cp .env.example .env # set HCP_TOKEN (openssl rand -hex 16), TZ, your map location, AdGuard details
docker compose up -d --build # then open http://<nas-ip>:8098 and create the admin passwordThen install the agent on each router — docs/INSTALL.md § 4.
cd collector
pip install -r requirements.txt
HCP_DATA_DIR=/tmp/wt-demo python3 ../tools/demo_seed.py
HCP_DATA_DIR=/tmp/wt-demo HCP_TOKEN=demo HCP_FEEDS=0 python3 app.py
# open http://localhost:8098 — sign in as Admin / demo-password- Put the dashboard on your LAN only — don't port-forward it. The first visit asks for an admin password; family members can get read-only sign-ins.
- The router agents authenticate with
HCP_TOKEN; keep it in.env(git-ignored) and in/etc/hcp.confon the routers. - Router root and Windows admin passwords typed into the dashboard are held in memory for a limited time and never
written to disk. Router settings backups (which contain Wi-Fi keys) stay in
data/firmware/on your NAS. - Mounting
/var/run/docker.sockgives the container control of Docker on that host; it is optional and only needed for the Docker-aware scan and container fixes.
collector/ the app (Flask + SQLite); build.py assembles static/index.html from the *.js modules
router/ router agent, rules applier, installer (see router/README.md)
tools/demo_seed.py fictional demo household
docs/ install guide, configuration reference, screenshots
docker-compose.yml + .env.example












