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.1.1.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.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tunnel_p2p_client-2.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f6da5b2ae1ae437e4802abb868949ad5f0b88044554377f8e6ab89e52cdd67c4
MD5 74e588aae51e6059d6f213b436d94fb6
BLAKE2b-256 0683a1486e3a73e7f9e4c0a902429053dfae88913ae0516f2412a78da8ee0406

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tunnel_p2p_client-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d15c321d7d2388ebb255c6c48df7c9f4f179625f1b6b8de0d21356057795de7
MD5 db94a2ded9f33277ec9a11a4da0ab67a
BLAKE2b-256 7a7930b1c7613b35c53d56366518195549450c4cebfb76b7b7948514f5bcb402

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