Skip to content
AtGlance
Remote Tunnel

Agent Tunnel setup

An Agent Tunnel connector runs inside the remote network and keeps one outbound connection to the console's tunnel service: TLS with mutual authentication (WebSocket, multiplexed). Sessions come back through that connection.

1. Run the tunnel service on the console

# in the console's folder, add to .env:
ATGLANCE_TUNNEL_SECRET=$(openssl rand -hex 32)
TUNNEL_PUBLIC_NAMES=console.example.com        # the host connectors dial
docker compose -f docker-compose.yml -f docker-compose.tunnel.yml up -d

Connectors dial port 8443 (TUNNEL_PORT). If the remote firewall allows only 443, publish the tunnel service on 443 of a dedicated IP or host name.

2. Create a profile and an enrollment token

Console → Remote Tunnel → New profile → Agent Tunnel, with the allow-list (for example 10.20.0.0/24, ports 22,443). On the profile page choose Add connector: the console shows a one-time enrollment token (valid one hour, single use) with ready-to-run commands. The token ends with the fingerprint of the console's certificate authority, so the connector checks it is talking to your console before it trusts it.

3. Install the connector

Download it from Dashboard → Downloads → Remote Tunnel Connector (licensed users).

Docker

docker run -d --name atglance-connector --restart unless-stopped \
  -v atglance-connector:/var/lib/atglance-connector \
  -e ATGLANCE_CONSOLE_URL=wss://console.example.com:8443 \
  -e ATGLANCE_ENROLL_TOKEN=atgct-… \
  -e ATGLANCE_ALLOW='10.20.0.0/24:22,443' \
  atglance/connector:1.0.0

Linux (systemd)

sudo install -m 0755 atglance-connector-linux-amd64 /usr/local/bin/atglance-connector
sudo install -m 0644 atglance-connector.service /etc/systemd/system/
sudo install -d -m 0700 /var/lib/atglance-connector /etc/atglance-connector
echo "10.20.0.0/24 22,443" | sudo tee /etc/atglance-connector/allow.conf
sudo atglance-connector enroll --console wss://console.example.com:8443 --token atgct-…
sudo systemctl enable --now atglance-connector

The connector creates its private key locally (it never leaves the host) and receives a client certificate from the console for 24 hours to 7 days. It renews it automatically.

Allow-lists

A connector forwards only to targets in its own list (ATGLANCE_ALLOW or /etc/atglance-connector/allow.conf) and in the profile's list on the console. Format: 10.20.0.0/24 22,443 per line, * for every port, # comments.

Proxy

Set HTTPS_PROXY (and NO_PROXY) for the connector; it uses CONNECT to reach the console.

Two connectors (high availability)

Use Add connector twice and run the connectors on two hosts. New sessions go to the least busy connector. If one stops, the other takes over, and the console notifies you that a connector is offline.

Servers in the Site reaching the console

On the Site page, Console access switches on the web console and API (port 8000) and the agent API (port 8002). Each connector of the Site then listens on those ports, so servers and agents there use the connector host's address, or console.atglance.internal. They never need the console's real address, and no inbound firewall port opens on either side. To make the connector answer DNS for that name, set ATGLANCE_DNS=1.

Diagnose

On the connector host, run atglance-connector diagnose. It checks DNS, TCP (or the proxy), TLS and the certificate, and prints a fix for the first failure.

Revocation

On the profile page choose Revoke next to a connector: the connection is dropped at once and its certificate is refused from then on. Enroll a new connector with a new token.