Configuration Reference
Put startup settings in app.yml. Set up mappings, targets, and visitor grants in the console. Configuration files · Console
Listeners and authentication
The default bind address is 0.0.0.0.
| Port | Purpose |
|---|---|
9650/TCP | Direct console and management API access over HTTP/1.1 or cleartext HTTP/2. |
9650/UDP | Direct PQC HTTP/3 with the gateway certificate, used only for device enrollment and transport token refresh. |
9651/TCP | Device authentication, heartbeats, and configuration. Supports TCP/TLS, WSS, and WS with inner TLS. |
9652/TCP+UDP | Work relay. TCP carries TCP/TLS, WSS, and WS with inner TLS. UDP carries QUIC. |
9653/TCP+UDP | Visitor ingress. TCP carries native TLS, WSS, WS with inner TLS, and paired HTTP streams. UDP carries QUIC and shares the listener with XTCP probes by default. |
9654/UDP | KCP work relay, enabled by default. |
Direct device connections use mutual certificate authentication and a transport token. Work relays also check work tickets, and visitor ingress checks mapping grants. Paired HTTP streams retain inner mutual TLS. Nginx on the same host can forward console and management API requests over the management socket. MQTT devices use broker credentials and separate end-to-end mutual certificate authentication. Listener settings · HTTPS reverse proxy
HTTPS client plugins use tls_ca_file as their ML-DSA-87 trust material and validate the address in tls_server_name. TLS-terminating client plugins take tls_cert_file and tls_key_file. Their peers must support the matching PQC suite. SSH reverse forwarding uses mlkem768x25519-sha256 for key exchange with OpenSSH Ed25519 identity keys.
MessagePack v1 tunnel protocols
The server and client use MessagePack v1 frames. Control, work relays, and visitors use separate protocols over TLS 1.3 with ML-DSA-87 mutual authentication and MLKEM1024 key exchange and the TLS_AES_256_GCM_SHA384 cipher suite. Management API and direct HTTP/3 enrollment exchange JSON on their respective listeners.
The frame and ALPN version in the table is v1. The current peer protocol generation is the initial generation, 1. The server and client accept only peers on the same generation. Deploy both from the same source revision. Peer generation definition
| Listener | Native ALPN | WSS subprotocol |
|---|---|---|
| Control | xigexb-control/msgpack/1 and capability variants | xigexb-tunnel.control.msgpack.v1 |
| Relay | xigexb-relay/msgpack/1 (TLS), xigexb-relay/quic-msgpack/1 (QUIC) | xigexb-tunnel.relay.msgpack.v1 |
| Visitor | xigexb-visitor/msgpack/1 | xigexb-tunnel.visitor.msgpack.v1 |
Structured message frames
The frame contains a header, version and role, control byte, sequence, command, payload length, MessagePack payload, CRC32, and trailer. Fixed overhead is 16 bytes and the maximum frame size is 70 KiB (71,680 bytes). Native streams prefix the frame with its 4-byte big-endian length. WebSocket uses binary message boundaries. Frame format · Command definitions
Common server options
Set the certificate hostname, data directory, and database. Set the administrator password on first startup. Server configuration
Client startup configuration
A native client needs endpoint, web_endpoint, and client_key. For initial deployment, set root to enroll with a locally generated private key, or configure certificate, certificate_key, and tunnel_ca from the ZIP. MQTT clients use the certificates and configuration from the ZIP. Client identity · MQTT access
Choose a work relay transport
With relay settings omitted and the dial policy permitting it, the client prefers KCP on the control host at 9654/UDP. If KCP is unavailable, it probes 9652/TCP on the same host, using native TLS, WSS, or WS with inner TLS according to the control connection type. The fallback must authenticate successfully. Set relay_endpoint to choose the primary relay and relay_endpoints to add protocols. MQTT devices use the app.yml from their certificate ZIP. Work relay settings · MQTT example