A commercial VPN tunnel you run yourself, reached the way you choose.
A NetBird exit node for your devices, a sidecar for your containers, or a
proxy for programs that opt in, through Mullvad, PIA or NordVPN, or six
providers through gluetun.
The menu · Setup · Requirements · Testing · Changelog
Molebridge runs one VPN tunnel on a Linux machine you keep running and lets traffic into it in the ways you pick. For the NetBird exit and the native sidecar, its routing fails closed: traffic forwarded into the tunnel leaves through it or not at all, and the exit repairs a changed rule or route as soon as the kernel reports it. The gluetun sidecar relies on gluetun's firewall for that, and the proxy makes a narrower promise of its own. A small web panel, Switchyard, picks the server and shows whether the exit has verified where your traffic leaves.
| Way in | For | Status | Guide |
|---|---|---|---|
| NetBird exit | phones and laptops on your NetBird network, which select the exit instead of running a second VPN | run live with Mullvad, PIA and NordVPN (PIA and NordVPN experimental) | NetBird exit |
| NetBird exit with gluetun | the same, for FastestVPN, IVPN, Surfshark or Windscribe (or Mullvad, NordVPN) | experimental; run live with NordVPN only | gluetun as a NetBird exit |
| Native sidecar | containers that must use the tunnel and nothing else, PIA first, with port-sync for qBittorrent |
experimental; run live with PIA on Kubernetes only | native sidecar |
| gluetun sidecar | containers behind a gluetun you already run, with Switchyard picking its server | experimental; run live with NordVPN only | gluetun sidecar |
| Proxy | programs that opt in (agents, scrapers, CI jobs), choosing a country, city or server per connection on Mullvad | experimental; drilled live on Mullvad only | proxy |
The extras: Switchyard, the panel; failover to a backup server, off by default; the multi-provider exit; and the network exchange for an exit and panel that share no files. The menu says who each is for, what combines with what, and each one's guarantee. The proxy's: every connection it opens leaves through the tunnel, or fails, and it promises nothing about traffic not sent to it.
You need an always-on Linux host (amd64 or arm64, kernel WireGuard) with Docker Engine and Compose 2.24 or later, or rootless Podman, and a VPN account; for a NetBird exit, also a NetBird network where you are an admin (requirements). Nothing is built and no Python is needed on the host: the tools run from the signed image.
-
Download
molebridge-<tag>.tar.gzand its.sigstore.jsonfrom the latest release and verify the bundle and the images before you extract or run anything. -
Let
molebridge init, run from the verified image (IMAGE), write a Compose file and an.envfor the ways in and extras you choose, pinned to the two verified images (IMAGEandCORE; molebridge init):docker run --rm -it --user "$(id -u):$(id -g)" -v "$HOME/molebridge:/out" "$IMAGE" \ init --out /out --image "$IMAGE" --core-image "$CORE"
-
Create the tunnel config and the secrets, then check and start (with gluetun, start it first,
docker compose up -d gluetun, because the check joins its namespace):docker compose run --rm --no-deps exit check-config docker compose up -d
Setup has every command. The shipped Compose files work
without init too.
Molebridge has one maintainer and is not a 1.0. The NetBird exit with
Mullvad is its main form; the newer forms and providers are marked
experimental where they appear, until they have more live runs.
Testing is the record: what ran live, where and at which
revision, and what hasn't. In short, each release candidate is upgraded from
the release before it on Kubernetes (native Mullvad, PIA and NordVPN exits, a
gluetun exit, a gluetun sidecar and a PIA native sidecar) and comes back
verified before it is released. Rootless Podman with Quadlet units is
supported, but since 0.14.5 no release is tested on it
(releasing). The native exits pass a tunnel-loss drill there, and since
acceptance policy 18 the proxy a live drill on a Mullvad exit. CI runs the unit, namespace-drill and
system-rig suites on every pull request, every commit on main and every
release tag. Docker Engine, NetBird Cloud, phones, a
clean install from the signed bundle, a stack written by molebridge init,
and the shipped Compose files on any engine have not been tested.
Verify the release on your own host with the checks before you rely on it, and keep a way into the host that doesn't depend on the exit. Report vulnerabilities privately; see SECURITY.md.
- Switchyard has no login unless you configure one. By default anyone who can reach it can change the exit for every device that uses it. Reach it through an SSH tunnel or an authenticating proxy, or turn on OpenID Connect sign-in, which has not run against a real identity provider.
- The NetBird exit is not a kill switch on your devices. It fails closed for the traffic it receives; a device that deselects the exit or loses NetBird uses its own connection. The proxy covers only connections sent to it.
- Molebridge configures no DNS for the NetBird exit: devices keep their own resolvers (DNS).
- Three native providers and six through gluetun, no others (other providers). PIA and NordVPN are IPv4 only.
- One active provider per exit at a time. A multi-provider exit (experimental, since 0.14.2) switches between Mullvad, PIA and NordVPN, but uses one at a time. To use several at once, run one exit per provider and serve them from one Switchyard.
- NetBird only for the exit; it was never built or tested for Tailscale or other overlays.
Molebridge is written by AI coding agents, mainly Anthropic's Claude, under
its maintainer's direction. The maintainer decides what it does and how it
behaves, and runs it on their own network; the agents write the code, the
tests and these docs, and review each other's changes. A change merges only
once CI passes: gofmt, go vet, staticcheck, govulncheck, the unit tests
(also under the race detector), the panel script's tests, the namespace
drills, the system rig and upgrade drills, a reproducible-binary check, and
both images built and checked for amd64 and arm64. CodeQL scans each change
as well. Each release candidate must also pass live acceptance on real hosts
before it is released (releasing). Bug reports and pull
requests are read and answered the same way.
Start
- The menu: the ways in and extras, who each is for, what combines.
- Requirements: host, accounts, NetBird and network, per way in.
- Setup: from the signed bundle through
molebridge initto a running stack. - Verification: the checks and failure drills to run before you rely on it.
Ways in
- NetBird exit: the exit node for devices on your NetBird network.
- gluetun as a NetBird exit: the same with gluetun holding the tunnel.
- Native sidecar: Molebridge's own tunnel, routing contract and firewall for containers.
- Several exits in one project: a native sidecar and proxy-only exits beside your own services.
- gluetun sidecar: Switchyard for an ordinary gluetun that your containers share.
- Proxy: SOCKS5 and HTTP
CONNECTfor programs that opt in. - Providers and other providers: how the providers differ, and why others aren't offered.
Extras
- Switchyard and panel access: the panel, and signing in to it.
- Failover: moving to a backup server when the selected one keeps failing.
- Multi-provider exit: one NetBird exit for several providers.
- Network exchange: an exit and its panel without shared files.
Run it
- Operations: health, upgrades, recovery, backups, rootless Podman, removal.
- Troubleshooting: symptoms and fixes.
Reference
- Configuration: every setting, file and endpoint.
- Tools: the roles and tools that run from the image.
- Architecture: the core, each way in, trust boundaries and switching.
- Compatibility: what stays the same across releases, image tags, deprecation.
Project
- Testing: what has been tested, where and at which revision.
- Roadmap: the direction, what is built, and ideas not scheduled.
- Changelog, releasing, security.
- Contributing: ground rules, layout, checks, building the image.
Molebridge isn't affiliated with Mullvad VPN AB, Private Internet Access, NordVPN or NetBird. Their names are used only to say what Molebridge works with. The panel's provider styling uses colors only, with no logos or copied assets. Molebridge is released under the MIT License, except the Molebridge logo, which is all rights reserved (the logo notice). The bundled JetBrains Mono font is under the SIL Open Font License, the bundled PIA certificate authority comes with PIA's MIT notice, and the image carries the NetBird client under its own license; THIRD_PARTY.md lists every component.
