selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

bore logo

Self-host bore

v0.6.0

Minimal Rust CLI for TCP tunnels to localhost

BetaOpen SourceMIT
docker run -it --init --rm --network host ekzhang/bore <ARGS>
Updatedlast year
LanguageRust
Setup difficultyEasy
Stars
11 582
Docker
ekzhang/bore
bore screenshot 1

What is bore?

bore is a small TCP tunnel written in Rust that forwards a local port to a remote server so a development machine behind NAT can be reached from the public internet. On the client side bore local 8000 --to bore.pub publishes a local port at an address like bore.pub:; passing --port lets you claim a specific remote port instead of a random one, and --local-host points the tunnel at another machine on your LAN. Self-hosting is a single command, bore server, which can restrict the assignable port range with --min-port/--max-port and split the control listener from the tunnel listener using --bind-addr and --bind-tunnels. An optional shared secret makes clients answer HMAC challenges on each TCP connection, though only the handshake is authenticated and tunnel traffic is not encrypted by default. The implicit control port is 7835. Install it with Homebrew, the AUR, a Gentoo overlay, cargo install bore-cli, or the versioned Docker image ekzhang/bore; prebuilt binaries cover macOS, Windows and Linux. It is deliberately minimal — the author describes it as unopinionated forwarding with "no frills attached", around 400 lines of async Rust.

bore alternatives

All self-hosted alternatives to localtunnel → All self-hosted alternatives to ngrok →

Should you self-host bore?

bore scores 66/100 on selfhost.directory (how scoring works) and ranks #11 of 23 in Remote Access. It has 11 582 GitHub stars, +59 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Rust.

Its closest alternative on selfhost.directory is Webhook.site (67/100, 6 796 stars). It scores higher overall, so compare the two before you pick. See bore vs Webhook.site side by side.

Features

  • Custom remote port selectionThe command fails if the requested port is unavailable
  • Expose LAN host
  • Hosted public server
  • Port range and bind address control
  • Shared-secret authentication
  • TCP Tunneling
  • Traffic encryptionTLS is not part of the tunnel protocol

bore README

bore

Build status Crates.io

A modern, simple TCP tunnel in Rust that exposes local ports to a remote server, bypassing standard NAT connection firewalls. That's all it does: no more, and no less.

Video demo

How to install bore

Install bore with Docker

docker run -it --init --rm --network host ekzhang/bore <ARGS>

Versioned images per release, built for AMD 64-bit, statically-linked binary in a minimal scratch container

How to configure bore

  • BORE_LOCAL_PORTEnvironment variable form of the local port argument to expose
  • BORE_SECRETEnvironment variable holding the authentication secret (env: BORE_SERVER for the server address)
  • --local-hostlocalhostThe local host to expose (besides the loopback address)
  • --toAddress of the remote server to expose local ports to (mandatory --to option)
  • --port0Optional port on the remote server to select; the command fails if unavailable

bore releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Remote Access

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…