rathole
14,450
Stars
852
Forks
72
Watchers
98
Open Issues
Apache-2.0
许可证
Rust
语言
2021-12-14
创建时间
2026-08-23
最近更新
项目能做什么
基于 Rust 的轻量高性能 NAT 穿透反向代理,可替代 frp 和 ngrok。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# rathole

[](https://github.com/rapiz1/rathole/stargazers)
[](https://github.com/rapiz1/rathole/releases)

[](https://github.com/rapiz1/rathole/releases)
[](https://hub.docker.com/r/rapiz1/rathole)
[](https://gitter.im/rapiz1/rathole?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[English](README.md) | [简体中文](README-zh.md)
A secure, stable and high-performance reverse proxy for NAT traversal, written in Rust
rathole, like [frp](https://github.com/fatedier/frp) and [ngrok](https://github.com/inconshreveable/ngrok), can help to expose the service on the device behind the NAT to the Internet, via a server with a public IP.
<!-- TOC -->
- [rathole](#rathole)
- [Features](#features)
- [Quickstart](#quickstart)
- [Configuration](#configuration)
- [Logging](#logging)
- [Tuning](#tuning)
- [Benchmark](#benchmark)
- [Planning](#planning)
<!-- /TOC -->
## Features
- **High Performance** Much higher throughput can be achieved than frp, and more stable when handling a large volume of connections. See [Benchmark](#benchmark)
- **Low Resource Consumption** Consumes much fewer memory than similar tools. See [Benchmark](#benchmark). [The binary can be](docs/build-guide.md) **as small as ~500KiB** to fit the constraints of devices, like embedded devices as routers.
- **Security** Tokens of services are mandatory and service-wise. The server and clients are responsible for their own configs. With the optional Noise Protocol, encryption can be configured at ease. No need to create a self-signed certificate! TLS is also supported.
- **Hot Reload** Services can be added or removed dynamically by hot-reloading the configuration file. HTTP API is WIP.
## Quickstart
A full-powered `rathole` can be obtained from the [release](https://github.com/rapiz1/rathole/releases) page. Or [build from source](docs/build-guide.md) **for other platforms and minimizing the binary**. A [Docker image](https://hub.docker.com/r/rapiz1/rathole) is also available.
The usage of `rathole` is very similar to frp. If you have experience with the latter, then the configuration is very easy for you. The only difference is that configuration of a service is split into the client side and the server side, and a token is mandatory.
To use `rathole`, you need a server with a public IP, and a device behind the NAT, where some services that need to be exposed to the Internet.
Assu
阅读完整原文
项目深度分析 AI 生成
基于 rathole 的托管式高速穿透 SaaS 服务(ngrok 替代品)
| 产品构想 | 利用 rathole 高性能、低内存特性部署多地域转发集群,面向开发者提供带有自研客户端或兼容 rathole 的开箱即用公网隧道服务。 |
| 核心功能 | 全球多节点接入、自定义域名与自动SSL、Web管理后台查看连接日志、带宽与连接数配额管理 |
| 目标用户 | 独立开发者、前端/全栈工程师、无公网IP服务器的小白用户 |
| 难度/周期 | 中等 · 1 - 2 个月 · 成本:公网带宽云服务器(多区域每月约 $50-200)、域名及DNS解析服务、自动化证书工具 |
| 收费模式 | 免费额度 + 订阅制(Freemium,按带宽/固定域名收费,如 $5-15/月) |
| 竞争风险 | 容易被滥用做灰黑产(需严格实名/备案及安全审计);带宽边际成本随用户增长而上升 |
| 依据 | 已验证事实 |
IoT 与嵌入式设备远程运维/调试专有 SDK 与管理中台
| 产品构想 | 发挥 rathole 仅 ~500KiB 体积的优势,为 IoT 硬件厂商、机器人及边缘网关团队提供轻量嵌入的设备远程穿透中台。 |
| 核心功能 | 针对 ARM/MIPS 极低资源的 C/Rust SDK 封装、设备批量认证、在线状态监控与远程 Web Shell、权限审计 |
| 目标用户 | IoT 硬件厂商、工业互联网方案集成商、边缘计算运维团队 |
| 难度/周期 | 高 · 2 - 3 个月 · 成本:云基础设施成本、多硬件平台编译测试环境 |
| 收费模式 | B2B License 授权许可 + 设备连接数阶梯计费(如每月每设备 $0.1-0.5) |
| 竞争风险 | ToB 销售周期长,硬件厂商对第三方网络安全通道审查严格 |
| 依据 | 数据支持的判断 |
rathole 可视化控制台与私有化多租户管理面板(rathole-panel)
| 产品构想 | 为已有云服务器的个人和团队提供一个自托管控制面板,通过动态生成配置/Hot Reload 或 WIP 的 HTTP API 实现图形化管理穿透规则。 |
| 核心功能 | Web UI 快速创建隧道、一键生成客户端配置/Docker-compose、流量与延迟统计、用户权限与多 Token 隔离 |
| 目标用户 | NAS 用户、Homelab 爱好者、中小企业内部 IT 运维 |
| 难度/周期 | 低 · 3 - 4 周 · 成本:极低(主要为本地开发与测试服务器支出) |
| 收费模式 | 核心开源,高级功能(SSO/LDAP集成、审计日志、团队多租户协作)采用双许可或商业授权 |
| 竞争风险 | 项目官方正在演进 HTTP API,自研面板若依赖配置文件重载可能在版本升级时产生适配成本 |
| 依据 | AI推测 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建于 2021-12-14,最近推送 2026-08-23,发布过 20 个 Release |
| 社区活跃 | Star 14,450 / Fork 852 / Issue 98(数据支持,可自行核实) |
| 许可证 | Apache-2.0 |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。