Rathole is an open-source Rust reverse proxy providing high-throughput, self-hosted NAT traversal as an alternative to commercial ngrok tunnels.
Developer rapiz1 created Rathole as a high-throughput NAT traversal reverse proxy in Rust to eliminate the memory overhead of Go-based tools like frp. Maintained under the rathole-org organization, the daemon punches TCP and UDP tunnels through carrier-grade NATs to a public relay server. By removing third-party hosted dependencies, it gives teams full control over edge ingress without recurring subscription costs.
Commercial ingress services like ngrok charge subscriptions based on active user seats, metered bandwidth, and reserved domains. Teams running persistent staging environments or devices behind carrier-grade NAT quickly face compounding monthly bills. Rathole replaces ngrok's core tunneling function—forwarding TCP and UDP traffic through private firewalls to a public IP—by running as a self-hosted client-server pair. DevOps engineers deploy the server daemon to an inexpensive VPS and route unmetered traffic across arbitrary ports for only the base compute cost.
The trade-off is operational ownership. While ngrok provides instant public URLs, managed TLS certificates, and a web-based traffic inspector, Rathole intentionally omits application-layer features. It does not inspect HTTP payloads or manage hostnames; production setups pair Rathole with an upstream reverse proxy like Caddy or Nginx on the relay host for TLS termination and domain routing. For teams willing to manage a VPS, migrating from ngrok removes SaaS billing and keeps payload traffic private.
Is Rathole free for commercial use? Yes. Rathole carries the Apache-2.0 license with no feature gates, allowing teams to deploy and embed it across commercial environments without fees.
Rathole vs ngrok — which should you choose? Choose ngrok for quick webhook testing with instant URLs and a hosted traffic inspector. Choose Rathole for permanent, unmetered TCP or UDP ingress through your own VPS without monthly seat costs.
Can Rathole forward HTTP domains with SSL certificates? Rathole operates strictly at Layer 4 and does not parse HTTP headers or terminate TLS. Place a reverse proxy like Caddy in front of the Rathole server to handle domain routing and automatic certificates.
For engineering teams running a public server, Rathole provides a lean tunnel daemon that replaces recurring SaaS ingress subscriptions with low compute costs. It is not suitable if you require instant hosted domains or built-in request inspection. Active maintenance through August 2026 and an Apache-2.0 license that permits commercial integration make it a dependable choice for self-hosted edge ingress.
Lint, codegen, breaking-change checks and dependency management in one Git-native CLI. Open source, no registry lock-in.
Show that Rathole is listed as an open-source alternative. Paste into your README: