Networks & devices

Control plane / traffic routing

Nexus · Proxy orchestration

A Python control layer that provisions child proxies, routes them through upstream connections, and restores saved configuration after a restart.

System flow

  1. Management API
  2. Saved configuration
  3. Proxy service
  4. Upstream connection

The problem

An upstream proxy is only one part of the system. Individual clients need their own endpoint, credentials, routing rules, and lifecycle, while the server needs a consistent record of what should be running.

The build

I built the management API and Python client, connecting stored proxy configuration to the network engine. Related server automation generates proxy configuration and manages individual Linux services.

Engineering notes

Stored intent and live services

Configuration in the database and services in the proxy engine are separate states. Startup synchronization rebuilds services from saved records; changing an active proxy requires replacing its live service and handling recreation failures explicitly.

Ports and upstream routing

Port allocation checks both saved assignments and local sockets. Each child can carry its own upstream protocol and authentication, so client-facing access is managed independently of the upstream connection.

Managing the service lifecycle

A related implementation generates configuration files and systemd units for child proxies. Updates and cleanup have to account for running processes, occupied ports, missing configuration, and active sessions.

What it includes

  • HTTP and SOCKS child endpoints with optional upstream chaining.
  • Per-proxy authentication, IP access rules, bandwidth controls, and connection limits.
  • API-driven creation, edits, removal, connectivity checks, and session cutoff.
Back to the project index