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 Provenance Actions
relay-tunnel-0.3.2.tar.gz 15.8 kB Without provenance Details for relay-tunnel-0.3.2.tar.gz

Built distribution (wheel)

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

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

Security for relay-tunnel 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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