Skip to content

rathole

Rust reverse proxy that exposes services behind NAT through a server with a public IP

Permissive (OSI) · Apache-2.0
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

26

Health

Dormant

Overview

Stars

14,496

Last commit

3 months ago

Aug 2026

Repository age

4 years

since Dec 2021

Latest version

v0.5.0

Oct 2023

Contributors

–

Releases

0

last 12 months

Language

Rust

rathole is a reverse proxy written in Rust for NAT traversal. You run a server on a machine with a public IP and a client on the device behind the NAT. Traffic sent to a port on the server is forwarded to a service on the client, such as SSH on a home NAS.

Configuration uses TOML files. Each service has its own token, and the server and client keep separate configs. Encryption can use the Noise Protocol, which needs no self-signed certificate, or TLS. You can add or remove services by hot-reloading the config file. The binary can be as small as about 500 KiB, which suits routers and embedded devices.

It works much like frp and ngrok, and the config style will feel familiar if you have used frp. Releases are available for download, there is a Docker image and a Homebrew formula, and you can build from source. It is licensed Apache-2.0. It works as a self-hosted alternative to ngrok-style tunnel services.

Who it's for

Homelab owners without a public IP

You can reach SSH or web services at home through a cheap VPS.

Skip if: Your ISP gives you a public address and you can forward ports directly.

People running tunnels on routers or embedded devices

The binary can shrink to about 500 KiB and uses little memory.

Skip if: You need a web dashboard or built-in HTTP routing.

Current frp users

The configuration style is close to frp, so migration is quick.

Skip if: You rely on frp features that rathole does not list.

The problem it solves

Services on a home or office network are hidden behind NAT and cannot be reached from the Internet. Hosted tunnel services add cost and send your traffic through a third party. rathole lets you run the tunnel on a server you control.

Strengths

  • Per-service mandatory tokens for authentication
  • Optional Noise Protocol encryption without certificates, plus TLS
  • Hot reload of services from the config file
  • Small binary that fits embedded devices
  • Docker image and Homebrew formula available

Trade-offs

  • Needs a server with a public IP that you operate
  • Development has slowed, with no releases in the past year
  • HTTP API for management is still work in progress
  • Configuration is split between client and server files

Self-host rathole

Self-hostable
Yes

Quick start

./rathole server.toml

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is rathole free?

Yes. It is open source under the Apache-2.0 license.

Can I self-host it?

Yes. You run the server part on your own machine with a public IP.

Which platforms does it support?

It runs on Linux and macOS from the command line. You can build from source for other platforms.

How is traffic encrypted?

You can use the Noise Protocol or TLS. Both are optional.

Similar tools in Tunnels, VPNs and networking

Technitium DNS Server

Tunnels, VPNs and networking

Self-hosted authoritative and recursive DNS server with ad blocking and encrypted DNS

10k 832 yesterday Thriving GPL-3.0

wstunnel

Tunnels, VPNs and networking

Single Rust binary that tunnels TCP, UDP and SOCKS5 over WebSocket or HTTP/2

7.2k 589 35 days ago Active BSD-3-Clause

iodine

Tunnels, VPNs and networking

IPv4-over-DNS tunnel for getting online where only DNS queries get through

8k 604 yesterday Active ISC

external-dns

Tunnels, VPNs and networking

Kubernetes controller that syncs Services and Ingresses to DNS providers like Route 53

9.2k 3k today Thriving Apache-2.0

ztnet

Tunnels, VPNs and networking

Self-hosted web UI for managing ZeroTier networks with multi-user and organization support

1.3k 129 5 days ago Thriving GPL-3.0

ZeroTierOne

Tunnels, VPNs and networking

Virtual Ethernet network linking devices, VMs and containers, with self-hostable

17k 2k 4 months ago Dormant Unknown

Replaces Tailscale