WebSocket-to-TCP proxy for WebSH. Bridges browser-based terminal sessions to remote SSH servers.
| Variable | Description | Required | Default |
|---|---|---|---|
TUNNEL_SECRET |
Shared secret for authentication. | Yes | - |
BIND_ADDR |
Server bind address and port. | No | 0.0.0.0:5152 |
Important
Run behind a reverse proxy with TLS (WSS) enabled in production.
-
Create
.env:TUNNEL_SECRET=your_secret
-
Run:
docker compose up -d
Upgrades to WebSocket and proxies data to target.
Parameters:
host: Target host.port: Target TCP port.secret: Must matchTUNNEL_SECRET.
Example:
ws://localhost:5152/tunnel?host=1.2.3.4&port=22&secret=mysecret
Returns 200 OK.
- TLS/WSS: Required for production.
- Secret: Use a strong random string.