Deployment
Run the server where clients can reach it. Run a client on each machine that provides a private service or initiates private access.
| Deployment | Server | Client |
|---|---|---|
| Windows | Start the server | Start the client |
| Linux | Start the server | Start the client |
| macOS | Start the server | Start the client |
| Docker | Start the server | Start the client |
| Docker Compose | Start the server | Start the client |
Download the release
The official v0.0.1 release provides native binaries for both roles and a Compose deployment archive. Select your target platform and architecture, then verify the files against SHA-256. Use the configuration shipped with the release.
| Platform | Architecture | Server | Client |
|---|---|---|---|
| Windows | AMD64 | Download server | Download client |
| Windows | ARM64 | Download server | Download client |
| Linux | AMD64 | Download server | Download client |
| Linux | ARM64 | Download server | Download client |
| macOS | AMD64 | Download server | Download client |
| macOS | ARM64 | Download server | Download client |
Compose deployment archive · SHA256SUMS · Installation guide · GitHub release
For a Compose installation, use the release guide and set both Docker Hub image tags to v0.0.1. Server image · Client image
Build from source
Build both programs and images from the GitHub main branch. Use the deployment templates from the same checkout.
git clone --branch main https://github.com/xigexb2/Tunnel.git
cd TunnelNative binaries
Install Rustup, the platform C/C++ toolchain, Node.js 24, and pnpm 12.23.0. Rustup reads the repository’s toolchain file. Build the console first, then use Cargo to embed it in the server binary. Build requirements
pnpm --dir web/console install --frozen-lockfile
pnpm --dir web/console build
cargo build --release --locked -p server -p clientThe binaries are in target/release/. Windows binaries have an .exe suffix.
Docker images
Run these commands from the repository root on a Linux Docker host. Dockerfile
docker build -f deploy/Dockerfile --target server -t tunnel-server:main .
docker build -f deploy/Dockerfile --target client -t tunnel-client:main .Use docker save and docker load to transfer images to hosts with the matching architecture.
Before deployment
For first startup, prepare a dedicated empty database, a separate backup directory, new ML-DSA-87 CA material, and the initial administrator password. Give clients empty identity directories and enroll them again. Keep earlier database state, archives, and certificates with the original deployment. The native template defaults to SQLite and the Compose template defaults to MySQL. For MySQL or PostgreSQL, create a dedicated empty database and a user with schema permissions, then set TUNNEL_DATABASE_URL. Set the gateway DNS name or IP address clients connect to. Generate the root CA · Server configuration
Allow remote device connections
Direct clients need access to the control port, their chosen relay port, and the PQC HTTP/3 enrollment listener on 9650/UDP by default. The server and MQTT clients need access to the broker configured for PQC TLS. Visitor mappings also need the visitor listener. Default listeners · MQTT access
Access the console remotely
On the deployment network, open http://SERVER_ADDRESS:9650/ and sign in as admin. Nginx can terminate HTTPS with a site certificate and forward HTTP to 9650/TCP. On the same Linux host, use /run/xigexb-tunnel/admin.sock to preserve browser source addresses. HTTPS reverse proxy
Verify the deployment
Check the management HTTP response on the gateway host. If you use Nginx, check the same API path through the public management hostname. Sign in, confirm that the console and local client --config ./client.yml status both show the client as online, and test an enabled mapping from an actual access client.
curl --fail --show-error http://127.0.0.1:9650/api/v1/openapi.json