Private Network CIDR Routes, Split Tunnels, and Virtual Networks
How to advertise private CIDRs through tunnels, send client traffic via Split Tunnels, and isolate overlapping IP space with virtual networks.
This page summarizes Cloudflare Zero Trust documentation on connecting private networks: you install a connector (cloudflared or Cloudflare Mesh), define CIDR routes that tell Cloudflare which IP ranges live behind that connector, then configure enrolled devices so the Cloudflare One Client actually sends traffic for those IPs through Cloudflare. End users must enroll in your Zero Trust organization; administrators can add Gateway network policies for identity-based control.
With Cloudflare Zero Trust, you can connect private networks and the services running in those networks to Cloudflare’s global network. This involves installing a connector on the private network, and then setting up routes which define the IP addresses available in that environment. Unlike published applications, private network routes can expose both HTTP and non-HTTP resources.
— Cloudflare, Private networks
CIDR routes: what they define and what they do not
Section titled “CIDR routes: what they define and what they do not”CIDR routes (dashboard: Tunnel CIDR or Mesh CIDR) are the control-plane definition of which IP network segments are reachable via a Cloudflare Tunnel or Cloudflare Mesh node.
CIDR routes define the IP network segments (such as 10.0.0.0/24) that are reachable via a Cloudflare Tunnel or a Cloudflare Mesh node.
— Cloudflare, Add routes
Creating a route connects your private side to Cloudflare’s routing tables, but it does not by itself change what leaves an end-user laptop. Cloudflare states explicitly that after you create a route, you still need client-side setup:
Cloudflare will now route requests to your private network. However, the route does not automatically capture traffic from end users. To enable client-side connectivity, refer to the cloudflared or Cloudflare Mesh setup guides.
— Cloudflare, Add routes
Prerequisites: a tunnel created with cloudflared or an active Mesh node (Add a CIDR route). For tunnel-only private exposure, the local cloudflared config can be minimal—tunnel UUID and credentials; in cloudflared 2023.9.0 and later, warp-routing.enabled is deprecated and private traffic is handled when you add a dashboard route (configuration file).
Tunnel CIDR: how to add a private network route in the dashboard
Section titled “Tunnel CIDR: how to add a private network route in the dashboard”-
In the Cloudflare dashboard, open Networking > Routes (Routes).
-
Choose Create route, then Tunnel CIDR (or Mesh CIDR for Mesh).
-
Select the tunnel or Mesh node that reaches your private network.
-
Enter the destination IP address or CIDR (for example
10.0.0.1or10.0.0.0/24). Private and public IPs are allowed (Add a CIDR route). -
Optionally assign a virtual network when ranges overlap another route in the account (virtual networks are supported for
cloudflaredtunnels only). -
Select Create route.
The same Networking > Routes table lists routes for all connector types; filter by type when mixing Tunnel, Mesh, and WAN static routes (Configure routes).
Create a tunnel route with the API
Section titled “Create a tunnel route with the API”Token permissions: Cloudflare One Networks Write or Cloudflare Tunnel Write (Create a tunnel (API)).
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/teamnet/routes" \ --request POST \ --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \ --json '{ "network": "172.16.0.0/16", "tunnel_id": "c1744f8b-faa1-48a4-9e5c-02ac921467fa", "comment": "Example private network route" }'CLI equivalents include cloudflared tunnel route ip add with optional --vnet (Useful commands).
Split Tunnels: send private IP traffic through the Cloudflare One Client
Section titled “Split Tunnels: send private IP traffic through the Cloudflare One Client”By default, WARP (the Cloudflare One Client data plane) excludes RFC 1918 ranges so local printers, home lab gear, and VPC overlap do not get pulled into the tunnel by accident.
By default, WARP excludes traffic bound for RFC 1918 space, which are IP addresses typically used in private networks and not reachable from the Internet. In order for the Cloudflare One Client to send traffic to your private network, you must configure Split Tunnels so that the IP/CIDR of your private network routes through the Cloudflare One Client.
— Cloudflare, Connect an IP/CIDR
Check whether the device profile uses Exclude or Include mode (Define Split Tunnel settings).
Split Tunnels Exclude mode: narrow the RFC 1918 exception
Section titled “Split Tunnels Exclude mode: narrow the RFC 1918 exception”Typical pattern for an AWS VPC using 172.31.0.0/16:
- Remove the broad exclude that covers your target (for example delete
172.16.0.0/12from the exclude list). - Re-add smaller CIDRs that exclude everything except your private range (for example add
172.16.0.0/13,172.24.0.0/14,172.28.0.0/15, and172.30.0.0/16so only172.31.0.0/16flows through the client).
Cloudflare provides a Base CIDR / Subtracted CIDRs calculator on Connect an IP/CIDR and repeats the same steps for AWS, Azure, and GCP deployment guides.
By tightening the private IP range included in the Cloudflare One Client, you reduce the risk of breaking a user’s access to local resources.
— Cloudflare, Connect an IP/CIDR
Split Tunnels Include mode: list destinations explicitly
Section titled “Split Tunnels Include mode: list destinations explicitly”In Include mode, add required Zero Trust domains or IPs to the include list, then include your private network’s IP/CIDR (Define Split Tunnel settings).
How the client applies Split Tunnel rules on the device
Section titled “How the client applies Split Tunnel rules on the device”The Cloudflare One Client adds a virtual interface (default WireGuard IPv4 172.16.0.2; MASQUE clients may use CGNAT 100.96.0.0/12) and edits the OS routing table so traffic matches Split Tunnel policy:
The Cloudflare One Client edits the system routing table to control what IP traffic goes to Gateway. The routing table indicates which network interface should handle packets to a particular IP address. By default, all traffic routes through the Cloudflare One Client’s virtual interface except for the IPs and domains on your Split Tunnel exclude list (which use the default interface on your device).
— Cloudflare, Client architecture
Use route get, Find-NetRoute, or ip route get as documented on Client architecture to confirm a private IP uses the WARP interface.
Virtual networks: overlapping IPs and environment isolation
Section titled “Virtual networks: overlapping IPs and environment isolation”A virtual network is a private routing domain in your Cloudflare account—similar in role to a VRF or, in cloud terms, a VPC context (Virtual networks).
A virtual network is a private routing domain within your Cloudflare account. It defines which private resources are reachable from the Cloudflare network and keeps traffic separated between different environments, partners, or applications.
— Cloudflare, Virtual networks
Each virtual network has its own routing table. The same CIDR (for example 10.0.0.0/8) can exist in multiple virtual networks because they do not share tables (Virtual networks).
| Product | Virtual network support |
|---|---|
| Cloudflare Tunnel | Multiple; assign CIDR routes per virtual network |
| Cloudflare One Client | Multiple; user or policy selects active virtual network |
| Cloudflare Mesh | Not currently supported |
| Cloudflare WAN (IPsec, GRE, CNI) | Default virtual network only |
(Virtual networks across Cloudflare)
Overlapping subnets: production vs staging example
Section titled “Overlapping subnets: production vs staging example”Without virtual networks, Cloudflare cannot tell 10.128.0.1 in production from 10.128.0.1 in staging (Manage overlapping IPs). The fix is to assign overlapping routes to named virtual networks and let users pick VNET in the client (Tunnel virtual networks).
If a user is connected to a target in VNET-A and needs to connect to a target in VNET-B, switching their VNET will not break any existing connections to targets within VNET-A. At present, connections are maintained between VNETs.
— Cloudflare, Add an infrastructure application
When adding a Tunnel CIDR route, optional virtual network selection is required only if the range overlaps another route in the account (Add a CIDR route).
Access control and hostnames beyond raw IPs
Section titled “Access control and hostnames beyond raw IPs”After routing works, optional Gateway network policies restrict who may use destination IPs (examples in AWS and MySQL network policy tutorials). The legacy Private Network application type in Access is deprecated for new apps; use self-hosted applications or Gateway Destination IP policies instead (Private network applications (legacy)).
Users can reach HTTP or TCP services by IP once routes and Split Tunnels align. For private hostnames (not only IPs), see Access a web application via its private hostname without the Cloudflare One Client and Private DNS (linked from Connect an IP/CIDR). For CDN/proxy traffic to private origins, Use private network routing on proxied DNS records is a separate path (Private network routing).
Common mistakes when private IPs still do not connect
Section titled “Common mistakes when private IPs still do not connect”- Routes without Split Tunnels — Tunnel CIDR exists in the dashboard but the client still excludes your VPC CIDR; fix Split Tunnels per Connect an IP/CIDR.
- Over-broad Split Tunnel deletes — Removing all of
10.0.0.0/8or172.16.0.0/12without re-adding subtracted ranges can break unrelated local networks; use the calculator (AWS deployment guide). - AWS DNS via VPC resolver for all
*.amazonaws.com— Can break public AWS endpoints such as SSM; route only specific Route 53 zones or VPC endpoints (AWS). - Overlapping environments without virtual networks — Traffic follows longest-prefix match and may land on the wrong tunnel (Manage overlapping IPs).
- Third-party VPN ordering — Enable Cloudflare One Client before some VPNs; test after each VPN update (Cloudflare One Client with legacy VPNs).
- Return path for device VIP space — Sites using GRE/WAN toward Cloudflare must route
100.96.0.0/12(MASQUE VIP space) back through the tunnel before deploying WARP widely (WARP).
How to check this on your site
Section titled “How to check this on your site”- In the dashboard, open Networking > Routes and confirm Tunnel CIDR entries cover your server IP or CIDR on the intended tunnel (Add routes).
- On a test device enrolled in Zero Trust, verify Split Tunnel mode and entries match your VPC CIDR (Define Split Tunnel settings).
- With the Cloudflare One Client connected, run
ip route get <PRIVATE_IP>(Linux),Find-NetRoute(Windows), orroute get(macOS) and confirm the WARP/utuninterface handles that destination (Client architecture). - Test reachability with the protocol you need (for example
curl <PRIVATE_IP>as in the GCP or Azure guides), or usecloudflared tunnel route ip get <IP/CIDR>to validate control-plane routing (Useful commands). - You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.