GCP
This guide covers how to connect a Google Cloud Project (GCP) virtual machine to Cloudflare using our lightweight connector, cloudflared
.
We will deploy:
- A Google Cloud Project (GCP) virtual machine that runs a basic HTTP server.
- A Cloudflare Tunnel that allows users to connect to the service via either a public hostname or a private IP address.
To complete the following procedure, you will need to:
- Add a website to Cloudflare
- Deploy the WARP client on an end-user device
-
In your Google Cloud Console ↗, create a new project ↗.
-
Go to Compute Engine > VM instances.
-
Select Create instance.
-
Name your VM instance. In this example we will name it
http-test-server
. -
Choose your desired operating system and specifications. For this example, you can use the following settings:
- Machine family: General Purpose
- Series: E2
- Machine type: e2-micro
- Boot disk image: Debian GNU/Linux 12
- Firewalls: Allow HTTP and HTTPS traffic
-
Under Advanced options > Management > Automation, add the following startup script. This example deploys a basic Apache web server on port
80
.