Sign inSign up

kapdap/rtun-server

By kapdap

Updated over 3 years ago

Reverse-tunnel server

Image
0

399

kapdap/rtun-server repository overview

Reverse-tunnel server

Environment variableDescription
RTUN_AGENTList of agents (allowed ports and auth keys)
RTUN_PORTThe port the server binds to (default: 9000)
RTUN_TLSLet's Encrypt domain (optional)
docker run -it \
  -p 9000:9000 \
  -p 8080:8080 \
  -p 30000:30000 \
  -e RTUN_AGENT="8080/tcp,30000/udp @ samplebfeeb1356a458eabef49e7e7" \
  snsinfu/rtun-server

The RTUN_AGENT environment variable is a semicolon-separated list of rtun agents to allow tunneling:

# Spaces and newlines are ignored.
RTUN_AGENT="
8080/tcp,30000/udp @ samplebfeeb1356a458eabef49e7e7;
9080/tcp @ sample1c96d79336ed361620d48d3e;
9090/tcp @ sampled915f77e1410fe92b62a435a"

Each agent specification should look like ports @ key. ports is a comma-separated list of internet-facing ports to expose. key is a token string used to authenticate the agent. In the above example, the first agent uses key samplebfeeb1356a458eabef49e7e7 to tunnel and expose TCP port 8080 and UDP port 30000 through the rtun-server.

Tag summary

Content type

Image

Digest

sha256:2445b72a6

Size

7.5 MB

Last updated

over 3 years ago

docker pull kapdap/rtun-server