Expand description
Natmap daemon — HTTP API server over Unix socket.
The daemon is the central authority for all iptables NAT rules. It:
- Hosts an HTTP API on a Unix socket (
/run/natmap.sock) - Auto-discovers Docker container ports on start/stop events
- Persists state to JSON and recovers after crashes
- Prevents port conflicts using
PortAllocator
Structs§
- AppState
- Shared application state held by all Axum route handlers.
- Daemon
- Error
Response - JSON error response returned by the daemon API on failures.