WebSocket relay tunnel plugin for turbo-tunnel.
Project description
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
地址。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
relay-tunnel-0.3.2.tar.gz
(15.8 kB
view details)
Built Distribution
File details
Details for the file relay-tunnel-0.3.2.tar.gz
.
File metadata
- Download URL: relay-tunnel-0.3.2.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ffa256ff1f33a2c2d50c0241d6f35de0c5f2c8f034dc51024dd1bcfa0a5b46e |
|
MD5 | 4c49f0d5f8d8edee7b9a252e82c56b61 |
|
BLAKE2b-256 | 14c03893b7500cc1c926ddd0b96563c77f49ea0d0f7a0d5a51436504c4253a40 |
File details
Details for the file relay_tunnel-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: relay_tunnel-0.3.2-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 771e0e9dbbad43714f7aa5658ef2cb91abe7cb864b0c8388394f0a15cb91317c |
|
MD5 | 5d3d23fd7dcae343140d1d92944dc694 |
|
BLAKE2b-256 | dd3f4cbec09ff09445a603efdd791a00e5cee0b0471ded7d139edba7c44adba2 |