qmetrics.net

Best Open-Source Alternatives to Cloudflare Tunnel

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.

Sort:Most starsRecentA–Z

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.

★ 4.2k⟳ yesterdayAGPL-3.0
Open Source Alternative to:ApigeeCloudflare Tunnelngrok+2
“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.”

OpenFlare

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.

★ 304⟳ todayApache-2.0
Open Source Alternative to:Cloudflare TunnelCloudflare Turnstile
“🚇 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.”

Also does the same job as Cloudflare Tunnel

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.

Ziti

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.

★ 4.5k⟳ 8 days agoApache-2.0
Open Source Alternative to:Cloudflare TunnelTwingate
“OpenZiti is an open-source zero-trust networking platform that makes network services invisible to unauthorized users.”

Compare Cloudflare Tunnel alternatives

Questions about Cloudflare Tunnel alternatives

Is there an open-source alternative to Cloudflare Tunnel?

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.

What is the best open-source alternative to Cloudflare Tunnel?

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.

Are the open-source alternatives to Cloudflare Tunnel free?

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.

Related commercial products

ngrok

ngrok

13 open-source alternatives

Twingate

Twingate

6 open-source alternatives

Cloudflare Turnstile

Cloudflare

5 open-source alternatives

OpenVPN Access Server

OpenVPN Inc.

5 open-source alternatives

Apigee

Google

4 open-source alternatives