Every team has that one internal API a partner suddenly needs to call. The usual fixes are all bad: give the box a public IP and an allowlist, open a firewall port, or stand up a reverse proxy in a DMZ that nobody wants to own. Cloudflare's answer is now generally available, and it's simpler than I expected: point a proxied DNS record at a private IP address and the edge handles the rest.

Cloudflare announced general availability of its services for private origins in an October 30 blog post, after a closed beta that started in June. Traffic from the internet hits Cloudflare's network, gets the same WAF, caching, bot management, rate limiting and Workers treatment as a public site, and then reaches the origin over private connectivity you already run. The origin keeps its private IP and needs no inbound firewall exception.

Who this is for

Cloudflare product development manager Enrique Somoza framed the problem well in the announcement: "Their internal APIs, AI agent backends, MCP servers, and operational tools weren't built to face the Internet, but those services still need to accept requests from partners, customers, or agents over the Internet."

That list is the honest pitch. MCP servers and agent backends are the newest examples, but the same pattern covers partner webhooks, vendor-facing admin tools and old internal services that suddenly have an external customer. Before the beta, putting Cloudflare in front of any of them meant a public IP, a firewall hole, or running cloudflared beside the origin.

Cloud network consultant Simon Painter, quoted by InfoQ, pointed at the bigger shift: "For years the rule was: 'if it answers a public DNS name, it's reachable from the public internet.' That stops being true here." That cuts both ways. It's good for attack surface, and it's a new thing to explain to whoever audits your DNS zone.

How the routing works

You create a proxied A or AAAA record whose content is a private address. For RFC 1918 IPv4 ranges, RFC 6598 CGNAT space (100.64.0.0/10) and RFC 4193 unique local IPv6 (fc00::/7), the "Use private network routing" setting turns on automatically and can't be turned off; the API returns an error if you try. If the origin has a public IP that's only reachable through your private network, you can switch the setting on by hand.

Cloudflare DNS dashboard showing a proxied A record for 10.1.0.1 with the Use private network routing toggle enabled

Expand

Cloudflare DNS dashboard showing a proxied A record for 10.1.0.1 with the Use private network routing toggle enabled

In the API it's one extra field on a normal DNS record:

POST /zones/{zone_id}/dns_records with {"type": "A", "name": "app.example.com", "content": "10.0.0.50", "ttl": 300, "proxied": true, "private_routing": true}

Behind that, Cloudflare's proxy sees the private_routing flag and hands the request to its private networking layer instead of trying to reach 10.0.0.50 over the internet. From there it rides whatever connection you have into that network: IPsec, GRE, CNI, Cloudflare Tunnel or Cloudflare Mesh. TLS termination, WAF rules and caching still run at the edge exactly as before, so existing zone rules apply to the new hostname with no extra config.

For Terraform users, that's the nice part. A private service becomes a DNS record in the same module as your public ones, not a separate tunnel ingress file plus a firewall ticket.

Tunnel, WAN or Mesh: what each one needs

The prerequisites differ by how your network reaches Cloudflare, and the docs spread them across several pages. I've pulled them together from the Private Origins documentation and the GA post:

Connectivity Transport Unified Routing needed Return routes needed Software on your side Source IP the origin sees
Cloudflare Tunnel cloudflared No No cloudflared on a host in the network The host running cloudflared
Cloudflare WAN IPsec, GRE or CNI Yes Yes None on the origin Cloudflare source ranges
Cloudflare Mesh Mesh client Yes Yes A connector in the private network, can serve multiple origins Cloudflare source ranges

All three also need the Private Origins entitlement on the account (your account team turns it on), Cloudflare One connectivity, and a route to the origin in your default virtual network. If you already run Tunnel, it's the shortest path: no Unified Routing request and no routing changes. WAN customers get the cleanest origin, with nothing installed on it, at the cost of route work.

The return routes are where WAN and Mesh setups fail. You need routes in your private network for 100.64.0.0/12 (IPv4, configurable) and 2606:4700:cf1:5000::/64 (IPv6) pointing back toward Cloudflare. Cloudflare's own beta note is blunt about it: if requests time out and nothing arrives at the origin, check the return route first, because a missing one was the most common setup failure they saw.

Cloudflare diagram comparing private origins, public origins, Cloudflare One Gateway and planned private-to-private access

Expand

Cloudflare diagram comparing private origins, public origins, Cloudflare One Gateway and planned private-to-private access

The limits to read before you migrate anything

GA doesn't mean feature parity with public origins. The documentation lists these gaps:

  • Argo Smart Routing isn't supported for private origins.
  • Dedicated CDN Egress IPs aren't supported; the origin sees Cloudflare's source ranges instead.
  • Origin health checks need Load Balancing. Without it you get no health visibility.
  • Only the default virtual network works. You can't pick another one.
  • Zero Trust network session logs aren't available for this traffic.
  • Proxy Protocol isn't delivered over private networks yet, so origins that rely on it for the client IP won't get it.

The one that will actually bite people is in a caution box: with Tiered Cache enabled, cacheable requests that miss cache can fail with HTTP 403 at the upper tier when the origin is reached over Cloudflare WAN. The origin is never contacted, so its logs show nothing. Dynamic requests aren't affected. The documented workaround is a Cache Rule that bypasses cache for the affected hostnames. If you're moving a static-heavy internal app over WAN, add that rule before you flip DNS, not after the first ticket.

Beyond HTTP, Spectrum can sit in front of TCP and UDP services on private IPs, but Spectrum private origins are still in beta. Workers can reach private origins directly through Workers VPC bindings, which is the cleaner route if you want an edge function to call an internal service instead of proxying a whole hostname.

Price and the AWS and Azure alternatives

Cloudflare hasn't published a price. InfoQ noted the announcement doesn't say whether it carries an extra charge or comes with existing Enterprise contracts, and access still runs through your account team. Ask before you design around it.

Cloudflare isn't alone here. AWS offers CloudFront VPC Origins and Microsoft has Azure Front Door Premium with Private Link, as InfoQ pointed out. My take: if your private apps live in one cloud and you already use that cloud's CDN, the native option involves fewer moving parts. Cloudflare's pitch is stronger when origins are spread across on-premises racks and more than one cloud, and you'd rather have one WAF rule set than three.

A rollout order that avoids surprises

Prerequisites: the Private Origins entitlement, working Cloudflare One connectivity to the origin's network, and (for WAN or Mesh) Unified Routing enabled.

  1. Pick a low-stakes internal API with clear owners and real external callers.
  2. For WAN or Mesh, add return routes for 100.64.0.0/12 and 2606:4700:cf1:5000::/64 and confirm them with a traceroute from the origin side.
  3. Create the proxied A or AAAA record, confirm "Use private network routing" is on, and keep the TTL short while you test.
  4. Check that your WAF managed rules, rate limits and bot settings now show hits for the hostname in analytics.
  5. If you use Tiered Cache over WAN, add the cache-bypass Cache Rule first.
  6. Only then remove the old public IP, firewall exception or DMZ proxy.

Troubleshooting from the docs and beta notes: timeouts with nothing in origin logs usually mean a missing return route; 403s on cacheable paths over WAN point at the Tiered Cache issue; and a record that won't let you disable private routing is working as designed for private ranges.

If you went the Cloudflare Tunnel route to kill a bastion host, this is the next step on that path: the same tunnel, but now with the WAF and caching in front of services you'd kept off the public internet entirely.

What comes next

Today's release only covers public traffic reaching private origins. Cloudflare says it's working on private-to-private traffic, where users, services and AI agents on one private network reach applications on another through the same application services. Its example is an employee opening wiki.company.internal with WAF, rate limiting and bot management in the path. A closed beta is targeted for early 2027, and interested customers are told to ask their account team.

Originally published on Mango Developer.