Remote Tunnel
Published gateway
Use this when the console has only a private address, but its site can publish one port. Only the console's tunnel service is published, for example tunnel.company.com:443. The console UI and API stay private, and every Site's connectors dial out to that one address.
1. Settings on the console
In the console's .env:
- set
ATGLANCE_TUNNEL_PUBLIC_URL=wss://tunnel.company.com:443; - set
TUNNEL_PUBLIC_NAMES=tunnel.company.com.
Then start the stack with docker-compose.tunnel.yml.
2. Publish it with TCP passthrough
The firewall or proxy must pass TLS through unchanged. A proxy that terminates TLS removes the connectors' client certificates.
- Firewall: forward
public-ip:443/tcpto the console host's port 8443. - nginx: a
stream { server { listen 443; proxy_pass console-host:8443; } }block. - HAProxy:
mode tcp. - Traefik: a TCP router with
tls: { passthrough: true }. - Cloud: a TCP (layer 4) load balancer: AWS NLB, Azure Load Balancer, or a Google Cloud TCP proxy.
3. Certificate
- By default the console's own CA issues the gateway certificate. Connectors trust it through the fingerprint in their enrollment token.
- A public certificate also works: put it in
./tunnel-certs/and setTUNNEL_CERT_FILEandTUNNEL_KEY_FILE. Connectors then verify it through the system's CA store and still pin the console's CA at enrollment.
Check it
- On the console: Remote Tunnel → Published gateway → Check from the console tests DNS, TCP and TLS. Many firewalls don't allow hairpin NAT, in which case the check fails from inside.
- From a Site: run
atglance-connector diagnose.
The gateway accepts only connectors with a certificate from the console's CA, plus one-time enrollment. Everything else is refused before it reaches the console.