INTEGRITY Cloudflare Docs

Network to network

Connect two separate private networks so devices on each network can send and receive traffic in both directions through Cloudflare. This is useful when you need to link office locations, data centers, or cloud environments. For example, employees in one office could access a file server, printer, or internal application in another office.

To explore other connection scenarios, refer to Replace your VPN.

How it works

Cloudflare Mesh (formerly WARP Connector) lets you deploy mesh nodes — lightweight network connectors that you install on a single Linux device in each network. That device handles traffic for the entire network: it sends outbound traffic to Cloudflare and receives inbound traffic back, then passes it to the right device on the network. Because of this, other devices on the network do not need to install any software.

Prerequisites

Step 1: Create your first mesh node

  1. In the Cloudflare dashboard, go to Networking > Mesh.

    Go to Mesh ↗
  2. Select Add a node.

  3. Enter a name for the node (for example, office-a).

  4. Follow the wizard to configure enrollment and device profile settings.

  5. Copy the install commands from the wizard and run them on your Linux device.

  6. After the node connects, the dashboard confirms it is online.

Step 2: Add a route for the first network

  1. Go to the node detail page for your first node.
  2. Select the Routes tab.
  3. Select Add a route.
  4. Enter the IP range of your first network (for example, 10.0.0.0/24).
  5. Select Create.

Step 3: Create your second mesh node

Repeat Step 1 on a Linux device in your second network. Give it a distinct name (for example, office-b).

Step 4: Add a route for the second network

Repeat Step 2 for your second node, entering the IP range of your second network (for example, 192.168.1.0/24). The IP range must not overlap with your first network.

Step 5: Forward device traffic

If the mesh node is installed on your network's router (the device that serves as the default gateway), other devices on the network automatically send traffic through it. No additional configuration is needed, and you can skip this step.

If the mesh node is installed on a different device, other devices on the network need a static route so they know to send cross-network traffic to the mesh node. Without this route, devices do not know where to send traffic destined for the other network.

For details on routing options, refer to Routes.

Step 6: Verify your connection

Devices on both networks can now communicate through Cloudflare. To verify connectivity, try reaching a device on the opposite network (for example, ping 192.168.1.100 from a device on your first network).

After verifying your connection, consider securing your connected networks with policies and access controls:

For in-depth guidance on policy design and device posture checks, refer to the Replace your VPN learning path.

Troubleshoot

If you have issues connecting, refer to these resources: