Skip to main content

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

Project description

Tunnel Client

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

安装

pip install tunnel-p2p-client

使用

tunnel-p2p-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-p2p-client -k YOUR_TOKEN -p 3000
tunnel-p2p-client -k YOUR_TOKEN -p 80 -s aicq.online:7739
tunnel-p2p-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.2.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.2.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tunnel_p2p_client-2.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 750f942e12bb6e0e43ff33899fb13e05007d4b42b492ffd8f47506ede2646fad
MD5 47bfe3680f95866c939962eafcdbe9d3
BLAKE2b-256 33de39f67378a03f366a2084861c3573e5609b6b4870d591b9b356e341e5d3f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tunnel_p2p_client-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01eb9aca77ac9eaf2a5b354259fe614afa878832e912b3ae5df4ec59c2f7aca8
MD5 13d1a607b5b937dac47367f37ca3c95a
BLAKE2b-256 16db92d0292ea3d583d8515254f39255b7a07b5055110b15ffd6834f3c7ed900

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