For AI agents: the complete documentation index is available at https://www.tteam.icu/zh/llms.txt, the full documentation bundle is available at https://www.tteam.icu/zh/llms-full.txt, and this page is available as Markdown at https://www.tteam.icu/zh/ops/service/rathole.md.

rathole内网穿透

AI 总结AI 生成

核心内容:介绍 Rathole 内网穿透工具的部署和配置,比 FRP 更快、占用资源更小。

内容要点:

  • 部署与启动
  • 关键配置

内容偏向可直接复用的运维操作,涵盖命令、配置顺序和部署注意事项。

开源地址

比 frp 更快、占用资源更小;但新增配置时需要两端都添加。

启动

setup.sh
#!/bin/bash

docker rm -f rathole

docker run -id \
--restart=always \
--network host \
--name rathole \
-v ./config.toml:/app/config.toml \
rapiz1/rathole \
/app/config.toml

# ghcr.io/rathole-org/rathole:dev

配置

server.toml
client.toml
[server]
bind_addr = "0.0.0.0:44052"
default_token = "csha89sch9ah"

[server.services.home_nginx_http_port]
type = "tcp"
bind_addr = "0.0.0.0:20001"

[server.services.home_socks5_proxy_port]
type = "tcp"
bind_addr = "0.0.0.0:20002"