Skip to main content

Tunnel 内网穿透客户端 - 支持 IPv6/IPv4 P2P 直连与中继双模式

Project description

Tunnel Client

安全、便捷的内网穿透客户端,支持 IPv6/IPv4 P2P 直连与服务端中继双模式。

安装

pip install tunnel-client

使用

tunnel-client --key YOUR_TOKEN --port 8080

参数

参数 说明 默认值
-k, --key 认证令牌(必填) -
-p, --port 本地服务端口 8080
-s, --server 服务器地址 aicq.online:7739
--host 本地服务地址 localhost
--p2p-port P2P 监听端口 与本地端口相同
--no-p2p 禁用 P2P false

示例

tunnel-client -k YOUR_TOKEN -p 3000
tunnel-client -k YOUR_TOKEN -p 80 -s aicq.online:7739
tunnel-client -k YOUR_TOKEN -p 8080 --no-p2p

P2P 模式

默认启用,自动按优先级选择最佳连接方式:

  1. IPv6 直连 — 公网 IPv6 无 NAT,直接可达(优先)
  2. UPnP IPv4 — 路由器端口映射(非 CGNAT 环境)
  3. 中继模式 — 所有流量经服务端转发(保底)

源码运行

python -m tunnel_client --key YOUR_TOKEN --port 8080

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tunnel_p2p_client-2.1.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tunnel_p2p_client-2.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file tunnel_p2p_client-2.1.0.tar.gz.

File metadata

  • Download URL: tunnel_p2p_client-2.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for tunnel_p2p_client-2.1.0.tar.gz
Algorithm Hash digest
SHA256 36642be8b8740c6ab2062667196008a5d1d5d56d0440ff77bb960e4b486908b2
MD5 96a900d12d76c8ce80d39843e1823020
BLAKE2b-256 45da88e314db629c3dd5a62a27aae1bcc66bb319c8a7571402f290e593f91dab

See more details on using hashes here.

File details

Details for the file tunnel_p2p_client-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tunnel_p2p_client-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 690bea9573707422960f36177cf5d2810711be2202a2634b5e922940085ea665
MD5 7f18320cd6ac50472d0618d7a7a25554
BLAKE2b-256 5c8fa29219f7532805ac66267c38a9b87e44784677aebfd3a3de0cf99b70224d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page