kapdap/rtun

By kapdap

Updated about 2 years ago

Reverse-tunnel agent

Image
0

48

Reverse-tunnel agent

Environment variableDescription
RTUN_GATEWAYWebSocket URL of rtun-server
RTUN_KEYAuth key associated to the agent
RTUN_FORWARDList 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 Command

docker pull kapdap/rtun