BASTIONOSDocs
bastion-os.com
EN

Editions and Enterprise

Site connectors and access relays

Two small programs for the edges of your network. Both carry encrypted streams they cannot read; accounts, policies and recordings stay on the central bastion.

Enterprise Basic and above. Compare editions

The images of both are in the Enterprise archive of the version: load them on their host with docker load -i bastionos-enterprise-<version>.tar. The Compose file of each is in the installation, under deploy/connector/ and deploy/relay/.

Site connector#

A site connector runs at a remote site. It dials out to the central SSH gateway and keeps that link open, and the gateway reaches the site's assets through it. The site opens no inbound port and needs no VPN.

At the central bastion#

The connector listener is off until it has an address and a certificate: set BASTION_SSH_CONNECTOR_ADDR (for example :8022) and the certificate the sites check, BASTION_SSH_CONNECTOR_TLS_CERT_FILE and _KEY_FILE. Publish that port to the sites through a TCP load balancer, without TLS termination.

At the site#

  1. In the console, Resources → Site connectors → New connector. Copy its token, shown once, into connector_token next to the Compose file.
  2. Set the central listener and what the connector may reach:
BASTION_CONNECTOR_GATEWAY=bastion.example.com:8022
BASTION_CONNECTOR_ALLOW=10.20.0.0/16:22,10.20.5.4:3389
  1. docker compose up -d. The console shows the connector as connected.
  2. Create a zone behind the connector, then put the site's assets in it.

What the connector sees: encrypted SSH streams to the destinations it allows. It never sees a credential, a command or a recording, and the target's host key is checked by the central gateway, so a connector that diverts a stream is refused. It resolves asset names itself, so an asset can be named by a name only the site knows. Keep its volume: it holds the connector's key, which the central bastion trusts on the first link and requires afterwards.

Access relay#

An access relay is the only part of BastionOS the Internet reaches, for example in a DMZ or a cloud. It carries the HTTPS and SSH connections of external users to the central bastion, without reading them:

  • HTTPS ends at the central bastion, with the certificate of the public name: its private key never leaves the central bastion;
  • SSH ends at the central SSH gateway, with its host key;
  • the relay holds one secret, the key of its own link. No database, no OpenBao, nothing to back up.

The central bastion opens no port: its relay entry dials out to each relay and keeps the link open, with pinned keys on both sides.

Setting one up#

  1. On the central bastion, the relay entry prints its public key when it starts. Put it in BASTION_RELAY_CENTRAL_KEYS of the relay's Compose file.
  2. docker compose up -d on the relay host. The relay prints the fingerprint of its own key.
  3. In the console, Resources → Access relays → New relay, with the address the central bastion reaches the relay's link port at, and that fingerprint.
  4. Point the public name users type at the relay host, ports HTTPS and SSH. Lock its certificate down with DNS CAA records.

Only external members of the relay's organization come in through it. The relay carries SSH and Telnet sessions and the console. Native RDP clients, database clients and the SQL workbench are not offered through a relay.

© 2026 BastionOS · Source-available, self-hosted privileged access Contact