Skip to content

Connect with Cloudflare Tunnel

Cloudflare Tunnel is an outbound-only daemon service that can run on nearly any host machine and proxies local traffic once validated from the Cloudflare network. User traffic initiated from the Cloudflare One Client onramps to Cloudflare, passes down your Cloudflare Tunnel connections, and terminates automatically in your local network. Traffic reaching your internal applications or services will carry the local source IP address of the host machine running the cloudflared daemon.

Create a tunnel

To connect your private network:

  1. Log in to the Cloudflare dashboard and go to Networking > Tunnels.

    Go to Tunnels
  2. Select Create a tunnel.

  3. Enter a name for your tunnel. We suggest choosing a name that reflects the type of resources you want to connect through this tunnel (for example, enterprise-VPC-01).

  4. Select Create Tunnel.

  5. Choose your operating system, then copy the installation command and run it in a terminal on your origin server.

  6. Wait for the tunnel to connect. Once the connection is established, select Continue.

  1. In the CIDR tab, enter the CIDR of your private network (for example, 10.0.0.0/8).

  2. Select Save tunnel.

All internal applications and services in this IP range are now connected to Cloudflare.

Best practices

  • Segregate production and staging traffic among different Cloudflare tunnels.
  • Add a cloudflared replica to another host machine for an additional point of availability.
  • Distribute access to critical services (for example, private DNS, Active Directory, and other critical systems) across different tunnels for blast-radius reduction in the event of a server-side outage.
  • Enable notifications in the Cloudflare dashboard to monitor tunnel health.
  • Monitor performance metrics to identify potential bottlenecks.
  • Update cloudflared regularly.