How Everything Connects
Cloudflare Zero Trust is a free service that creates a secure, encrypted tunnel between your office network and Cloudflare's global servers. Laptops running the WARP client connect to that same tunnel โ giving them secure access to your office as if they were physically plugged into the LAN.
โ Cloudflare WARP app (installed on laptop)
โผ
CLOUDFLARE ZERO TRUST NETWORK (free cloud relay)
โ Encrypted tunnel โ no public IP needed on your side
โผ
SERVER ROOM PC ยท cloudflared service running
โ Tunnel name: main-office
โผ
OFFICE LAN ยท 192.168.1.0/24 (replace with your actual subnet)
โโโ ๐ File Server (\\192.168.1.xxx\SharedFiles)
โโโ ๐ฅ Any Office PC via RDP (e.g. 192.168.1.50)
โโโ ๐ Internal Servers & Databases
โโโ ๐ Internal Web Apps & Systems
What you need
Free Cloudflare account ยท 1 always-on office PC ยท WARP app on each laptop
Cost
โฑ0 โ permanently free for up to 50 users on the Zero Trust Free plan
Works with CGNAT
No static IP needed. No port forwarding. Starlink Residential works perfectly.
Create Your Cloudflare Account
Done once โ takes about 5 minutes. Use any computer with a browser.
1 Go to Cloudflare and sign up
Open your browser and go to https://dash.cloudflare.com/sign-up. Enter your email address and create a password. Use a real email โ you'll need to verify it.
After submitting, Cloudflare will send a verification email. Open it and click the verification link. You'll be taken to the Cloudflare dashboard.
it-admin@yourcompany.com) rather than a personal email, so multiple IT staff can access the account.2 Navigate to Zero Trust
After logging in, you'll see the main Cloudflare dashboard. In the left sidebar, scroll down and click Zero Trust.
If this is your first time, Cloudflare will ask you to choose a plan. Select Free and click Next.
Tunnels & WARP
Basic access policies
User analytics
Priority support
SLA guarantee
Dedicated support
3 Set your team name (your organization domain)
Cloudflare will ask you to choose a team name. This becomes the domain that your staff use to log in to WARP. Choose something short and related to your organization โ it cannot be changed easily later.
your-org โ full domain is your-org.cloudflareaccess.comAfter saving, you'll land on the Zero Trust dashboard at one.dash.cloudflare.com. This is your control center for everything going forward.
one.dash.cloudflare.com.Create the Tunnel on the Server Room PC
This is done on the PC in your server room that stays powered on 24/7. This PC becomes the bridge between your office network and Cloudflare.
4 Create a new tunnel in the dashboard
In the Zero Trust dashboard, go to Networks โ Tunnels in the left sidebar, then click Create a tunnel.
Choose Cloudflared as the connector type (this is the recommended option). Click Next.
On the next screen, type the tunnel name. Use main-office (or any name that identifies your office location). Click Save tunnel name.
main-office ยท your-office ยท office-ict5 Download and install cloudflared on the server room PC
After naming the tunnel, Cloudflare shows you the installation page. Make sure Windows is selected. You'll see two commands โ run both on the server room PC.
Invoke-WebRequest -Uri https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.msi -OutFile cloudflared.msi
# Step 2 โ Install silently
msiexec /i cloudflared.msi /quiet
cloudflared service install eyJhIjoiYTk5NTM4...[your token here]
Go to the server room PC, open PowerShell as Administrator (right-click the Start button โ Windows PowerShell (Admin)), and run:
Downloading... (approximately 12 MB)
PS C:\> msiexec /i cloudflared.msi /quiet
โ Installation complete
PS C:\> cloudflared --version
cloudflared version 2024.x.x (built ...)
6 Authenticate cloudflared with your Cloudflare account
This step links the cloudflared program to your Cloudflare account. Run this command โ it will open a browser window automatically.
Please open the following URL and log in with your Cloudflare account:
https://dash.cloudflare.com/argotunnel?callback=...
A browser window will open automatically. Log in and authorize the connection.
You have successfully logged in.
If you wish to copy your credentials to a server, they have been saved to:
C:\Users\Administrator\.cloudflared\cert.pem
In the browser window that opens, you'll see your Cloudflare account. Click Authorize to allow cloudflared access.
7 Create the tunnel configuration file
Create a folder called C:\cloudflared\ and inside it create a file named config.yml. This file tells cloudflared which tunnel to run and what network to share.
First โ find your Tunnel ID
Go back to the Zero Trust dashboard โ Networks โ Tunnels โ main-office. The Tunnel ID is shown at the top โ it looks like xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. Copy it.
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx โ your unique ID ๐ CopyCreate the config file
Open Notepad on the server room PC, paste the content below, and save as C:\cloudflared\config.yml. Replace the tunnel ID with the one you copied.
cloudflared tunnel login, a .json file was created in C:\Users\Administrator\.cloudflared\ โ the filename IS the tunnel ID. Check that folder in File Explorer and use the exact filename.8 Install as a Windows Service and start it
Installing as a service makes cloudflared start automatically every time the PC boots โ even without anyone logging in.
Test it manually first
INF Starting tunnel tunnelID=xxxxxxxx...
INF ICMP proxy will use 192.168.1.10 as source for IPv4
INF Registered tunnel connection connIndex=0 location=SIN
INF Tunnel is ready!
โ If you see this, the tunnel works! Press Ctrl+C to stop, then install as service below.
Install and start the service
INFO Successfully installed the Cloudflare Tunnel service.
C:\> sc start cloudflared
SERVICE_NAME: cloudflared
STATE : 4 RUNNING
Verify it's running: press Win + R, type services.msc, press Enter, and find Cloudflare Tunnel: cloudflared โ it should show Status: Running, Startup Type: Automatic.
| Name | Status | Startup Type |
|---|---|---|
| Background Intelligent Transfer Service | Running | Automatic |
| Cloudflare Tunnel: cloudflared | โ Running | Automatic |
| DNS Client | Running | Automatic |
| Server | Running | Automatic |
Go back to the Cloudflare dashboard โ Networks โ Tunnels. The tunnel should now show โ Healthy.
| Name | Status | Connections | Created |
|---|---|---|---|
| main-office | โ Healthy | 2 connections (Singapore) | Today |
Configure Private Network Access
This tells Cloudflare which IP range is your office network, and configures WARP-connected laptops to route office traffic through the tunnel.
9 Add your office network as a private route
Go to Networks โ Routes in the Zero Trust sidebar, then click Create route.
192.168.1.0/24 is a common network notation for your office IP range. The /24 means it covers 192.168.1.1 to 192.168.1.254 โ all the IPs in your office. Replace 192.168.1.0/24 with your actual office subnet. To find yours, run ipconfig on any office PC and look for the IPv4 Address โ use that range.After saving, the route appears in the list:
| Network | Tunnel | Comment | Virtual Network | Status |
|---|---|---|---|---|
| 192.168.1.0/24 | main-office | Main Office LAN | Default | Active |
10 Configure WARP device settings
Go to Settings โ WARP Client in the sidebar. This is where you control how WARP behaves on laptops.
Set device enrollment to allow your organization
Click Edit on "Device enrollment permissions". Set the rule to allow enrollment by email domain โ this lets staff enroll by logging in with their email.
@yourcompany.com email can enroll their device. Or set to Everyone if you don't have a custom email domain.11 Configure split tunnels so office traffic routes correctly
Click Edit on the Default Profile. Scroll down to find Split Tunnels. This controls what traffic goes through WARP and what goes directly to the internet.
| IP / Domain | Description | |
|---|---|---|
| 192.168.1.0/24 | Office Network | Active |
192.168.1.0/24 and will route that traffic through the main-office tunnel for any WARP-connected laptop.Install WARP on Each Laptop
Repeat these steps on every laptop that needs outside access. Takes about 3 minutes per laptop.
12 Download and install the WARP client
On the laptop, open a browser and go to https://one.one.one.one. Click Download for Windows and run the installer.
Run the downloaded .exe installer. It installs like any normal Windows program โ click through Next โ Install โ Finish. After installing, the WARP icon (orange cloud) appears in the system tray at the bottom-right of the screen.
13 Log in to your Zero Trust organization
Click the WARP icon in the system tray. The WARP window opens. Click the gear icon โ๏ธ at the bottom, then go to Preferences โ Account.
Type your team name (your-org) and click Login. A browser window will open asking for your email. Enter your email (it-admin@yourcompany.com or any @yourcompany.com email) and approve the login.
14 Connect WARP and confirm it works
After login, the WARP window shows your organization name. Click the toggle to connect. The button turns green and shows Connected.
Open Command Prompt on the laptop and do a quick ping test to confirm the office network is reachable:
Pinging 192.168.1.10 with 32 bytes of data:
Reply from 192.168.1.10: bytes=32 time=28ms TTL=128
Reply from 192.168.1.10: bytes=32 time=29ms TTL=128
Reply from 192.168.1.10: bytes=32 time=27ms TTL=128
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
Average round trip = 28ms โ Office is reachable!
Accessing Office Files and Systems Remotely
With WARP connected, your laptop behaves as if it's plugged into the office LAN. All of these work using the office's normal internal IP addresses.
15 Access shared folders (file server)
Press Win + R to open the Run dialog. Type the UNC path to the file server share and press Enter.
A File Explorer window will open showing the shared folder โ just like being in the office.
16 Remote desktop into any office PC
Press Win + R, type mstsc, and press Enter. Enter the office PC's internal IP address.
PC-001 or SERVER-01. Both work through the WARP tunnel as long as your office has internal DNS working.17 Map the shared drive as a permanent network drive
To make the file server always appear in File Explorer (like a local drive), map it as a network drive. Open File Explorer, right-click This PC, and select Map network drive.
After clicking Finish, the shared folder appears as drive Z: in File Explorer โ and reconnects automatically every time you log in (when WARP is connected).
Complete Setup Checklist
Phase 1 โ Cloudflare Account
- โCloudflare account created at
dash.cloudflare.com - โEmail verified
- โZero Trust enabled โ Free plan selected
- โTeam name set (e.g.
your-org) โ full domain:your-org.cloudflareaccess.com
Phase 2 โ Tunnel on Server Room PC
- โTunnel named
main-officecreated in Networks โ Tunnels - โcloudflared downloaded and installed on server room PC
- โ
cloudflared tunnel logincompleted โ cert.pem saved - โ
C:\cloudflared\config.ymlcreated with correct tunnel ID - โManual test passed โ tunnel shows "Tunnel is ready!"
- โcloudflared installed as Windows Service โ Startup: Automatic
- โDashboard shows
main-officeas โ Healthy
Phase 3 โ Network Route
- โPrivate route
192.168.1.0/24โ main-office added in Networks โ Routes - โDevice enrollment permissions set (email domain or Everyone)
- โSplit tunnel configured โ office network included
Phase 4 โ Laptops
- โWARP client downloaded from
one.one.one.one - โWARP installed on laptop
- โLogged in to Zero Trust org using team name + email
- โWARP shows Connected with
192.168.1.0/24private network - โPing test to office IP successful from outside network
Phase 5 โ File & System Access
- โCan access shared folders via
\\192.168.1.xxx\ShareName - โCan RDP to office PCs using internal IP
- โNetwork drive mapped as Z: and reconnects automatically
Key Info at a Glance
๐ Cloudflare Dashboard
Main: dash.cloudflare.com
Zero Trust: one.dash.cloudflare.com
Team login: your-org.cloudflareaccess.com
๐ฅ Server Room PC (Tunnel Host)
IP: 192.168.1.10 (your always-on PC)
Tunnel name: main-office
Config: C:\cloudflared\config.yml
Service: cloudflared (Automatic)
๐ป Laptops (WARP)
Download: one.one.one.one
Team name to enter: your-org
Toggle in system tray
Private network: 192.168.1.0/24
๐ Key Command (manual run)
cloudflared --protocol http2 tunnel run main-office
Run on server room PC to test or restart the tunnel manually