Skip to content
AnswerWell geo Documentation

Research · 9 min read · Answerwell

Private Mesh Network: Connectivity, Routes, and Troubleshooting

How mesh private IP networking works: participants, CIDR routes, when to use it versus tunnel connectors, and how to verify connectivity.

This page summarizes Cloudflare documentation on Cloudflare Mesh (formerly WARP Connector): a private network that gives enrolled servers, laptops, and phones a Mesh IP and carries traffic between them over Cloudflare on TCP, UDP, and ICMP—without exposing services on the public Internet.

What Cloudflare Mesh is and how Mesh IP works

Section titled “What Cloudflare Mesh is and how Mesh IP works”

Cloudflare Mesh is a private network for services and devices in your Cloudflare One account. Each enrolled participant gets a private address; traffic between participants flows through Cloudflare.

Cloudflare Mesh is a private network for services and devices in your Cloudflare account. It gives each enrolled participant a private address and carries traffic between participants through Cloudflare.

— Cloudflare, How Cloudflare Mesh works

Every participant runs the Cloudflare One Client (warp-cli on Linux nodes in headless mode; UI client on laptops and phones). Cloudflare assigns Mesh IPs from 100.96.0.0/12 (carrier-grade NAT), which avoids overlap with common ranges like 10.0.0.0/8. You can configure a custom device IP range if needed.

Any participant can initiate traffic to another participant’s Mesh IP—device-to-device, device-to-server, and server-to-server. Client-to-client connectivity does not require a Mesh node.

All traffic flows through Cloudflare, so Gateway network policies, device posture checks, and access rules apply to every connection.

— Cloudflare, Introducing Cloudflare Mesh

Connectivity and access are separate: a participant can show Online while policy blocks its traffic. Host firewalls on each participant still control which Mesh traffic is accepted—for example, Windows Firewall blocks inbound traffic from 100.96.0.0/12 by default until you add an allow rule.

Cloudflare Mesh vs Cloudflare Tunnel: when to use which

Section titled “Cloudflare Mesh vs Cloudflare Tunnel: when to use which”

Both connect private infrastructure to Cloudflare, but they use different connection models:

Aspect Cloudflare Mesh Cloudflare Tunnel (cloudflared)
Connection model Bidirectional; either side can initiate Clients reach resources behind an outbound connector
Addressing Every participant gets a Mesh IP Published hostnames or private routes
Connector Cloudflare One Client cloudflared
OSI layer L3 L7
Protocol MASQUE QUIC or HTTP/2
Protocols TCP, UDP, ICMP HTTP/S, TCP, SSH, RDP, SMB
High availability Active-passive replicas (nodes with routes) Active-active replicas
Source IP Virtual IP of requesting device cloudflared host machine
Long-lived TCP End-to-end across the path Proxied; connections may drop on reconnect

For most VPN replacement scenarios, Cloudflare Tunnel is the easiest way to get started. It runs on all platforms (Linux, macOS, Windows, containers, Raspberry Pi), does not require return route configuration (traffic is source-NATed to the cloudflared host), and does not interfere with existing VPN software on the same machine.

— Cloudflare, Choose a connection method

Use Cloudflare Mesh when you need bidirectional connectivity with server-initiated traffic (VoIP, SIP, AD updates, SCCM), site-to-site networking between multiple locations, deployments where preserving the original source IP is important, or workloads with long-lived TCP connections sensitive to interruptions (SAP, database replication, ERP systems).

— Cloudflare, Choose a connection method

Both methods can be used together—for example, Tunnel for user-to-application access and Mesh where you need bidirectional or site-to-site connectivity (Connect with Cloudflare Mesh).

Use Mesh when participants need private IP connectivity in either direction. Use Tunnel to publish specific applications or route clients to resources behind an outbound-only connector (How Cloudflare Mesh works).

Mesh participants: device, server, and site connectivity patterns

Section titled “Mesh participants: device, server, and site connectivity patterns”

Choose an enrollment method based on what you want to connect (Get started):

Goal Participant type Enrollment method
Run a service or route a subnet from Linux Mesh node Connector token
Connect an unattended Windows, macOS, or Linux device Headless client device Service token and managed deployment
Connect a user device with identity Client device Interactive IdP enrollment

Device-to-device Mesh IP: connect two laptops without a node

Section titled “Device-to-device Mesh IP: connect two laptops without a node”

Enroll both devices in the same Cloudflare account and Zero Trust organization. Each receives a Mesh IP and can reach the other without a Mesh node (Connect two devices privately with Cloudflare Mesh).

Device profiles must use Traffic and DNS mode and route the Mesh IP range through Cloudflare: in Split Tunnels Include mode, include 100.96.0.0/12; in Exclude mode, ensure neither 100.96.0.0/12 nor a parent such as 100.64.0.0/10 is excluded. Enable Allow all Cloudflare One traffic to reach enrolled devices so private-network sources can reach enrolled device IPs (Device client settings).

Server-to-server: Mesh node on each Linux host

Section titled “Server-to-server: Mesh node on each Linux host”

Install one Mesh node per server. Services on the nodes reach each other by Mesh IP with no public IP required. When the service runs on the node itself, you do not need CIDR routes, router changes, or IP forwarding—forwarding is only for routing traffic for other hosts (Connect two servers with Cloudflare Mesh).

Site-to-site: CIDR routes and subnet routing through Mesh nodes

Section titled “Site-to-site: CIDR routes and subnet routing through Mesh nodes”

A Linux Mesh node at each site carries traffic between private subnets through Cloudflare. Hosts behind the nodes do not need the client (Connect two private networks with Cloudflare Mesh).

Each site advertises its local subnet as a CIDR route on its node, configures Split Tunnels so the remote subnet routes through Cloudflare, and (when the node is not the default gateway) adds static routes on the site router with the node’s local IP as next hop—not its Mesh IP.

Subnets must not overlap each other or your Mesh IP range.

CIDR routes: how to reach hosts behind a Mesh node

Section titled “CIDR routes: how to reach hosts behind a Mesh node”

By default, a Mesh node is reachable only by its own Mesh IP. Routes extend Mesh to printers, databases, IoT, and other hosts that cannot run the client (Routes).

  • CIDR routes forward traffic for an IP range through the node.
  • Hostname routes attract traffic for a hostname to the node (private or public).

For advertised CIDRs, the range must route through Cloudflare on both the Mesh node and client devices. Return traffic from subnet hosts back to Mesh clients requires either the node as default gateway, or a static route on the router: destination 100.96.0.0/12, next hop the node’s local subnet IP.

A route to a node’s Mesh IP is not a substitute for a route to hosts behind that node.

— Cloudflare, Connect two private networks with Cloudflare Mesh

Container nodes can enable source NAT (SRCNAT_ENABLED=true by default) so return traffic works without VPC route table changes (Run Mesh in Docker / Kubernetes).

Required account settings before participants connect

Section titled “Required account settings before participants connect”

New accounts: the dashboard wizard sets enrollment policy, a Mesh-oriented device profile (Split Tunnels Include for 100.96.0.0/12), unique device IPs, enrolled-device reachability, and Gateway TCP/UDP proxying (Get started).

Existing Cloudflare One deployments are not overwritten by the wizard. Verify manually:

  • Device enrollment rules exist.
  • Mesh node profiles route 100.96.0.0/12 through Cloudflare.
  • Allow all Cloudflare One traffic to reach enrolled devices and Assign a unique IP address to each device are enabled.
  • Mesh nodes use Traffic and DNS mode (not DNS-only or proxy-only).
  • Gateway proxy is on for protocols you use (ICMP optional for ping).

Mesh nodes are optional for client-to-client use; they are for headless Linux (or container) gateways and subnet routing.

Accounts with Cloudflare WAN need Cloudflare One Unified Routing; Legacy routing mode does not support Mesh with WAN enabled (Connectivity options).

Best practices: updates, VPC, VPN coexistence, and Tunnel on one host

Section titled “Best practices: updates, VPC, VPN coexistence, and Tunnel on one host”

Operational guidance is in Best practices.

Update a Mesh node without surprise outages

Section titled “Update a Mesh node without surprise outages”

Updating means upgrading the cloudflare-warp package on the Linux host. The node briefly disconnects and interrupts traffic through it; with high availability enabled, traffic fails over to a standby replica.

warp-cli --version
sudo apt-get update && sudo apt-get install --only-upgrade cloudflare-warp
warp-cli status

You should see Status update: Connected.

IP forwarding and cloud VPC settings for subnet routes

Section titled “IP forwarding and cloud VPC settings for subnet routes”

IP forwarding is required only when the node advertises CIDR routes. Make it persistent across reboots if sysctl -w was used before:

printf 'net.ipv4.ip_forward = 1\nnet.ipv6.conf.all.forwarding = 1\nnet.ipv6.conf.all.accept_ra = 2\n' | sudo tee /etc/sysctl.d/99-zzz-cloudflare-warp-connector.conf && sudo sysctl --system

In cloud VPCs you may also need:

Provider Setting
Google Cloud Platform Enable IP forwarding on the VM
AWS Disable source/destination checking; add a route for Mesh traffic (e.g. 100.96.0.0/12) to the EC2 instance in the subnet route table
Microsoft Azure Enable IP forwarding on the NIC; add a user-defined route for Mesh traffic to the VM’s private IP

Enabling net.ipv4.ip_forward does not override host or cloud firewalls that drop forwarded packets.

Running Mesh alongside other VPN or mesh software

Section titled “Running Mesh alongside other VPN or mesh software”

The Cloudflare One Client manages the system routing table. Other VPN or mesh clients (Tailscale, WireGuard, OpenVPN, Cisco AnyConnect, GlobalProtect, ZScaler, Netskope, and similar) compete for routing and cause unpredictable behavior.

When migrating: uninstall or disable the other client, restart the machine, then verify with warp-cli status and a ping to a Mesh IP. This applies to Mesh nodes and client devices.

Running Mesh with Cloudflare Tunnel on the same Linux host

Section titled “Running Mesh with Cloudflare Tunnel on the same Linux host”

warp-cli and cloudflared can coexist when the Mesh node is a gateway and Tunnel publishes specific apps. The Mesh node may capture outbound traffic and block cloudflared’s required connections.

Split Tunnels is the only supported method of running both connectors on the same machine. The Mesh node’s kernel-level integration overrides manual routing configurations (ip route add, iptables).

— Cloudflare, Best practices

Use Split Tunnels to exclude hostnames and IPs listed in Tunnel with firewall documentation (cluster references “Tunnel with firewall” in best practices text; link to best practices URL above).

The cloudflare/mesh image supports amd64 and arm64, includes built-in source NAT, and suits Compose, Kubernetes StatefulSet, sidecar, and ephemeral CI/CD nodes (Container image changelog, Run Mesh in Docker / Kubernetes). GKE Autopilot is not supported because it blocks required /dev/net/tun hostPath access.

Common mistakes when Mesh shows Online but traffic fails

Section titled “Common mistakes when Mesh shows Online but traffic fails”
  • Using ping as the only test without the ICMP Gateway proxy.
  • Split Tunnels excluding 100.96.0.0/12 or a parent CIDR.
  • Service bound only to a LAN IP, not the Mesh IP or 0.0.0.0.
  • Missing CIDR route, IP forwarding, return routes, or forwarded-packet firewall rules for subnet reachability.
  • Site-to-site configured in one direction only.
  • Reusing one Mesh node token for two distinct site identities when separate nodes are required.

For symptom-based steps, use Troubleshoot Cloudflare Mesh connectivity.

  1. In the Cloudflare dashboard under Networking > Mesh, confirm source and destination participants are Online and note the destination Mesh IP (Cloudflare Mesh).

  2. Verify account settings from Get started—unique device IPs, enrolled-device reachability, Gateway TCP/UDP proxy, and Mesh range in Split Tunnels.

  3. Test the application protocol you care about (not ping alone), for example:

    nc -vz <DESTINATION-MESH-IP> 22

    See Troubleshoot Cloudflare Mesh connectivity for Windows Test-NetConnection.

  4. For subnet or site-to-site paths, confirm CIDR routes, sysctl net.ipv4.ip_forward, router static routes, and Gateway network logs for blocks.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page does not match your deployment or the linked Cloudflare docs, email yimasynthetic@gmail.com with the page URL and the specific statement you want clarified or corrected.