HUB
Sign inSign up

snsinfu/rtun-server

By snsinfu

•Updated over 5 years ago

Reverse-tunnel server

Image
0

3.2K

snsinfu/rtun-server repository overview

GitHub repository⁠

⁠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
Recent tags
Content type
Image
Digest
Size
7 MB
Last updated
over 5 years ago
docker pull snsinfu/rtun-server:latest