Skip to main content

RelayTunnel

用于建立中继隧道的TurboTunnel插件。

功能特性

  • WebSocket Relay Tunnel
  • HTTP(S) Relay Tunnel
  • IRC Relay Tunnel(开发中)

使用方法

安装方法

$ pip3 install relay-tunnel

WebSocket Relay Tunnel

  • 中继服务端
$ turbo-tunnel -l ws+relay://0.0.0.0:8080/relay/ -p relay_tunnel

也可以使用Docker方式来运行:

$ sudo docker build -t relay-server -f docker/Dockerfile .
$ sudo docker run -it -p 8080:80 relay-server
  • 中继节点
$ relay-tunnel -s "ws://10.0.0.1:8080/relay/?client_id=${node_id}"

其中${node_id}是中继节点的ID,可以为任意字符串,但必须保持唯一。

  • 客户端
$ turbo-tunnel -l tcp://127.0.0.1:7777 -t "ws+replay://10.0.0.1:8080/relay/?client_id=${node_id}&target_id=${target_id}" -t tcp://private.com:80

这条命令表示将中继节点所在网络中的private.com:80服务映射到本地的127.0.0.1:7777地址。

Metadata

Release files for relay-tunnel 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for relay-tunnel 0.3.2
File Size Uploaded
relay-tunnel-0.3.2.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for relay-tunnel 0.3.2
File Interpreter ABI Platform
relay_tunnel-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 34.3 kB

Release files / relay-tunnel-0.3.2.tar.gz

Download URL relay-tunnel-0.3.2.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0ffa256ff1f33a2c2d50c0241d6f35de0c5f2c8f034dc51024dd1bcfa0a5b46e
BLAKE2b-256 checksum
How to use checksums
14c03893b7500cc1c926ddd0b96563c77f49ea0d0f7a0d5a51436504c4253a40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

Release files / relay_tunnel-0.3.2-py3-none-any.whl

Download URL relay_tunnel-0.3.2-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
771e0e9dbbad43714f7aa5658ef2cb91abe7cb864b0c8388394f0a15cb91317c
BLAKE2b-256 checksum
How to use checksums
dd3f4cbec09ff09445a603efdd791a00e5cee0b0471ded7d139edba7c44adba2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page