Open source

Dhonomos

A TR-069 (CWMP) ACS and a TR-369 (USP) Controller in one Rust binary.

Open source under the Apache-2.0 license. An open-source project by Donghyun Park; it is not a DHPLab Consulting product or service.

Dhonomos web UI: the device list, with serial number, protocol, product class, software version, last contact and status for each device.
Simulated devices.

What it is

Dhonomos manages customer premises equipment (home gateways, routers, LTE/5G CPEs) for ISPs with thousands to tens of thousands of devices. The ACS side speaks TR-069, the protocol most CPEs in the field use. The Controller side speaks USP, its successor. The whole server is one executable plus PostgreSQL, with the web UI built in.

Features

CWMP ACS

  • TR-069 Amendment 6 sessions (CWMP 1.0-1.4) over TLS, Digest or Basic auth.
  • Per-device credentials and zero-touch onboarding policies (auto, quarantine, pre-registered, OUI allow-list).
  • Connection Requests over HTTP, UDP (built-in STUN) and XMPP (built-in server, for CPEs behind CGNAT).
  • Built-in file server for firmware and configuration files.

USP Controller

  • MTPs: MQTT 5 (external or built-in broker), WebSocket, STOMP 1.2 (built-in broker).
  • Its own CA for Agent certificates: issuing, expiry list, revocation.

Operations

  • Task queue, presets and sandboxed Rune provisioning scripts.
  • Bulk jobs and firmware campaigns with canary stages and an automatic pause.
  • Diagnostics in one result format for CWMP and USP; BulkData time series; alarms.
  • Configuration backup, drift detection, restore, device replacement.
  • WireGuard tunnels to devices, with an optional hub.
  • REST API (OpenAPI 3.1), roles, team device scopes, OpenID Connect SSO, TOTP two-factor auth, audit log.

Performance

On one 12-core server, a simulator drove 50,000 virtual CPEs at about 2,000 periodic Informs per second with no errors, using 113 MB of memory for the server (with a larger database pool and session limit than the defaults). The simulator and benchmark are in the repository, so the run can be repeated.

Status

Pre-1.0, in testing. No releases yet: build from source. Flags, the API and the database schema can still change. Tested with OpenWrt-based CPEs and simulators. No external security review yet.

Try it

git clone https://github.com/pdh0085/dhonomos.git && cd dhonomos
docker build -t dhonomos:dev .
cp deploy/dhonomos.env.example deploy/dhonomos.env   # secrets, CPE credentials, ACS certificate
docker compose -f deploy/docker-compose.yml up -d

Step by step: installation guide.

The name

DH (the author's initials) + oikonomos, the Greek word for the steward of a household and the root of economy: a server that looks after the devices in subscribers' homes.

Security

Please report vulnerabilities privately, as described in SECURITY.md.