Create a tunnel (dashboard)
Follow this step-by-step guide to create your first remotely-managed tunnel.
-
Log in to the Cloudflare dashboard and go to Networking > Tunnels.
Go to Tunnels -
Select Create a tunnel.
-
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). -
Select Create Tunnel.
-
Choose your operating system, then copy the installation command and run it in a terminal on your origin server.
-
Wait for the tunnel to connect. Once the connection is established, select Continue.
The next steps depend on whether you want to publish an application to the Internet or connect a private network.
Follow these steps to publish an application to the Internet. If you are looking to connect a private resource, skip to the Connect a network section.
After creating your tunnel, add a published application route:
-
Go to Networking > Tunnels, then select your tunnel.
Go to Tunnels -
On the Routes tab, select Add route, then select Published application.
-
Enter a subdomain and select a Domain from the drop-down menu. Specify any subdomain or path information.
-
In Service URL, enter the protocol and address of your application (for example,
http://localhost:8000). Refer to supported protocols for available options. -
Select Save.
Anyone on the Internet can now access the application at the specified hostname. To allow or block specific users, create an Access application.
To connect a private network through your tunnel, add a CIDR route:
-
Go to Networking > Routes.
Go to Routes -
Select Create route, then choose Tunnel CIDR.
-
Select the tunnel you just created.
-
In Network, enter the private IP address or CIDR range of your service (for example,
10.0.0.1or10.0.0.0/24). -
Select Create route.
cloudflared can now route traffic to these destination IPs. To configure Zero Trust policies and connect as a user, refer to Connect an IP/CIDR.
After saving the tunnel, you will be redirected to the Networking > Tunnels page. Your tunnel should be listed with a Healthy status. If your tunnel status is Inactive, Down, or Degraded, refer to the troubleshooting documentation for recommended next steps.