Open-Source · Rust · TR-069 (CWMP) + TR-369 (USP)

One Rust binary for 10M+ TR‑069 & TR‑369 devices.

ferroacs is a ground-up, stateless Auto Configuration Server backed only by PostgreSQL + TimescaleDB. No Redis, no Kafka, no Hazelcast — with an embedded Leptos web UI, CLI, staged canary rollouts, and verified interoperability against SimulaTR69 and Broadband Forum OB-USP-Agent.

Dual-licensed MIT / Apache-2.0 · Linux x86_64 binaries, Docker image & Nix flake
3,322/s Single-node ceiling (0 failures)
2.7 ms p50 At 1,160 sessions/s (10× burst)
< 30 MB Server RSS at 1M-device daily rate
1 Binary + PG Stateless N-node horizontal scale
https://acs.example.com/ — ferroacs fleet dashboard
ferroacs fleet dashboard showing devices, provisioning session outcomes, software version distribution, and syslog severity charts

See ferroacs in action

Recorded directly against a live ferroacs server managing hundreds of simulated devices — zero mockups.

Web UI Walkthrough (Light & Dark)

Tour the embedded Leptos SSR + WASM interface: fleet health dashboard, instant device search, TR-181 parameter tree, live on-demand Commands tab, staged canary firmware rollout progress, and TimescaleDB reports.

CLI & On-Demand Protocol Commands

Real output from the ferroacs CLI over /api/v1: inspecting cluster health, listing devices, executing TR-069/TR-369 commands (AddObject, Upload, GetParameterAttributes, USP Operate), and tracking staged firmware jobs.

Built for ISP scale and operational sanity

Inspired by FreeACS, rebuilt from scratch in Rust against the Broadband Forum specifications.

01

Single Binary + PostgreSQL

Embeds CWMP, USP (WebSocket + MQTT 5), STUN, Syslog, REST API, job scheduler, and the Leptos web UI in one executable. PostgreSQL + TimescaleDB holds all state — no Redis, Kafka, or Hazelcast to babysit.

02

Stateless Horizontal Scale

Run N identical nodes behind any load balancer. CWMP sessions, USP outstanding rounds, E2E SessionContext SAR buffers, and background worker leases coordinate cleanly via PostgreSQL SKIP LOCKED and advisory locks.

03

TR-069 & TR-369 Unified

One protocol-agnostic device model, desired-config diff engine, service window planner, and command queue serves both legacy CWMP CPEs and modern TR-369 USP agents seamlessly.

04

Correctness by Construction

Typestate CWMP sessions and USP rounds prevent illegal protocol transitions at compile time. #![forbid(unsafe_code)], compile-time checked sqlx queries, and a type-checked provisioning rule DSL validated before saving.

05

Staged Canary Rollouts

Push firmware, vendor configs, parameters, reboots, or kicks to hierarchical JSONPath groups with deterministic canary stages, soak times, stop rules (a10/100), job chains, and cluster-wide download concurrency limits.

06

Real-Client Interop Verified

Every protocol milestone is verified in CI/interop against independent implementations: SimulaTR69 (Go CWMP CPE) and Broadband Forum OB-USP-Agent over both WebSocket and MQTT 5 (plus TLS/mTLS).

TR-069 CPE Fleet HTTP/S CWMP · STUN · Syslog TR-369 USP Agents WebSocket (v1.usp) · MQTT 5 TLS Operators & Automation Leptos Web UI · CLI · /api/v1 ferroacs-server (1..N Stateless Nodes) CWMP & USP Engines Typestate · 2-RTT Fast Path Decision & Rules DSL Service Windows · Quirks Jobs, CR & Triggers Canary · STUN · Syslog · SMTP UI + REST + /metrics Leptos SSR/WASM · Prometheus PostgreSQL + TimescaleDB 16× Hash-Partitioned Devices JSONB + GIN · Sessions · Commands Hypertables: Events, Syslog, Logs Leases & SKIP LOCKED Queues

Responsive Web UI — Desktop, Tablet & Phone

Click any screenshot to inspect full resolution. Ships embedded inside ferroacs-server.

Complete TR-069 & TR-369 Protocol Support

Both standards implemented natively with zero third-party ACS wrappers.

Capability TR-069 (CWMP 1.0–1.4) TR-369 (USP 1.5)
Transport & Security HTTP/S, Basic & RFC 7616 Digest auth (shared + per-device), cookie & IP fallback WebSocket (v1.usp, cross-node Postgres outbox) & MQTT 5 with TLS/mTLS (rustls)
Session Layer Typestate SOAP 1.1 sessions, ParameterKey 2-RTT fast path, CPE quirks NoSessionContext + persisted E2E SessionContext with SAR segmentation & reassembly
Discovery & Sync Inform, GetParameterNames, GetParameterValues, SetParameterValues (incl. Status=1 reboot) OnBoardRequest, Boot!, Periodic!, GetSupportedDM, Get, Set, ValueChange live merge
Firmware & Files Download + TransferComplete, Upload + PUT/POST /uploads/{id}/{token} sink Operate FirmwareImage.{i}.Download() + OperationComplete + post-boot verification
On-Demand Commands AddObject (+ initial SPV), DeleteObject, Get/SetParameterAttributes, ScheduleInform, ChangeDUState + DUStateChangeComplete Add, Delete, GetInstances, GetSupportedProtocol, sync & async Operate, Subscribe / Unsubscribe
Wake-Up / Kick HTTP Digest/Basic CR, TR-111 Annex G UDP CR, built-in STUN server Direct controller-initiated rounds over active WebSocket or MQTT subscription

Measured on 1,000,000 devices — on one machine

Server, PostgreSQL 17 + TimescaleDB, and load generator sharing a single 8-core desktop (full methodology & tuning report).

Benchmark Scenario Target Rate Achieved Session p50 / p99 HTTP p99 Failed
1M devices — post-reboot first contact (2 RPCs/session) 116 / s 116 / s 5.0 / 6.1 ms 2.2 ms 0
100k warmed devices — steady state (fast path) 116 / s 116 / s 3.1 / 3.9 ms 2.2 ms 0
10× mass-reconnect burst 1,160 / s 1,160 / s 2.7 / 3.2 ms 1.8 ms 0
Single-node ceiling probe (5,000/s offered) — 3,322 / s ~285M sessions/day — 0

Download the latest release & try it in 60 seconds

Grab prebuilt Linux binaries, launch Docker Compose with simulated devices, or inspect the CLI.

# 1. Clone and boot ferroacs + TimescaleDB + Mosquitto
git clone https://github.com/jarlah/ferroacs.git
cd ferroacs
docker compose up -d

# 2. Seed 50 simulated TR-069 devices immediately
docker compose exec ferroacs ferroacs-sim load \
  --acs http://127.0.0.1:8080/cwmp \
  --username acs --password acs \
  --devices 50 --rate 25 --duration 3

# 3. Open the Web UI at http://localhost:8080  (admin / admin-password)
# 1. Download & verify the latest release tarball from GitHub Releases
tar -xzf ferroacs-v*-x86_64-unknown-linux-gnu.tar.gz
cd ferroacs-v*-x86_64-unknown-linux-gnu

# 2. Prepare PostgreSQL 15+ with TimescaleDB
createdb ferroacs
psql ferroacs -c 'CREATE EXTENSION IF NOT EXISTS timescaledb'

# 3. Run ferroacs-server (migrations run automatically on startup)
FERROACS_DATABASE_URL=postgres://user:pass@localhost/ferroacs \
FERROACS_SECRET_KEY=$(openssl rand -hex 32) \
FERROACS_ADMIN_PASSWORD=change-me \
./ferroacs-server --config config/ferroacs.toml
export FERROACS_URL=http://localhost:8080
export FERROACS_USER=admin
export FERROACS_PASSWORD=admin-password

# Inspect cluster & fleet
ferroacs status
ferroacs device list

# Run live TR-069 & TR-369 protocol commands
ferroacs device add-object 00D09E-SimGW-0001 Device.NAT.PortMapping. --param ExternalPort=8080 --kick
ferroacs device upload 00D09E-SimGW-0001 --kick
ferroacs device operate os::00D09E-DEV1 "Device.SelfTestDiagnostics()" --kick
ferroacs device commands 00D09E-SimGW-0001