
Octelium
Self-hosted zero-trust secure access and tunnel platform
Octelium unifies VPN, ZTNA, secure tunnels, API and AI gateways, and PaaS-style deployments on Kubernetes you host yourself.
Cloudflare Tunnel by Cloudflare is a commercial product. These open-source projects say they can replace it.
The most popular open-source alternative to Cloudflare Tunnel is Ziti, with 4.5k GitHub stars. Other open-source alternatives to Cloudflare Tunnel are Octelium and OpenFlare. Most Cloudflare Tunnel alternatives here are Identity & Access Management (IAM) tools, some are Cloud Infrastructure Management. The first 2 say in their own README or website that they can replace Cloudflare Tunnel (the quote is shown under each one); the other 1 do the same job, shown with their own description.
Stars and activity updated 27 November 2026.

Self-hosted zero-trust secure access and tunnel platform
Octelium unifies VPN, ZTNA, secure tunnels, API and AI gateways, and PaaS-style deployments on Kubernetes you host yourself.
“Self-Hosted Secure Tunnels: A programmable infrastructure for secure tunnels and reverse proxies for both secure identity-based as well as anonymous clientless access, offering a powerful, self-hosted alternative to ngrok or Cloudflare Tunnel.”

Distributed reverse proxy and edge security control plane
OpenFlare is an open-source reverse proxy and edge gateway with a central control plane and edge agents. It offers zero-reload config sync, WAF rules, tunnels, static Pages hosting, and ACME certificates.
“🚇 Zero-Trust Tunnels (Cloudflare Tunnel Alternative): Securely publish private homelab and internal web services to edge proxies via lightweight openflared clients without public IPs or open inbound ports.”
These projects don't call themselves a Cloudflare Tunnel alternative, but two independent checks of their own description found they do the same main job.

Open-source zero-trust overlay networking platform
OpenZiti hides services behind cryptographic identity, policy, and end-to-end encryption. It supports tunnelers for existing apps and SDKs for embedded zero trust.
“OpenZiti is an open-source zero-trust networking platform that makes network services invisible to unauthorized users.”
Yes. 3 open-source projects can replace Cloudflare Tunnel, for example Ziti, Octelium and OpenFlare. 2 of them say so in their own documentation; the other 1 do the same job.
Ziti (4.5k GitHub stars) is the most popular open-source alternative to Cloudflare Tunnel on GitHub. OpenFlare has the most recent code changes. The best choice depends on your needs: compare them side by side, for example Ziti vs Octelium.
All of the 3 projects listed here are free to use under an open-source license, with no license fee: 2 permissive (such as Apache-2.0), 1 copyleft (such as AGPL-3.0). Running software on your own server still costs hosting and upkeep, and many projects also sell a hosted version.