RELAYLINK

Installation and usage guide

Document ID: OPS-001
Status: Active
Version: v3.0.0
Updated: 2026-11-29

RelayLink forwards TCP byte streams, unicast UDP datagrams, and HTTP/HTTPS application traffic. It does not replace the target service's own authentication, permissions, TLS, or network access control. The current codebase supports wire protocols v3–v5: standard and peer TCP channels remain compatible with v3 and newer Agents, unicast UDP requires v4 or newer on participating Agents, and HTTP/HTTPS reverse proxy as well as P2P preferDirect routing require v5.

1. Choose a Deployment Mode

Component Recommended Method Target Environment Reference
Server Docker Compose Linux Docker Engine Docker Compose Deployment
Server systemd Native Linux host Linux Deployment
Server Windows Service Native Windows host Windows Deployment
Agent Installer Windows Server 2012 R2 and later Windows Agent Installation
Agent systemd Linux x64 Linux Agent Deployment
Agent launchd macOS Intel / Apple Silicon macOS Agent Deployment

2. Start the Server with Docker Compose

2.1 Prerequisites

  • Linux Docker Engine.
  • Docker Compose v2.
  • PowerShell 7, used to generate initial configuration and a salted admin password hash.
  • Agents can reach the Docker host's control and data ports.

2.2 Startup

Run from the repository root:

pwsh ./scripts/start-server-compose.ps1 -AgentServerHost tunnel.example.com

Replace tunnel.example.com with the DNS name or IP address reachable by your Agents. The script prompts for an admin password and then:

  • Creates configuration, client, and database directories under .local/docker-server.
  • Generates server.json containing only the PBKDF2 password hash.
  • Builds the Server and AdminWeb container images.
  • Validates the configuration in a temporary container and starts the relaylink-server container in the background.

Default endpoints:

Purpose Address or Port
Admin Web UI http://127.0.0.1:18080/
Agent Control Port 7443/tcp
Agent Data Port 7444/tcp

The starter configuration disables tunnel TLS (tlsEnabled: false) and is intended only for validating standard proxying in a controlled environment. Before production use, HTTP/HTTPS proxying, or Agent-to-Agent peer access, mount certificates and enable TLS by following Docker Deployment.

2.3 Inspect and Stop

docker compose -f deploy/docker/compose.yaml ps
docker compose -f deploy/docker/compose.yaml logs -f --tail 200
pwsh ./scripts/stop-server-compose.ps1

The stop script preserves configuration and databases in .local/docker-server.

3. Native Server Deployment

Building from source requires the .NET 10 SDK, Node.js, pnpm, and PowerShell. Alternatively, download the self-contained Server archive for your platform from GitHub Releases and verify its checksum against SHA256SUMS.

# Linux Server
./scripts/publish.ps1 -RuntimeIdentifier linux-x64 -Component Server

# Windows Server
./scripts/publish.ps1 -RuntimeIdentifier win-x64 -Component Server

Install the service according to your platform:

  • Linux: place binaries under /opt/relaylink/server and configuration under /etc/relaylink.
  • Windows: register the service with deploy/windows/install-server-service.ps1.

Always validate the configuration before starting:

RelayLink.Server --config <server.json> --check-config

4. Server Configuration Checklist

Refer to the Linux Server Example or Windows Server Example. Never commit real configurations, secrets, certificate private keys, or password hashes to the repository.

4.1 Required Settings

Setting Purpose Recommendation
tunnel.agentServerHost Server address embedded in downloaded Agent configs Set to a DNS name or IP reachable by Agents; never 0.0.0.0
tunnel.port Control connection port Example default is 7443
tunnel.dataPort Data connection port Example default is 7444; must differ from tunnel.port
dashboard.listenAddress Admin Web UI bind address Default and recommended is 127.0.0.1; examples and Docker starter bind loopback only
dashboard.admin.passwordHash Admin password hash Generate with scripts/new-admin-password-hash.ps1
clientsDirectory Per-client configuration directory Must be readable and writable by the service account

4.2 TLS and Network Boundaries

  • Open the control port (7443/tcp) and data port (7444/tcp) only to Agent source addresses. If Server-hosted STUN is enabled for P2P direct discovery, expose peerDirect.stunListenPort (UDP) only to Agents.
  • The dashboard listener does not terminate HTTPS. It should bind only to 127.0.0.1 (or ::1). The recommended remote admin pattern is running a local Agent on the Server host and accessing the Admin UI over an encrypted peer channel; see Section 8. Docker Compose uses host networking, so 127.0.0.1 inside the container maps directly to the Docker host's loopback, allowing both local browser access at http://127.0.0.1:18080/ and a co-located Agent targeting that address.
  • If dashboard.listenAddress is set to a non-loopback address, the Server logs a SECURITY warning to the error log and stderr and continues starting. This warns about exposure scope and does not add TLS to the dashboard port. Never publish the dashboard port to the public internet or a bridged host port.
  • Admin session cookies use HttpOnly, SameSite=Strict, and Path=/. Because the dashboard listens on plaintext HTTP and browsers connect via loopback http://127.0.0.1, the Secure attribute is omitted when the request itself is not HTTPS so browsers retain the cookie. Upon successful login audit persistence, the login invalidates existing admin sessions in that process; if audit persistence fails, login fails and existing sessions remain intact. Passwords are limited to 1024 bytes. Failed login attempts are counted per direct remote IP and username (forwarded headers are ignored); consecutive failures temporarily lock out that pair, with a broader per-IP cap. When the tracking table is full, new addresses receive HTTP 503 while unexpired records are preserved.
  • Peer access, HTTP/HTTPS reverse proxying, and P2P direct negotiation all require control TLS (tunnel.tlsEnabled = true); trustedCaPemPath must contain only public CA certificates.
  • Standard proxy data tunnels (raw TCP and standard unicast UDP) currently carry plaintext payloads. Sensitive workloads must use application-level TLS, an isolated trusted link, or authorized peer access with inner TLS enabled.
  • Application-layer security groups restrict source IP/CIDR access but do not provide link encryption.

4.3 Connection Idle Timeouts and Half-Close

limits.tcpIdleTimeoutSeconds governs established standard TCP proxy connections and authorized peer connections (both direct and relayed). When neither direction transfers application data for this duration, the connection is canceled and quota is released. The default is 900 seconds; setting it to 0 disables the application-layer idle timeout. Legacy configs missing this field also default to 900 seconds. Control sockets and TCP data tunnels (standard and peer) additionally enable OS-level TCP KeepAlive (30s idle, 10s interval, 3 retries) for NAT/firewall keepalive and dead-peer detection. Because OS KeepAlive probes do not reset the application idle timer, long-lived interactive sessions such as RDP or SSH that may sit idle past 15 minutes should set limits.tcpIdleTimeoutSeconds to 0 (relying on TCP KeepAlive) or raise the timeout and restart the Server.

limits.halfCloseDrainTimeoutSeconds sets how long to wait for the reverse direction after a half-close EOF (default 300 seconds). The Server delivers both drain and TCP idle timeouts to Agents in RegisterAccepted so both ends share the same window. Changing these limits requires restarting the Server; Agents pick up new values on their next registration. The Admin UI overview displays the active TCP idle timeout.

Saving a client's maxConnections or maxPendingConnections immediately constrains new connections and pushes updated limits to online Agents. Existing active connections continue until completion without accepting new work beyond the updated cap.

4.4 SQLite Data

Traffic history, audit logs, and direct lease occupancy state can share a single SQLite database, with a recommended 90-day retention window.

  • The database directory must be writable by the service account; otherwise startup, login, or connection admission may fail. Newly created database directories are locked to owner-only access from creation (Unix 0700; dedicated inheritable DACL on Windows) so subsequent -wal and -shm files never inherit permissive permissions. Existing shared temporary directories, /tmp, Unix GroupWrite directories, or world-writable directories are rejected without modifying their permissions, and a SECURITY message is logged instructing operators to move to a dedicated RelayLink directory. Symlinks in the path are resolved; if the database file itself is a symlink or resolves to the filesystem root, startup refuses to open it. If permissions on a newly created database file cannot be tightened, startup fails and releases open handles.
  • SQLite WAL mode produces -wal and -shm sidecar files. Never back up a running database by copying only the main .db file.
  • Legacy .jsonl history files are migrated into the matching .db path on first startup; verify migration before removing old files.

5. Create and Install an Agent

5.1 Download Client Configuration

  1. Open the Admin Web UI and sign in.
  2. Create a client.
  3. Download its single-server Agent JSON configuration.
  4. Every Agent host must have a dedicated client ID and secret—never share configs across machines.

Client IDs must be 1–64 characters of lowercase letters, digits, underscores, or hyphens, starting with a letter or digit. The UI automatically normalizes uppercase input to lowercase.

5.2 Install

Platform Action Notes
Windows Run the self-contained or framework-dependent Agent installer and select the downloaded JSON Both packages require x64 and VC++ 2015–2022 x64; the framework-dependent package also requires machine-wide .NET 10 Runtime x64 and ASP.NET Core Runtime x64 (checked before stopping an existing service). Installers are currently unsigned—verify SHA256SUMS first
Linux Publish or extract linux-x64 and install via systemd Program directory read-only; state directory writable only by the service account. Install libmsquic if using encrypted QUIC P2P direct
macOS Intel Use the osx-x64 archive Create the service account and state directory per launchd guide (currently unsigned/unnotarized—verify SHA256SUMS)
macOS Apple Silicon Use the osx-arm64 archive Do not mix with Intel packages

When upgrading an existing Windows Agent installation:

  • Update Only preserves existing configuration, E2E identity, port state, and logs.
  • For legacy single-server installations, Update Only runs the standalone config migrator before starting the new Agent while keeping original files as protected rollback material.
  • Reconfigure requires a new JSON config and clears Agent-managed state.
  • The installer grants the Agent service account modify rights on C:\ProgramData\RelayLink\Agent\agent.json so the local UI can add, edit, disable, and remove server profiles; Update Only also repairs read-only permissions on older installations.
  • Service registration failures abort installation with the underlying error instead of succeeding silently.

5.3 Multi-Server Import and Online Verification

A single Agent can connect to multiple independent Servers via JSON import in the local Agent UI (see agent.example.json). Each profileId isolates its own worker, E2E identity, and state directory.

  • Verify the client shows Online in the Admin Web UI.
  • The local Agent Web UI defaults to http://127.0.0.1:18081/. Read-only status endpoints are anonymous. Adding, editing, disabling, or removing server profiles requires no management password or local token file: the UI obtains a short-lived write session validated by same-origin checks, Sec-Fetch-* headers, a session cookie, and a CSRF token.
  • Avoid running the Agent as LocalSystem or root on multi-user hosts. Use a dedicated low-privilege service account whenever possible and restrict config directory access to that account and administrators. Per ADR-0034, any local user who can reach the loopback Agent UI can modify outbound Server profiles, so this default suits single-user or admin-operated machines.
  • Importing a profile with useTls=false requires typing CONNECT_WITHOUT_TLS. Plaintext control sends the registration secret in the clear and cannot use authorized peer access or P2P direct.
  • Setting dashboardPort to 0 disables the local Agent UI and API completely.

Local read-only API endpoints:

Path Response
/api/v1/status Full status snapshot
/api/v1/channels Exposed target channels
/api/v1/mappings Authorized peer entries and bound local ports
/api/v2/status Status grouped by profileId
/api/v2/channels Target channels grouped by profileId
/api/v2/mappings Authorized peer entries grouped by profileId

These endpoints bind exclusively to 127.0.0.1 and never expose secrets or certificate fingerprints. When more than one Server profile is configured, legacy /api/v1/* and /api/status endpoints return HTTP 409; use /api/v2/* instead. Never forward these endpoints to a LAN or public network.

6. Create a Standard Proxy Channel

  1. Select an online target client in the Admin Web UI.
  2. Add a channel and specify the fixed target host and port.
  3. Leave Authorized Clients Only (authorizedClientsOnly) disabled.
  4. Choose the channel protocol:
    • TCP (transportProtocol: "tcp"): Raw byte stream forwarding, compatible with v3–v5 Agents.
    • Unicast UDP (transportProtocol: "udp"): Source-isolated datagram forwarding (udpIdleTimeoutSeconds defaults to 60s), requiring v4+ on the target Agent. Allow the chosen UDP port at the Server firewall (for Docker custom bridge networks, publish e.g. 19000:19000/udp; host network needs no extra mapping). See the UDP Forwarding Guide.
    • HTTP/HTTPS (applicationProtocol: "http"): Virtual YARP/Kestrel ingress inside the target Agent, requiring v5 and control TLS. See the HTTP/HTTPS Reverse Proxy Guide.
  5. Choose the Server listen address and port, optionally bind a security group, and save.
  6. Wait until the channel reports ready before connecting callers to the Server address.

The default listen address 0.0.0.0 binds all IPv4 interfaces on the Server—callers must connect to the Server's real IP or domain name. The Admin UI suggests free ports starting at 19000; if a port is taken before saving, reopen the form for a fresh suggestion.

The target service must be reachable from the target Agent host and continues to enforce its own authentication.

7. Create Authorized Peer Access Entries and P2P Direct Routing

  1. Ensure control TLS is enabled on the Server (tunnel.tlsEnabled = true).

  2. On the target client, create a channel with Authorized Clients Only (authorizedClientsOnly = true) enabled.

  3. Keep End-to-End Encryption (endToEndEncryptionEnabled = true) enabled; HTTP/HTTPS peer channels always enforce encryption.

  4. Choose the peer routing policy (peerRoutingPolicy):

    • relayOnly (default): All peer traffic relays through the Server. HTTP/HTTPS channels and channels targeting the loopback Automation port always enforce relayOnly.
    • preferDirect (opt-in for authorizedClientsOnly=true and applicationProtocol="raw" TCP or unicast UDP channels): Both Agents exchange candidates over the Server control plane and attempt a direct path; if direct probing fails or is unreachable, the connection automatically falls back to same-mode relay (encrypted channels never downgrade to plaintext).
      • Encrypted direct (endToEndEncryptionEnabled=true): Uses QUIC 1.3 multiplexed on a UDP socket with pinned target certificate fingerprint verification and HMAC-SHA256 channel access proof. On Linux, encrypted QUIC direct requires native libmsquic; if missing, the Agent automatically sets peerDirectQuicReady to false and uses encrypted relay (or plaintext ICE-TCP if configured).
      • Plaintext direct (endToEndEncryptionEnabled=false): Uses ICE-TCP with ephemeral Server-issued session binding keys and channel access proof.
      • Candidates, STUN, and private network allowlisting: The Server can host an optional UDP STUN responder (peerDirect.stunListenAddress / peerDirect.stunListenPort) and push probe timeouts, lease durations, and rate budgets. Private/LAN candidate probing is denied by default and must be explicitly allowlisted via peerDirect.allowedCidrs on the Server or local Agent. When both ends sit behind symmetric NATs without cone mapping, restricted proxies, or blocked ports, connections automatically fall back to same-mode relay within the probe budget. See Peer Direct and Relay Design and ADR-0043.
  5. Wait for the target Agent's initial online registration to pin its client-level E2E certificate fingerprint, and verify it out of band against:

    RelayLink.Agent --config <agent.json> --show-e2e-fingerprint
    
  6. On the caller client, add an outbound peer mapping targeting the verified client and authorized channel, confirming the encryption mode and routing policy before saving.

  7. Read the bound 127.0.0.1:<port> entry from the caller Agent's local UI or /api/v2/mappings (/api/v1/mappings on single-server setups).

Peer channels open no public business ports on the Server. Only disable Agent-to-Agent encryption on raw TCP/UDP channels when the network path is already trusted and isolated or the application protocol provides its own end-to-end encryption and authentication; plaintext relay exposes payloads to the Server and network observers.

Reinstalling or rotating an Agent certificate does not silently overwrite a pinned fingerprint. Mapping IDs derive from target client and channel IDs and cannot be renamed—delete and recreate to change them. Remove legacy channels[].e2eCertificateSha256 before upgrading old configs; see Agent-to-Agent Security Design.

7.1 Connecting to Peer Entries from the Agent Local UI

Locate the online, enabled peer entry with a bound local address on the caller Agent's local UI and connect according to the service type. Since v0.1.0-rc.17, the legacy protocol-link and .rdp download menu has been removed from raw TCP entries; since v0.1.0-rc.18, entries also display a Prefer Direct badge and active transport path (Direct QUIC, Direct TCP, or Relay):

  • HTTP/HTTPS reverse proxy entries display the full ready URL for one-click open or copy; HTTPS continues to follow the certificate and hostname requirements in the HTTP/HTTPS Reverse Proxy Guide.
  • Raw TCP and unicast UDP entries display and copy the local 127.0.0.1:<port> address for use in your native client tools or RelayLink SDKs.

Authentication and certificate prompts are handled by the operating system or client application.

8. Accessing the Server Admin UI over a Peer Channel

Keep the Server dashboard bound to loopback without terminating TLS on the dashboard port. Bind dashboard.listenAddress to 127.0.0.1:18080, run a co-located Agent on the Server host, and forward browser access over an encrypted peer channel:

  1. Create an authorized peer channel on the co-located Agent targeting 127.0.0.1:18080 (endToEndEncryptionEnabled = true, peerRoutingPolicy = "relayOnly").
  2. Grant an outbound peer mapping only to authorized caller Agents.
  3. Open http://127.0.0.1:<entry_port>/ in the caller machine's browser.

This pattern reuses standard encrypted Agent-to-Agent routing without exposing the management port to the internet. See Linux Deployment for the full walkthrough.

9. Logging and Troubleshooting

Component Log Location
Docker Server runtime logs Host .local/docker-server/data/logs/server-*.jsonl and server-error-*.jsonl (inside container: /var/lib/relaylink/logs/)
Linux Server runtime logs Configured by systemd template at /var/lib/relaylink/logs/server-*.jsonl and server-error-*.jsonl
Windows Server runtime logs logs/ under the config directory (e.g., C:\ProgramData\RelayLink\logs for C:\ProgramData\RelayLink\server.json)
Linux Agent runtime logs /var/lib/relaylink-agent/logs/agent-*.jsonl and error-*.jsonl
Windows Agent runtime logs C:\ProgramData\RelayLink\Agent\logs\agent-*.jsonl and error-*.jsonl
macOS Agent runtime logs /Library/Application Support/RelayLink/Agent/logs/agent-*.jsonl and error-*.jsonl
Windows Agent connection diagnostics C:\ProgramData\RelayLink\Agent\state\<profileId>\relaylink-diagnostics.jsonl

Both Server and Agent share RelayLink.Logging Serilog file policies. The Server defaults to logs/ under its config directory unless overridden with --log-directory <dir> (relative paths resolve from the working directory, and the service account must have write permission). Docker and systemd templates use /var/lib/relaylink/logs/ so logs persist across upgrades and restarts; existing systemd hosts should adopt the updated unit or pass --log-directory.

Server logs record open, data binding, direct routing/fallback decisions, target readiness, transfer progress, EOF, cancellation, and final outcome per connectionId, while Admin UI connection/audit views also display transportPath (relay, direct_quic, direct_tcp). Runtime logs no longer write to Console or Windows Event Log; Console output is reserved for --check-config, --show-e2e-fingerprint, and logger self-diagnostics, so docker compose logs and journalctl mainly reflect startup checks. Log files use UTF-8 JSONL containing timestamp, level, message, exception, and available profileId, clientId, sessionId, and connectionId fields—never logging raw configs, secrets, tokens, ICE credentials, or payload bytes. The Agent local web backend shares the same logging pipeline and records config-save failures as Error with filesystem exception details while returning generic errors to the UI. SQLite audit logging and its pre-success persistence gate remain unchanged.

  • agent-YYYYMMDD[_NNN].jsonl / server-YYYYMMDD[_NNN].jsonl: Info/Warning logs rotating daily or at 10 MiB, retained for 14 days (pruned during subsequent open/rotation, never while stopped). Debug/Trace are off by default; Microsoft framework logs default to Warning while host lifetime remains Info.
  • error-YYYYMMDD[_NNN].jsonl / server-error-YYYYMMDD[_NNN].jsonl: Error/Critical logs with the same rotation rules, retained indefinitely without automatic deletion across upgrades, reconfigurations, or uninstalls. Operators should back up error logs and monitor disk usage.
  • Control TCP/TLS/auth failures and reconnects log as Warning (14-day retention); config validation failures, save failures, and unexpected host exits log as Error.
  • Per-connection diagnostic files in state/<profileId>/ rotate at 4 MiB to .1 for byte-counter and phase analysis.

File logs flush per entry by default and close cleanly on normal shutdown. On Unix, log directories require 0700; on Windows, they inherit protected parent ACLs. Disk-full or permission errors inside the logger print to stderr without guaranteed persistence. --check-config never creates log directories.

9.1 Registration Rejections

Agent warnings include ErrorCode, RejectionReason, and the control phase (registration, configuration acknowledgement, or control session); the Server logs the matching reason, clientId, and source IP:

RejectionReason Troubleshooting Action
AuthenticationFailed Unauthenticated registration rejected. Missing client, disabled client, and wrong secret share this external reason to prevent client ID enumeration. Inspect the Server audit log for client_not_found, client_disabled, or authentication_failed and act accordingly
ClientNotFound Appears only in Server audit and runtime logs. Agent points to the wrong Server or the client ID was deleted; verify and re-download the config
ClientDisabled Appears only in Server audit and runtime logs. Re-enable the client in the Server Admin UI
InvalidSecret Appears only in Server audit and runtime logs. Re-download the client config and import the update into the Agent; never paste secrets into logs
IdentityInvalid / IdentityMismatch Local E2E identity is invalid or mismatches the pinned Server fingerprint; verify migration/rotation or assign a separate client ID per host
DuplicateSession Another Agent instance is online with the same client ID; check running hosts and services
ConfigurationMismatch / ClientConfigurationChanged Verify Server config and component versions, re-fetch current config, and retry

New rejection fields are backward-compatible with v3 error frames: exact reasons display on the Agent when both Server and Agent support them, whereas older Servers return only the error code and newer Agents direct operators to the Server rejection audit. Rejections remain Warning (14-day retention) and never log secrets or fingerprints. Connections dropped before TLS, with invalid frame headers, or under unauthenticated quota saturation should be diagnosed via local network/TLS exceptions alongside Server logs.

Troubleshooting checklist:

  1. Record the failure timestamp and Server connectionId.
  2. Correlate the same connectionId across Server and Agent logs, and inspect transportPath and close reason in the audit log.
  3. Check whether to agent / to caller and toTargetBytes / toServerBytes (or deduplicated direct audit bytes) advance.
  4. Identify which side initiated EOF, cancellation, direct revocation, or timeout.
  5. Check target service logs for application-layer authentication or protocol errors.

Initial RDP negotiation or bidirectional byte counts do not guarantee a healthy graphical session—always verify by signing in.

10. Upgrades and Backups

  • Upgrading the Server or an Agent disconnects active tunnels; schedule a maintenance window.
  • Upgrade the Server first, then upgrade Agents. The current Server supports wire protocols v3–v5: legacy v3 Agents retain TCP forwarding, v4+ enables unicast UDP, and v5 enables HTTP/HTTPS and P2P preferDirect. Newer Agents do not automatically downgrade when connecting to older Servers. If migrating historical v4 UDP nodes, ensure any v0.1.0-rc.9 artifact uses the rebuilt package verified against the latest SHA256SUMS.
  • Before upgrading Docker Server, back up .local/docker-server/config and the full SQLite data directory.
  • Before upgrading native Server deployments, back up server config, the clients directory, TLS certificates, and the full SQLite data directory.
  • Agent upgrades replace binaries only while preserving configs, E2E identities, and port state.
  • Never back up a running SQLite database by copying only the main .db file.

10.1 Checking and Downloading Updates from Version Status

The Version Status button in the Server and Agent top bars displays the running SemVer 2.0.0 version (untagged local builds report 0.0.0-dev). When a newer version is available or an update package is staged/ready, a non-dismissible banner appears below the top bar. Pre-cached assets for other platforms appear under Release Assets & Upgrade Tools.

By default, the Server checks the public repository LazyWorkshopCreate/RelayLink. In server.json under update, you can customize repository, channel (auto tracks stable for stable builds and prereleases for prerelease/dev builds), and agentTargetPolicy (matchServer by default), or set "enabled": false to disable outbound checks. In multi-server Agent deployments, upgrade lagging Servers first before aligning Agents. Server caches live in updates/ alongside the audit database, where admins can download, cancel, or save verified assets through the browser.

Agents receive version status over the configured control port (7443/tcp) and download packages over the data port (7444/tcp) under a 30-second atomic lease and rate limiter. Agent update.enabled defaults to true and downloadDirectory defaults to updates/ under the config directory. Plaintext control sources require entering CONNECT_WITHOUT_TLS and matching agent.json update.trustedRepository (default LazyWorkshopCreate/RelayLink). Always verify SHA256SUMS independently from the release page shown in the UI before executing an upgrade. Unix update directories use 0700; Windows update directories allow the service account, SYSTEM, and Administrators. --check-config verifies update directory and ancestor permissions without modifying existing directory ACLs; if the default update path overlaps the installation tree, proxying still starts while Version Status displays a storage diagnostic.

After verification, run the platform-matched external commands generated by the UI during a maintenance window (RelayLink intentionally omits silent in-process self-updaters). On native hosts, copy the package to an admin-only staging directory, re-verify SHA-256 on the staged copy, back up configs/identities and the stopped SQLite database (including -wal/-shm), replace binaries or run the installer, run --check-config, start the service, and verify version, online status, and traffic paths. For Docker hosts, pass -Upgrade to validate existing configs and rebuild while preserving RELAYLINK_DOCKER_ROOT, mounts, UID/GID, -ComposeFiles, -ProjectName, and -EnvFile. Check platform deployment guides for Windows/macOS unsigned binary notes.

For headless automation, query local GET /api/v2/updates/status. Before writing, fetch a cookie and csrfToken from GET /api/v2/admin/session on the same loopback origin, then send POST with the cookie, X-RelayLink-CSRF, and Origin: http://127.0.0.1:<port> to /api/v2/admin/updates/check or /api/v2/admin/updates/download (body {} or {"confirmInsecureTransport":"CONNECT_WITHOUT_TLS"} for plaintext control), or DELETE to cancel. Verified packages stream from /api/v2/updates/files/{version}/{assetName}. See Update Notification and Distribution Design.

Repository source