A connector links your infrastructure or code to Cloudflare. Traffic then flows through Cloudflare's global network, where the same policies, identity checks, and logs apply to every connector.
Cloudflare offers four connectors. Each one suits a different kind of resource. The right choice depends on what you connect and which side starts the traffic.
People and their devices connect through the Cloudflare One Client. Infrastructure and code connect through one of four connectors. In the following diagram, hover over or focus on a connector to see how it works and who usually runs it.
How traffic arrives
Whole sites
We recommend the following defaults:
- Private access and private networks: Use Cloudflare Mesh. Mesh is the default connector for Cloudflare One, Cloudflare's secure access service edge (SASE) platform.
- Public web applications: Use Cloudflare Tunnel to publish an HTTP application on the public Internet, with or without Cloudflare Access in front of it.
- Code on Cloudflare: Use Workers VPC. It lets a Worker call private services that Mesh, Tunnel, or Cloudflare WAN connect.
- Whole sites: Use Cloudflare WAN.
Most deployments combine two or three connectors. For examples, refer to Combine connectors.
Find what you connect in the following table. The first row that matches is the connector to use.
| If you connect | And | Use |
|---|---|---|
| A private network, subnet, server, container, or device | No other conditions apply | Cloudflare Mesh |
| A private resource that AI agents need to reach | No other conditions apply | Cloudflare Mesh, with a node beside the resource |
| An application | Only users of the Cloudflare One Client should reach it | Cloudflare Mesh |
| An application | It uses UDP, such as DNS, VoIP, or video | Cloudflare Mesh |
| An application | The server must also start connections | Cloudflare Mesh |
| A web application or API on a public hostname | You use Access in front of it, or leave it open | Cloudflare Tunnel |
| A web application for each customer or device | You run a platform that needs more than 1,000 tunnels | Tunnels for Platforms |
| Code that runs on Workers | It calls many private addresses | Workers VPC: VPC Network |
| Code that runs on Workers | It calls one fixed host and port | Workers VPC: VPC Service |
| A branch office or data center | You want managed hardware with zero-touch setup | Cloudflare One Appliance |
| A branch office or data center | Your router or firewall supports IPsec or GRE | Cloudflare WAN |
| A data center | Traffic must not cross the public Internet | Cloudflare Network Interconnect |
Mesh and Tunnel both run as software beside your infrastructure. Each starts its own connection to Cloudflare, so neither needs a public IP address. They differ in the traffic they carry, which side can start a connection, and the firewall rules they need.
Mesh connects private resources. Mesh is the connector for private access in Cloudflare One. Users of the Cloudflare One Client reach private applications, servers, and networks through it. Every participant gets a private Mesh IP, and any participant can start a connection to any other. Mesh forwards packets at layer 3 (L3), so it carries any TCP, UDP, or ICMP traffic. Routes extend Mesh to subnets and private hostnames behind a node.
Tunnel publishes web applications. cloudflared receives HTTP requests from Cloudflare and proxies them to your application. To require sign-in, add Access in front of the application. Otherwise, the application is open to the public. Either way, Cloudflare DDoS protection, the Web Application Firewall (WAF), and bot and API protections apply to the traffic.
Tunnel is built for HTTP. It proxies UDP one flow at a time, so it does not suit heavy or long-lived UDP traffic. For UDP traffic, use Mesh, even for a private application.
The following diagram shows how direction differs. Select a connector, then send traffic from each side.
The diagram shows a laptop, Cloudflare, a connector, and a private server on one path. With Cloudflare Tunnel selected, a connection from the laptop reaches the server and returns. A connection from the server fails at cloudflared, because Tunnel only carries connections that clients start. With Cloudflare Mesh selected, both directions work. The laptop has a Mesh IP that the server can reach, and Mesh preserves the source IP.
The following table compares Mesh and Tunnel:
| Attribute | Cloudflare Mesh | Cloudflare Tunnel |
|---|---|---|
| Best for | Private access, private networks, servers, devices, and agents | HTTP applications on the public Internet, with or without Access |
| Direction | Both directions | Client to application only |
| Layer | L3, carrying any TCP, UDP, or ICMP traffic over MASQUE | Layer 7 (L7) HTTP proxy that also carries TCP services such as SSH and RDP |
| UDP traffic | Forwarded packet by packet | Proxied one flow at a time, which does not suit DNS at scale, VoIP, or video |
| Software | The Cloudflare One Client (warp-cli) as a Mesh node, or the cloudflare/mesh container image |
cloudflared |
| Addressing | A Mesh IP for every participant, plus CIDR and hostname routes | Public hostnames, or private routes to resources |
| Source IP | Preserved end to end | Replaced by cloudflared, though HTTP origins can read the CF-Connecting-IP header |
| Platforms | Linux hosts and containers for nodes, and desktop and mobile devices for users | Linux, macOS, Windows, Docker, and Kubernetes |
| Firewall rules | Refer to Cloudflare One Client firewall rules | Refer to Tunnel with firewall |
| Typical throughput | 350 to 750 Mbps for each node, as described in Throughput | About 750 Mbps for each replica for public traffic, or 350 to 500 Mbps for private traffic |
I already route private networks through Cloudflare Tunnel. Do I need to move?
No. Tunnel private network routes keep working for traffic that clients start, such as users who reach internal web applications from the Cloudflare One Client.
For new private access, we recommend Mesh. Move a workload to Mesh when it uses UDP, needs server-initiated traffic, or needs the original source IP. Long-lived connections, such as database replication or Active Directory traffic, also work better on Mesh. Mesh and Tunnel can run in the same account.
Workers VPC lets a Worker call private services. Use fetch() for HTTP and connect() for raw TCP.
A VPC Network binding with network_id: "cf1:network" reaches every service behind Mesh, Tunnel, and Cloudflare WAN. The address you pass at runtime selects the destination. To limit a Worker to one host and port, use a VPC Service binding instead.
Workers VPC does not replace Mesh or Tunnel. It builds on them. Connect the private network first, then bind your Worker to it.
Cloudflare WAN connects branch offices and data centers at the network layer. This includes every user, phone, printer, and device at the site.
The Cloudflare One Appliance is a hardware or virtual appliance that configures itself after you connect it. If a site already has a router or firewall that supports IPsec or GRE, connect that device instead. To keep traffic off the public Internet, use Cloudflare Network Interconnect (CNI).
Cloudflare WAN requires an Enterprise plan.
Throughput depends on the connector, the type of traffic, and the host. The following table lists typical throughput on a host with 4 virtual CPUs (vCPUs) and 4 GB of RAM:
| Connector | Traffic | Typical throughput |
|---|---|---|
| Cloudflare Mesh | Private traffic through a Mesh node | 350 to 750 Mbps for each node |
| Cloudflare One Client | Traffic from one device | 350 to 750 Mbps for each device |
| Cloudflare Tunnel | Public Internet traffic to a published application | About 750 Mbps for each replica |
| Cloudflare Tunnel | Private traffic from Cloudflare One Client users | 350 to 500 Mbps for each replica |
| Cloudflare WAN and the Cloudflare One Appliance | Site traffic over IPsec | 1 to 2 Gbps or more for each IPsec tunnel |
Use these figures for planning. They are not guarantees, because your traffic and network path also affect throughput.
A host with fewer resources delivers less throughput. At this time, a host with more resources does not raise throughput above these values. For sustained throughput above 1 Gbps, use Cloudflare WAN.
For host sizing, refer to Tunnel system requirements and Mesh host sizing.
AI agents need network access, not application access. Human sign-in depends on steps an agent cannot complete, such as opening a browser, signing in to an identity provider (IdP), or approving a multi-factor authentication (MFA) prompt.
Common workarounds expose a credential. A public endpoint protected by a shared secret is open to anyone who finds the secret. A VPN credential gives the agent access to the whole network, and the logs only show that a device connected.
Mesh makes the agent a participant in your private network instead. Run a Mesh node beside the private resource, then have the agent connect to the node's Mesh IP or hostname. Agents on servers and in containers get a service identity. Agents on laptops use the identity of the signed-in user. You can then write separate policies for people and for workloads.
In the following diagram, hover over or focus on where an agent runs to see how it connects.
Where the agent runs
Each pattern follows the same model. A node sits beside the resource, and a route or hostname route makes the resource reachable. The agent then connects to it, and Gateway logs every call.
Connectors share one routing table and one policy plane, so you can combine them without extra infrastructure. The following table lists common combinations:
| Scenario | Connectors |
|---|---|
| A remote workforce reaches internal applications and servers | The Cloudflare One Client for users, Mesh for private applications and networks, and Tunnel for public web applications |
| A software as a service (SaaS) or developer platform reaches private customer environments | Tunnel, with Tunnels for Platforms as the number of customers grows |
| A cloud-native team runs private APIs and agents | Mesh nodes in each VPC or cluster, and Workers VPC for code on Cloudflare |
| An enterprise connects branch offices and data centers | Cloudflare WAN at each site, the Cloudflare One Client for remote users, Mesh for cloud workloads, and Tunnel for public web applications |
When you combine connectors, keep one inventory of routes and record which connector owns each prefix. Overlapping routes can send traffic to the wrong connector.
For routing priority, maximum transmission unit (MTU) planning, and a compatibility matrix, refer to Connectivity options.
The following table lists common mistakes and how to avoid them:
| Mistake | Result | Fix |
|---|---|---|
| Sending heavy UDP traffic through Tunnel | cloudflared tracks every UDP flow, so high-volume DNS, VoIP, or video traffic can drop packets. |
Carry UDP traffic over Mesh. |
| Using Tunnel as a site gateway | Applications behind cloudflared cannot start connections through the tunnel. |
Use Mesh or Cloudflare WAN when the network must start traffic. |
| Treating Tunnel private routes as site-to-site links | A private route lets clients reach resources behind cloudflared, but it does not route traffic that starts inside the network. |
Use Mesh for software-defined sites, or Cloudflare WAN for managed sites. |
| Forgetting the return path | A private host receives traffic from a 100.96.0.0/12 address, has no route back, and drops the reply. |
Keep source network address translation (NAT) turned on, or add a return route to the Mesh IP range. |
| Confusing routes with replicas | Two nodes with overlapping routes do not fail over, because the longest prefix wins without a health check. | Add replicas to one node for failover. |
| Relying on a single connector instance | One cloudflared instance, Mesh node, or IPsec tunnel is a single point of failure. |
Run Tunnel replicas, Mesh replicas, or redundant WAN tunnels, and test failover. |
| Excluding the Mesh IP range from split tunnels | Nodes and devices cannot reach each other. | Include 100.96.0.0/12 in the tunnel, use MASQUE, and allow the range in Windows Firewall. |
| Binding a Worker too broadly | A cf1:network binding reaches every route that Mesh and Cloudflare WAN advertise. |
Advertise only the routes the Worker needs, or bind a single VPC Service. |
- Set up Cloudflare Mesh to connect private networks, servers, and devices.
- Publish an application with Cloudflare Tunnel on a public hostname.
- Connect a Worker to a private network with Workers VPC.
- Connect a site with Cloudflare WAN.
- Connectivity options lists every Cloudflare One on-ramp and off-ramp.
- How Cloudflare Mesh works explains participants, routes, and high availability.
- Tunnel concepts explains outbound connections, tunnel identity, and routing.
- SASE reference architecture shows a full Cloudflare One deployment.