Minimal TCP tunnel that exposes local ports through a remote server
open sourceMITself-hostablefree
bore is a small TCP tunnel written in Rust (about 400 lines) that exposes a port on your machine at a port on a remote server, getting past NAT and firewalls, like ngrok or localtunnel but for raw TCP only. One binary is both the client (bore local 8000 --to <server>) and the server (bore server), so self-hosting the server takes one command; the author also runs a free public server at bore.pub that hands out random ports. A self-hosted server can limit the port range, bind the control and tunnel listeners to different addresses, and require a shared secret, which clients prove with HMAC challenges on each connection. There's no HTTP routing, subdomains or TLS: it forwards TCP and nothing else. MIT-licensed, packaged for Homebrew, crates.io (bore-cli), the AUR and Docker.
Ways to install
Package managers
Problems it solves
- expose a port on my laptop to the internet from behind NAT
- self-hosted alternative to ngrok for raw TCP tunnels
- reach a service at home from outside without opening router ports
- run my own tunnel server with a single binary
Features
- one binary for the tunnel client and server
- forward any local TCP port, or another host on the LAN, to a remote port
- choose a specific remote port or get a random one
- server port range limits and separate bind addresses for control and tunnels
- optional shared-secret authentication with HMAC challenges on each connection
- free public server at bore.pub
- statically linked Docker image built from scratch
Limitations
- TCP only: no HTTP routing, custom subdomains or TLS termination
- the Docker image is built for amd64 only
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what bore does.
- frp A fast reverse proxy to expose a local server behind a NAT or firewall to the internet
- sish HTTP(S), WS(S) and TCP tunnels to localhost using only SSH
- rathole A secure, stable and high-performance reverse proxy for NAT traversal, written in Rust
- ngrok Start on localhost, ship to prod.
- Pangolin Secure access to your apps, infrastructure and AI, built on WireGuard
