Multi-Server#

PosternProxy supports managing multiple remote proxy servers from a single central UI. Each remote server runs a lightweight posternproxy-agent binary that connects back to the controller.

Architecture#

Browser → PosternProxy Controller (:81) → REST API → SQLite
                                               ↓
                          ┌────────────────────────────────────┐
                          │         WebSocket Hub              │
                          ├──────────────┬─────────────────────┤
                          ↓              ↓
                    Agent (Server A)   Agent (Server B)
                          ↓              ↓
                        Caddy            Caddy

The agent makes an outbound WebSocket connection to the controller and needs no inbound agent port. Open the node’s actual HTTP/HTTPS, stream, and SSH ports as required. The bundle includes the agent and Caddy; no controller service is needed on a remote node.

Adding a server#

  1. Go to Servers in the sidebar (admin only)
  2. Click + Add Server
  3. Fill in the connection details:
FieldDescription
NameDisplay name for the server
Hostname / IPAddress for SSH provisioning
SSH PortDefault: 22
SSH UserRoot or passwordless sudo
AuthenticationPassword or private key
  1. Start provisioning and inspect its output. Read the provisioning prerequisites first, including artifact architecture and advertised controller URL.
Add Remote Server wizard with an example name and documentation IP

Unsaved SSH setup example. No credentials have been entered and provisioning has not started.

Provisioning#

During provisioning, PosternProxy streams real-time output to the terminal panel in the wizard. The provisioner:

  1. Verifies the remote architecture and matching local agent/Caddy artifacts
  2. Uploads private credential and checksum files
  3. Runs the native agent installer with dedicated users and hardened services
  4. Preserves existing SSH settings and firewall rules
  5. Starts caddy and posternproxy-agent
  6. Waits for authentication and acknowledgement of the desired configuration

Manual enrollment skips SSH and displays a one-time private JSON credential for posternproxy-agent install. See the provisioning guide below.

Once correctly configured, the agent authenticates to the controller WebSocket endpoint. Check connection status and the separate desired/applied configuration status; script completion alone does not establish readiness.

See Provisioning for full details.

Server list#

The Servers page shows all registered servers:

ColumnDescription
NameDisplay name
HostnameIP or FQDN
StatusOnline / Offline / Provisioning / Error
Caddy versionLocal: installed binary configured by POSTERNPROXY_CADDY_BIN; remote: reported by the agent
UptimeController runtime for local; agent runtime for remote servers
Last seenTime of last heartbeat
Active routesNumber of proxy hosts, stream hosts, etc.
Servers page showing the local controller in a disposable instance

The local server in the example fixture. No remote servers or Caddy binary are installed; its Caddy version is unavailable.

Uptime resets when the controller or agent restarts; it is not machine or Caddy process uptime. The local Caddy version is unknown if its configured binary is missing or unreadable. It describes the installed artifact, which can differ from an already running or separately hosted Caddy instance. Local availability is checked independently through the configured Caddy admin API.

Assigning resources to servers#

When creating or editing a proxy host, redirection host, stream host, or dead host, a Server dropdown lets you assign the resource to a specific server (or leave it on the local server).

The controller saves desired configuration for the selected server and reconciles it through that server’s agent. Offline changes persist in the database and are coalesced into current state on reconnect.

Server selector#

A Server picker in the sidebar selects the server for resource views. There is no combined All Servers option in the current picker.

Offline handling#

If an agent goes offline:

  • Its status changes to Offline in the Servers list
  • Check the Servers page for its connection status
  • Desired configuration and its revision persist in the controller database
  • On reconnect, the controller sends a full sync to ensure the agent is up to date

Re-provisioning#

Click Redeploy on a server to re-run provisioning. This can be used for:

  • Updating the agent binary after a PosternProxy upgrade
  • Reapplying security hardening after OS changes
  • Recovering from a broken agent installation

Redeploy rotates credentials, disconnects the old agent, and preserves firewall rules. Review the provisioning prerequisites before using it on an existing host.

Removing a server#

Click Delete on a server to remove it from PosternProxy. This does not uninstall the agent from the remote server; you must do that manually:

# For a manually installed posternproxy-agent service:
systemctl disable --now posternproxy-agent

Historical installations may use caddyproxy-agent instead. Remove binaries, service files, and credentials only after confirming which paths your node uses. Deleting a server does not reassign its hosts to Local: move or delete assigned resources first, or foreign-key references can prevent deletion. The Local server cannot be deleted.

PosternProxyQuick start →