How a Cloudflare Tunnel migration to OpenZiti starts
Moving from Cloudflare Tunnel to OpenZiti is a re-modeling exercise, not a configuration copy. Each cloudflared connector and its published hostname maps to parts of an OpenZiti model: a service that represents the internal host and port, edge routers that carry the traffic, dial and bind policies that decide which identity can reach which service, and identities for every user, device and hosted service. Platform or network engineers usually lead this work, with an identity owner who decides who gets which group and how enrollment happens. The effort and risk depend less on the number of hostnames than on how many routes carry non-HTTP protocols such as SSH, database wire protocols or custom TCP and UDP, because each protocol may need a tunneler, an SDK or a different access path. Start by inventorying every tunnel, public hostname, private network route and Access policy in the Cloudflare account, then sort them by protocol and by who depends on them.
The bigger change is ownership. Under Cloudflare, the control plane, certificate handling and edge are operated by Cloudflare. With OpenZiti, the controller is the management plane that issues and verifies x509 identities for every participant, exposes the REST API and web admin console, and defines the service and policy graph. Your team runs it, backs it up, upgrades it and protects its keys, so decide early who holds controller administration, where the controller and its PKI live, and how identity enrollment and revocation will work for staff, contractors and workloads. Confirm the controller and router deployment layout, high availability approach and upgrade path with the OpenZiti documentation and your own environment before committing. Also confirm the current release line with the openziti/ziti releases page, since the latest stable tags change over time.
Which Cloudflare Tunnel features map to OpenZiti, and which need rework
This table maps each cloudflared tunnel and Access feature to its closest OpenZiti equivalent and marks it clean, needs rework or gap. Read the status column first, because rework rows usually mean a change in who owns the connector, the identity or the client. Gap rows are functions Cloudflare provides at its edge that OpenZiti does not replace.
| Cloudflare feature | OpenZiti equivalent | Status and what to plan |
|---|---|---|
| Outbound cloudflared connector for a private hostname | Private edge router or tunneler beside the service, making outbound connections only | Needs rework: the connector is replaced, and the service must be bound to an identity and a service definition in the controller before it is reachable. |
| Public hostname published through a tunnel | Public edge router as the entry point, with a service exposed through host or SDK access | Needs rework: DNS, TLS termination and the client path change. Confirm how your application expects certificates and hostnames before cutover. |
| Private IP network route (CIDR routing to a tunnel) | Tunneler on a host in the network, with services defined per host and port | Needs rework: each CIDR route becomes one or more explicit services. Broad subnet routes do not carry over as a single rule. |
| Non-HTTP TCP and UDP access to internal services | OpenZiti services for arbitrary TCP and UDP through tunnelers or SDKs | Clean: this is a core OpenZiti use case. Confirm UDP handling for each application during testing. |
| Access application policy (who may reach a service) | Dial policy linking identities to services | Needs rework: Access rules are rewritten as dial policies on the controller, and group membership must map to OpenZiti identities. |
| Bind policy for the service side | Bind policy linking the hosting tunneler or SDK identity to the service | Clean in concept, but no direct export exists. Define one bind identity per service rather than sharing one across services. |
| Service tokens for machine access | x509 identities issued by the controller for workloads | Needs rework: tokens are replaced with enrolled certificate identities. Plan issuance, rotation and revocation for each workload. |
| Identity provider login and posture checks through WARP | No direct counterpart: OpenZiti authenticates with certificates, not browser SSO or device posture | Gap: user login and device health checks must be designed separately, for example with an identity provider and endpoint controls. |
| Edge caching, DDoS filtering and WAF at Cloudflare's network | No counterpart: OpenZiti is an overlay for private access and does not filter public web traffic | Gap: keep an edge or WAF product in front of public hostnames, or accept the loss of these controls. |
What to export from Cloudflare and what to rebuild in OpenZiti
Migrating from Cloudflare Tunnel to OpenZiti is a re-architecture, not a configuration import. Export the tunnel, route, hostname and identity data from Cloudflare first, then rebuild each item as OpenZiti services, service policies, identities and edge router placements, plus the DNS, TLS, identity and host integrations around them.
Tunnel and route inventory
Pull every tunnel definition and its configuration through Cloudflare's API or Terraform provider, including the tunnel names, the connector hosts that run cloudflared, and the ingress rules that map each hostname to an origin. Record which tunnels carry private network routes (IP ranges and hostnames reached through WARP) and which only publish web hosts. The two groups migrate differently, so the inventory should separate them before any design work starts.
Hostname to service mapping
Each published hostname becomes an OpenZiti service with its own intercept or host configuration, and its origin address becomes the terminating side on a tunneler or SDK host. Map every ingress rule to a service name, a protocol and a host that will bind it. Note hostnames that point to several origins, since these need separate services or a load-balanced host design rather than one copied rule.
Identities and group data
Export the Access-style policy inputs your Cloudflare rules reference, such as group names, email domains, device posture checks and service tokens. OpenZiti does not read these. You issue an x509 identity for every user, device and service, then express who may reach each service through service policies. Expect the group list to be re-created by hand, and confirm which identities are human users and which are machine workloads before issuing them.
Service policies and edge router placement
Access rules do not transfer as-is. Rewrite each allowed path as a dial policy (which identities may reach which service) and a bind policy (which hosts may serve it), then decide which edge routers carry the traffic. Public routers accept internet-facing entry points, while private routers in each network only make outbound connections. Draw this placement per environment before you touch production, because it decides where firewall rules change.
DNS and TLS for internal names
Cloudflare currently answers DNS for internal hostnames and terminates TLS at its edge. After cutover, you own both. Plan the DNS records that point clients to the new entry points, and decide whether names resolve through an internal resolver or a client-side intercept. Choose certificate issuance for any name that still needs browser trust, and confirm who renews these certificates and how expiry is monitored.
SSO enrollment and host installs
Connect the enrollment flow to the same identity provider that backed Cloudflare Access, so users and devices enroll against existing groups. On each host, install the OpenZiti tunneler or embed an SDK in the application, then verify that services are dark, with no listening port exposed. Record each install as a change item, because the tunneler or SDK install is the step most often missed in a cutover plan.
Migration sequence from inventory to decommission
This sequence moves services from cloudflared tunnels to OpenZiti one group at a time, so each service is proven on the new overlay before its tunnel is removed. Every step closes with a written output that the next step depends on.
Inventory every tunnel, route and token
Export the tunnel list, ingress rules and public hostnames from Cloudflare, using the API or the Terraform provider, and record each one against the origin host, port, protocol and the Access policy that guards it. Include tunnels that run on hosts nobody currently owns, because those are the ones that get forgotten. Group services by owner, sensitivity and whether they are web or non-web traffic. The output is an inventory list with one row per service, its tunnel, its consumers and its owner. The step is done when the list has been reviewed by the service owners and no tunnel lacks a named owner.
Pilot one non-critical service
Choose a low-risk internal service with a small, known user group and a clear rollback path. Install an OpenZiti tunneler on the host beside the service, define a service and a dial policy for the pilot users only, and leave the cloudflared route untouched. Write a runbook covering the install commands, the policy names, how to verify a connection, and how to revoke access. Run the pilot for long enough to exercise normal workflows and a revocation test. The output is a pilot runbook and a short pass or fail record that names any gaps found.
Build the controller and edge routers
Deploy the OpenZiti controller and at least one edge router in infrastructure you operate, with its certificates, backups and admin access controlled by your own security team. Place public routers where external clients must reach them and private routers inside the networks that host services, since private routers only make outbound connections. Confirm that the controller's REST API and admin console are restricted to management networks. The output is a documented controller and router build, with a tested backup and restore. Confirm the supported release line and upgrade path against the OpenZiti GitHub releases page before choosing versions.
Issue identities through an enrollment process
Define how each user, device and service receives an x509 identity from the controller, including who approves enrollment, how keys are delivered, and how a lost or departing user's identity is revoked. Map identities to roles so policies reference groups rather than individuals. Enroll the pilot users first, then the service identities for each tunneler. The output is an enrolled identity register that lists each identity, its owner, its role, its enrollment date and its revocation procedure. Verify revocation with a test identity, since revoking access should terminate active connections.
Run cloudflared and OpenZiti in parallel
For each service in the next group, bring up the OpenZiti path while the cloudflared route stays live, so both paths reach the same origin. Point a small set of test users at the OpenZiti path and compare latency, error rates and logs with the Cloudflare path. Check that Access-style policies have equivalent rules in OpenZiti, including the cases where a policy depended on Cloudflare's identity or device signals that OpenZiti does not reproduce. The output is a parallel run report per service, with each difference listed and a decision on whether it is acceptable.
Cut over services in staged groups
Move services to OpenZiti in groups defined by the inventory, starting with the lowest-risk group and ending with customer-facing or critical services. For each group, update client configuration or DNS, confirm access with the named owner, and keep the cloudflared route in place until the owner signs off. Schedule cutovers in change windows agreed with the business. The output is a cutover checklist per group, signed by the service owner, that records the time, the test users, the result and the rollback steps.
Decommission tunnels and revoke tokens
After each group has run cleanly on OpenZiti for an agreed observation period, remove the cloudflared service from the hosts, delete the tunnel and its ingress rules in Cloudflare, and revoke the tunnel tokens and any service tokens tied to the old routes. Remove the matching Access applications and policies only after confirming no other system depends on them. Update the inventory, the identity register and your diagrams. The output is a decommission record per tunnel that lists the removal date, the token revocation evidence and the approver. Keep the exported Cloudflare configuration with your change records for audit purposes.
Running the OpenZiti controller and edge routers yourself
The controller is the management plane you will operate, and it is the first component to plan for. It issues and verifies x509 identities for every participant, defines which identities can reach which services through which edge routers, and exposes a REST API and a web admin console. Because every identity, service and policy lives there, you need to decide who administers it, where it runs, how its database is backed up, and how admin access is itself protected. Confirm the controller's high availability and backup options in the OpenZiti documentation for the version you plan to deploy, and check the current release state on the OpenZiti GitHub releases page before pinning a version.
The data plane is made of edge routers, and the placement decision is where your security posture is set. Public routers are the only entry points reachable from the internet, so you should place them deliberately and limit them to what clients must reach. Private routers sit inside your networks and make only outbound connections to the mesh, so no inbound firewall rules are needed for the services behind them. For a team migrating from cloudflared, this is the closest equivalent to the outbound-only connector you already run, but you must still confirm that your public routers, DNS names and TLS certificates are operated and renewed under your own process.
Choose the deployment model per service, not once for the whole estate. An edge router in a trusted zone suits network access to a segment where you cannot run software on every host. A tunneler beside the host suits a single server or appliance that must be reached without changing the application. An SDK embedded in the application suits custom software you control, because it needs no listening ports at all. Many teams mix all three. Record the model chosen for each service, since it determines which team patches what. Finally, the OpenZiti README also describes NetFoundry's fully managed, globally distributed network with SLAs and enterprise support. That is a separate choice from running the controller yourself, so confirm with NetFoundry whether it is relevant to your requirements and what it would cost before deciding.
How the migration differs by starting point
Many Cloudflare Tunnel setups publish only HTTP applications such as internal dashboards, wikis and admin consoles. For these, OpenZiti is usually not the first choice. A browser-based identity-aware proxy handles the same access pattern with less new infrastructure, so the sibling pages on Cloudflare Access vs Pomerium and the Pomerium migration path are the better read before committing to an overlay. If you still want one fabric for web and non-web traffic, OpenZiti can host the HTTP services, but expect the work to center on terminating TLS and mapping hostnames to services rather than on tunneler deployment.
- Connector replacement: each
cloudflaredroute becomes a host-side tunneler or an SDK-side change, and the hostname mapping is usually the smallest part of the work. - DNS and TLS: internal hostnames and certificates move to your own issuance, which is a separate task from the overlay itself.
- Policy count: Access policies are often few and identity-based, so policy translation is typically quick to review.
- Browser access: users reach web apps through a browser, so client rollout to laptops may be unnecessary.
- Decision point: if most routes are web apps, confirm whether a proxy meets your needs before building an overlay.
Check the number of distinct hostnames and whether any of them carry non-HTTP traffic before deciding which path applies.
Tunnels that publish databases, message brokers, SSH endpoints or other TCP services are where OpenZiti fits most directly. These services can be dark: no inbound ports are opened, and the tunneler on the host or an edge router in a trusted zone makes outbound connections only. Revoking an identity terminates its active sessions, which is a meaningful change from many tunnel setups. The work concentrates on host-side tunnelers, service definitions and dial policies.
- Tunneler rollout: install a tunneler beside each database or TCP host, and confirm the host's firewall rules allow the outbound paths the edge routers need.
- Edge router placement: decide which routers are public and which stay private, based on where clients connect from.
- Service and policy mapping: each published hostname becomes a service with bind and dial policies, so count policies per service and per identity group.
- Client changes: developers and administrators need a client tunneler or network access configuration, which is the largest user-facing change.
- Controller operations: you run the controller yourself, so plan its backup, certificate handling and upgrade path before cutover.
Before you start, inventory every tunnel route, list the protocol and port for each, and confirm which clients need access to each service.
Some teams reach internal services through custom applications that already route traffic through a tunnel. Moving these to OpenZiti can mean embedding the OpenZiti SDK so the application dials services directly with its own identity, with no listening ports and no separate tunneler. Supported SDKs include Go, C, Python, Node.js, Java, Swift and C#. This case changes application code and release cycles more than network configuration, so it usually needs developer time and testing alongside the security team's identity work.
- Code changes: replace direct connections with SDK dial calls, and handle identity enrollment and certificate rotation in the application.
- Build and release: each application team schedules its own change, so coordinate release windows across teams.
- Mixed estates: applications that cannot be changed can keep a tunneler on their host during a transition period.
- Policy count: policies usually map to application identities rather than to users, which can reduce the number of rules but changes how access is reviewed.
- Testing: verify failure behavior when the controller or routers are unreachable, since the application now depends on the overlay directly.
Ask each application owner whether the code can take an SDK dependency and which language the service uses, because that answer decides whether the change is a code task or a host task.
What drives the cost and duration of the move
This table lists the factors that move the effort of replacing cloudflared tunnels with OpenZiti, with why each one matters and how to keep it down. Read it before you ask for a quote, because the same count of tunnels can produce very different work depending on protocols, identity sources and router placement. Cloudflare subscription savings depend on your own contract, so weigh them against the infrastructure and staffing you will run yourself. No price figures are supplied here.
| Driver | Why it changes effort | How to keep it down |
|---|---|---|
| Number of tunnels and routes | Each published hostname or private route becomes an OpenZiti service, a dial policy and a bind policy, so inventory work grows with route count. | Export tunnel routes first, group them by owner and trust zone, and retire unused routes before mapping anything. |
| Number of non-HTTP protocols | Raw TCP, UDP, SSH, database and RDP traffic needs tunneler or SDK handling, and each protocol needs its own connection testing. | Start with HTTP routes you can move to a proxy, and limit OpenZiti to the protocols that cannot stay on web routes. |
| Tunnelers versus SDK changes | Tunnelers connect unmodified software on the host, while SDK integration means code changes, builds and release cycles in each application. | Use host tunnelers wherever the software allows, and reserve SDK work for applications where a listening port is a real exposure. |
| Identity source work | Each user, group and device must map to an OpenZiti identity with x509 certificates, and the controller must reflect the policies that Access used. | Export Access groups and policies first, decide which identity source is authoritative, and automate enrollment instead of issuing identities by hand. |
| Controller high availability and operations staffing | You run the controller, its database and edge routers yourself, so patching, backups, certificate rotation and on-call are ongoing work that Cloudflare handled. | Confirm the supported high availability layout in the OpenZiti documentation, assign named owners, and write runbooks before cutover. |
| Public versus private router placement | Public routers accept inbound entry from the internet and need hardening and capacity planning, while private routers only make outbound connections and need fewer firewall changes. | Place routers in private networks where possible and limit public routers to the entry points you truly need. |
| Testing of revocation and failover | Revocation must terminate active sessions and failover must keep services reachable, so each service needs a test plan and evidence, which adds cycles beyond normal rollout. | Script revocation and router failure tests per service, run them in a staging environment, and keep the results as change evidence. |
What usually goes wrong when moving off Cloudflare Tunnel
Moving from cloudflared to OpenZiti changes where traffic is inspected, who issues identities, and how services are reached. Most failed cutovers trace back to a handful of assumptions made about the edge, the host, the identity lifecycle and the controller, each of which can be checked before decommissioning anything.
Assuming edge features carry over
Cloudflare Tunnel sits behind Cloudflare's edge, so WAF rules, DDoS mitigation and caching often protect published hostnames without any work on your side. OpenZiti is an overlay for identity-based connectivity and does not replace those web edge services. Before cutover, list every edge control your Cloudflare zone applies to the migrated hostnames and confirm which of them you will rebuild with a separate WAF, reverse proxy or DDoS provider.
OpenZiti READMEHost firewalls blocking the tunneler path
Dark services accept no inbound connections, but the tunneler or service host still has to reach an OpenZiti edge router outbound. A host firewall or egress policy that allows only the old cloudflared destinations will silently break the path while the controller shows the service as healthy. Test outbound reachability from each tunneler host to the router addresses you publish, under the same egress rules production uses.
Identities issued without a lifecycle
Each participant in OpenZiti receives an x509 identity from the controller, and those identities outlive the people and hosts they were issued to. Teams often enroll tunnelers quickly during a migration and never define who approves enrollment, how long identities last, or who removes them when staff leave or hosts are retired. Write the enrollment, renewal and removal steps as a process before the first identity is issued.
Controller without backup or redundancy
The controller is the management plane: it holds identities, service definitions and policies that decide which identities reach which services through which routers. If it is a single instance with no tested backup, losing its data means re-enrolling every identity and rebuilding every policy by hand, which is the exact work the migration was meant to avoid. Confirm the backup scope, restore procedure and recovery owner, and rehearse a restore into a separate environment.
DNS and TLS cutover breaking old names
Clients, bookmarks, scripts and monitoring checks often still resolve the hostnames that cloudflared served. If DNS records change before every consumer has moved, or certificates for the old names are removed too early, those clients fail in ways that look like application outages. Inventory which clients resolve each hostname, lower record TTLs ahead of the change, and keep the old path running until the consumer list is empty.
Revocation not tested before decommission
Dark services are only as safe as the removal path. OpenZiti revocation terminates active connections, but teams often decommission cloudflared and Access policies without ever proving that a removed identity loses access to a live service. Before shutting down the Cloudflare side, revoke a test identity while a session is open, confirm the session drops, and record the result as evidence for your access review.
Questions buyers ask before moving from Cloudflare Tunnel to OpenZiti
How long does a migration from Cloudflare Tunnel to OpenZiti take?
The duration depends on how many services and routes you publish, how many of them are non-web protocols, and how much of your current setup is documented. The main drivers are the number of Cloudflare tunnels and public hostnames to map, whether each service needs a host tunneler or an SDK embedded in the application, and how many identities and access policies must be issued and reviewed. Ask for a timeline built from a written inventory of your tunnels, routes and owners, since that list sets the work. Services that only need a tunneler beside them move faster than applications that need code changes. Confirm the timing in your own environment before you commit a cutover date.
What does a self-hosted OpenZiti deployment cost, and which parts recur?
Cloudflare Tunnel is free to run, but Cloudflare Access and related Zero Trust features are priced by seat or plan, so your saving depends on what you currently pay for. With OpenZiti, the software is Apache-2.0 licensed, so the recurring costs are infrastructure and people: controller and edge router hosting, high availability, certificates and identity issuance, monitoring, backups, and patching. The one-time costs are design, migration of each route and policy, and testing. Costs rise with the number of services, regions and environments. When you request a quote, ask for each component separately, including who operates the controller after handover and what support you would buy from NetFoundry if you choose a managed network instead.
Can our own team run an OpenZiti migration without outside help?
A team with strong network and identity skills can run a migration in-house, but the work is more specialized than swapping a connector. Your team will need to design the service and policy model, operate a controller with its REST API and admin console, place public and private edge routers correctly, and manage x509 identities for users, devices and services. Outside help is common for the design review, the first production cutover and independent testing of the result. DeployOpen plans, implements, hardens, documents and supports self-hosted platforms in your infrastructure under a written, fixed scope, so you can decide which parts to hand over and which to keep in-house.
What skills and time does our staff need to put into the migration?
Plan for named owners in network engineering, identity and security operations, and the application teams that own each published service. Network engineers map tunnels to services and edge routers and confirm that private routers can make outbound connections. Identity staff define how users and devices receive x509 identities and how revocation works. Application owners confirm which services can run a tunneler and which need an SDK, and they test their own flows before cutover. Ask for a list of these roles and expected time per role in the written scope, so your staff can plan around other work.
Does OpenZiti replace Cloudflare's web-facing features like WAF, CDN and DDoS protection?
No. OpenZiti is an overlay network that gives authenticated, encrypted, dark access to private services. It does not provide a web application firewall, content delivery network, or DDoS absorption at internet scale, and it is not a public web front door. If your Cloudflare setup protects public websites or APIs, keep those controls in front of the services or in a separate edge product, and move only the private and non-web access to OpenZiti. Confirm with your security team which Cloudflare features each hostname depends on before you remove anything.
How do we run Cloudflare Tunnel and OpenZiti in parallel safely?
Run both paths for one service at a time, and move users in groups while the old route stays available for rollback. Start by publishing each service through OpenZiti with a narrow identity group, then compare access logs, latency and failure behavior against the Cloudflare route. Keep DNS and firewall changes reversible, and do not delete a tunnel until the new path has passed your test plan. Revoking an OpenZiti identity terminates active connections immediately, which helps with incident response, but test that behavior before you rely on it. Record each cutover step so auditors and your change board can trace what changed and when.
Which OpenZiti release should we plan around?
Choose a release that is published as a non-prerelease in the OpenZiti GitHub releases page, and check that the version and its prerelease status are still current on the day you plan. Pin the controller and router versions in your deployment, test upgrades in a staging environment, and schedule updates as part of your operating model. Ask your implementation partner which version they will validate and how they will handle security patches between releases.
How tunnel routes become OpenZiti services during the parallel run
The diagram starts with a client that a user runs on a laptop and reaches the private service through two paths. The OpenZiti path enters a public edge router, which connects to a private edge router inside the network, and then to a tunneler beside the service. That tunneler makes only outbound connections, so no inbound firewall rule is needed. The controller sits alongside, issuing the identities and defining which identity can reach which service. The cloudflared path stays in place until the team confirms that every route works through OpenZiti. Check identities and service policies before cutting over any route.
Client traffic reaches the private service over OpenZiti while cloudflared stays as a fallback.
How DeployOpen scopes and runs this migration
DeployOpen plans, implements, integrates, hardens, backs up, upgrades and documents self-hosted open-source platforms inside your own infrastructure, and an OpenZiti migration fits that model. The work covers the controller, the edge routers you place in public and private zones, the tunnelers or SDK changes for each service, and the identity issuance process. Because the controller is the management plane that issues and verifies x509 identities and defines which identities reach which services through which edge routers, the scope document should name who operates that controller, where its certificates and backups live, and how an administrator is recovered if the identity provider is unavailable.
Most engagements are fixed-scope. Before any work starts, scope, deliverables and timelines are agreed in writing, and a quote follows from that written scope rather than from a published price list. For this migration, ask the written scope to list each cloudflared tunnel and route being retired, the OpenZiti services that replace it, the hosts that run tunnelers, and the applications that will move to an embedded SDK. Ask for the acceptance tests for each cutover and the rollback step for each service. Ongoing support, upgrades and continuous testing can be set up as retainers once the platform is live, which matters because OpenZiti releases move quickly and your team will need a tested upgrade path.
DeployOpen also runs security testing against the resulting setup, which is useful here because the migration changes what is exposed. Dark services are meant to have no open ports, so testing should confirm that no listener is reachable, that revoking an identity ends active sessions as expected, and that the public edge routers expose only what you intended. DeployOpen does not issue audit reports or certifications. If you need evidence for an assessment, ask for the test results and configuration records, and confirm with your assessor which of them they will accept.

