kapdap/rtun
Environment variable | Description |
---|---|
RTUN_GATEWAY | WebSocket URL of rtun-server |
RTUN_KEY | Auth key associated to the agent |
RTUN_FORWARD | List of port forwardings |
docker run -it \
-e RTUN_GATEWAY="ws://0.1.2.3:9000" \
-e RTUN_KEY="samplebfeeb1356a458eabef49e7e7" \
-e RTUN_FORWARD="8080/tcp:192.168.1.10:8080" \
snsinfu/rtun
The RTUN_GATEWAY
environment variable specifies the WebSocket URL (ws:// or wss://) of the rtun-server
to use. The RTUN_KEY
environment variable specifies the authentication key to use. The RTUN_FORWARD
environment variable specifies tunnels as a comma-separated list:
RTUN_FORWARD="8080/tcp:192.168.1.10:8080, 30000/udp:192.168.1.10:30000"
Each tunnel rule looks like internet-port/protocol:host:port
. In the above example, the first rule specifies that the internet port 8080/tcp
on the server should be tunneled to 192.168.1.10:8080
.
docker pull kapdap/rtun