A secure, stable and high-performance reverse proxy for NAT traversal, written in Rust
open sourceApache-2.0self-hostablefree
rathole is a reverse proxy for NAT traversal: like frp and ngrok, it exposes a service on a device behind NAT (a NAS's SSH or web UI at home, say) to the internet through a server you run with a public IP. Each service is set up on both sides with a mandatory per-service token, and the link can be encrypted with the Noise Protocol (no certificates needed) or TLS. It's written in Rust for high throughput and low memory use, the binary can be trimmed to about 500 KiB for routers and other embedded devices, and services can be added or removed by hot-reloading the config. Its configuration is close to frp's. It ships as binaries for Linux (including MIPS and ARM), macOS and Windows, a Docker image, a crate and a Homebrew formula, under Apache-2.0.
Ways to install
Package managers
Problems it solves
- expose my home NAS's SSH to the internet when I'm behind CGNAT
- self-hosted alternative to ngrok using my own VPS
- lighter, faster replacement for frp
- reverse tunnel small enough to run on my router
- make a web service on my home server reachable from outside without opening ports
- encrypted tunnel from a device behind NAT to a public server without managing certificates
Features
- exposes services behind NAT through a server with a public IP
- mandatory per-service tokens
- optional Noise Protocol encryption, or TLS
- TCP and UDP services
- hot reload of services from the configuration file
- binary as small as about 500 KiB for embedded devices
- higher throughput and lower memory use than frp in the project's benchmarks
- binaries for Linux (x86_64, ARM, MIPS), macOS and Windows, plus a Docker image
Limitations
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what rathole does.
- sish HTTP(S), WS(S) and TCP tunnels to localhost using only SSH
- frp A fast reverse proxy to expose a local server behind a NAT or firewall to the internet
- bore Minimal TCP tunnel that exposes local ports through a remote server
- ngrok Start on localhost, ship to prod.
- Cloudflare Tunnel (cloudflared) Cloudflare Tunnel client
- Pangolin Secure access to your apps, infrastructure and AI, built on WireGuard
