Rathole exposes services behind NAT through a server with a public IP, similar in workflow to frp. It is written in Rust and targets stable, low-footprint forwarding.
Overview
Rathole is a reverse proxy for NAT traversal. A client on a private network connects outbound to a publicly reachable server; traffic to chosen ports on the server is forwarded to services on the client side, such as SSH on a home NAS.
Configuration splits into server and client files (or combined files with explicit --server or --client mode). Each service requires its own token on both sides. Optional Noise protocol encryption or TLS can protect traffic without mandating self-signed certificates.
The project emphasizes throughput and stability under many connections while keeping memory use low; release binaries can be very small for embedded routers. Services can be added or removed via configuration hot reload; an HTTP management API is planned but not finished.
You can install from release binaries, build from source, or use a published Docker image. Systemd unit examples exist for running it as a background service on Linux. Logging follows Rust conventions through the RUST_LOG environment variable.
Key features
- Client–server NAT traversal forwarding
- Per-service mandatory access tokens
- Optional Noise or TLS transport encryption
- Configuration hot reload
- Small release binaries for embedded use
- Docker image and release binaries
- TCP_NODELAY default with opt-out tuning
- Systemd service examples on Linux
Use cases
- Exposing home NAS SSH to the internet
- Publishing services behind carrier NAT
- Low-resource port forwarding on routers
- Secure tunneled access without manual TLS certs
- Forwarding interactive TCP services remotely
Open-source alternative to
ngrok“A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.” source