IT Department ยท Step-by-Step Guide

Cloudflare Zero Trust
Complete Setup Guide

From creating a free Cloudflare account to securely accessing office files, shared drives, and systems from any laptop outside the network โ€” without a public IP address or VPN appliance.

๐Ÿ†“ 100% Free ๐ŸŒ Works with Starlink CGNAT ๐Ÿ”’ Zero Trust Security ๐Ÿ’ป Windows ๐Ÿ“ File Access + RDP
Overview

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.

YOUR LAPTOP (anywhere โ€” home, cafรฉ, mobile data)
    โ”‚  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.


Phase 1 of 5

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.

https://dash.cloudflare.com/sign-up
โ˜ Cloudflare
Create your free account
No credit card required ยท Free forever
Email address
Password
Confirm password

After submitting, Cloudflare will send a verification email. Open it and click the verification link. You'll be taken to the Cloudflare dashboard.

๐Ÿ“Œ Tip: Use an IT department or shared mailbox email (like 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.

https://dash.cloudflare.com
๐Ÿ  Home
๐ŸŒ Websites
โšก Workers & Pages
๐Ÿ—„ R2 Storage
๐Ÿ“Š Analytics
๐Ÿ›ก Zero Trust โ† Click here
โš™๏ธ Manage Account
๐Ÿ›ก
Cloudflare Zero Trust
Replace your VPN with Zero Trust access. Free for up to 50 users.

If this is your first time, Cloudflare will ask you to choose a plan. Select Free and click Next.

https://one.dash.cloudflare.com โ€” Choose a plan
Choose your Zero Trust plan
SELECTED
Free
โ‚ฑ0
Up to 50 users
Tunnels & WARP
Basic access policies
Teams
$7/user/mo
Advanced policies
User analytics
Priority support
Enterprise
Custom
Unlimited users
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.

https://one.dash.cloudflare.com โ€” Set team name
Set your team domain
This is the unique name your organization will use to access Cloudflare Zero Trust. Staff will enter this when logging in to WARP.
Team name
.cloudflareaccess.com
Your full team domain will be: your-org.cloudflareaccess.com
โš ๏ธ Important: Write this team name down. Every laptop that needs access will enter this name when logging in to WARP. Example: your-org โ†’ full domain is your-org.cloudflareaccess.com

After saving, you'll land on the Zero Trust dashboard at one.dash.cloudflare.com. This is your control center for everything going forward.

โœ… Phase 1 done! Your Cloudflare account is created and Zero Trust is enabled. From here everything is managed at one.dash.cloudflare.com.

Phase 2 of 5

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.

https://one.dash.cloudflare.com โ†’ Networks โ†’ Tunnels
NETWORKS
๐Ÿ”— Tunnels
โ†” Routes
๐Ÿ–ง Virtual Networks
Tunnels
๐Ÿ”—
No tunnels created yet
Click "Create a tunnel" to connect your office network to Cloudflare

Choose Cloudflared as the connector type (this is the recommended option). Click Next.

https://one.dash.cloudflare.com โ†’ Create tunnel โ†’ Choose type
Select your tunnel type
Choose how you want to connect your network to Cloudflare.
โš™๏ธ
Cloudflared Recommended
Install a lightweight connector on your server. Persistent, reliable, runs as a Windows service.
๐Ÿ”‘
WARP Connector
For site-to-site connectivity. More complex to set up.

On the next screen, type the tunnel name. Use main-office (or any name that identifies your office location). Click Save tunnel name.

https://one.dash.cloudflare.com โ†’ Name your tunnel
Name your tunnel
Choose a name that identifies this office location. This is for your reference only.
Tunnel name
Good examples: main-office ยท your-office ยท office-ict

5 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.

https://one.dash.cloudflare.com โ†’ Install connector (Windows selected)
Install and run a connector
Run these commands on the server room PC. Make sure you're logged in as Administrator.
# Step 1 โ€” Download the installer
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
# Step 3 โ€” Run with your token (already filled in for you)
cloudflared service install eyJhIjoiYTk5NTM4...[your token here]
โš ๏ธ Keep your token secret. It allows anyone to connect to your tunnel.

Go to the server room PC, open PowerShell as Administrator (right-click the Start button โ†’ Windows PowerShell (Admin)), and run:

PowerShell โ€” Run as Administrator โ€” Server Room PC
PS C:\> Invoke-WebRequest -Uri https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.msi -OutFile cloudflared.msi
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.

PowerShell (Admin) โ€” Server Room PC
PS C:\> cloudflared tunnel login

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.

https://dash.cloudflare.com/argotunnel โ€” Authorize cloudflared
โ˜ Cloudflare
Authorize cloudflared
cloudflared on your server room PC is requesting permission to connect to your Cloudflare account and run tunnels.
Select your account to authorize
it-admin@yourcompany.com
Cloudflare account
โ†’
Click your account name above to authorize. The terminal will then confirm success.

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.

https://one.dash.cloudflare.com โ†’ Networks โ†’ Tunnels โ†’ main-office
main-office
โ— Inactive
Tunnel ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx โ† your unique ID ๐Ÿ“‹ Copy
CONNECTOR
No active connections yet
CREATED
Today ยท it-admin@yourcompany.com

Create 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.

C:\cloudflared\config.yml tunnel: main-office credentials-file: C:\Users\Administrator\.cloudflared\YOUR-TUNNEL-ID.json warp-routing: enabled: true ingress: # Required catch-all rule at the end - service: http_status:404
๐Ÿ“Œ Credentials file: After running 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

CMD (Administrator) โ€” Server Room PC โ€” Quick test
C:\> cloudflared --protocol http2 tunnel run main-office

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

CMD (Administrator) โ€” Server Room PC
C:\> cloudflared --config C:\cloudflared\config.yml service install
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.

services.msc โ€” Server Room PC
NameStatusStartup Type
Background Intelligent Transfer ServiceRunningAutomatic
Cloudflare Tunnel: cloudflared โ— Running Automatic
DNS ClientRunningAutomatic
ServerRunningAutomatic

Go back to the Cloudflare dashboard โ†’ Networks โ†’ Tunnels. The tunnel should now show โ— Healthy.

https://one.dash.cloudflare.com โ†’ Networks โ†’ Tunnels
Tunnels
NameStatusConnectionsCreated
main-office โ— Healthy 2 connections (Singapore) Today
โœ… Phase 2 done! The tunnel is running on your server room PC and connects your office to Cloudflare. It will restart automatically whenever the PC reboots.

Phase 3 of 5

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.

https://one.dash.cloudflare.com โ†’ Networks โ†’ Routes โ†’ Create route
Add a private network route
Network (CIDR notation)
This covers IPs 192.168.1.1 to 192.168.1.254 โ€” your full office network range
Tunnel
Comment (optional but recommended)
๐Ÿ“Œ About CIDR: 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:

https://one.dash.cloudflare.com โ†’ Networks โ†’ Routes
Private Network Routes
NetworkTunnelCommentVirtual NetworkStatus
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.

https://one.dash.cloudflare.com โ†’ Settings โ†’ WARP Client
Account
WARP Client
Authentication
Network
WARP Client Settings
Device enrollment permissions
Control who can enroll devices. Set to "Allow all" or your email domain.
Default profile โ€” Profile settings
Configure split tunnels, DNS settings, and WARP-to-Tunnel routing

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.

Settings โ†’ WARP Client โ†’ Device enrollment
Device enrollment permissions
Rule โ€” Include
Selector
Value
Anyone with an @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.

Settings โ†’ WARP Client โ†’ Default profile โ†’ Split Tunnels
Split Tunnels
Choose which traffic goes through WARP and which goes direct to the internet.
Include IPs and domains Use this
Only route specific IPs (like your office network) through WARP. Everything else goes direct.
Exclude IPs and domains
Route all traffic through WARP, except excluded ones.
Included routes (office traffic through WARP):
IP / DomainDescription
192.168.1.0/24 Office Network Active
โœ… Phase 3 done! Cloudflare now knows your office network is at 192.168.1.0/24 and will route that traffic through the main-office tunnel for any WARP-connected laptop.

Phase 4 of 5

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.

https://one.one.one.one
โ˜ 1.1.1.1 + WARP
Faster & more private internet โ€” now with secure network access

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.

Windows installer โ€” Cloudflare WARP
โ˜
Installing Cloudflare WARP...
Installing files... 78% complete

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.

WARP โ†’ Gear icon โ†’ Preferences โ†’ Account
Preferences
โœ•
General
Account
Advanced
Login to Cloudflare Zero Trust
Enter your organization's team name to connect to the secure private network.
.cloudflareaccess.com
Login โ†’

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.

https://your-org.cloudflareaccess.com โ€” Login page
โ˜ Cloudflare
your-org
Sign in to access office network
Your email address
A one-time code will be sent to your email. No password needed.
๐Ÿ“Œ Login method: Cloudflare sends a one-time code to the email address. Enter the code in the browser and the laptop is enrolled. No password to remember โ€” it works like a magic link.

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.

WARP Client โ€” Connected to your-org (Zero Trust)
your-org ยท Zero Trust
staff@yourcompany.com
โ˜
Connected
โ— ON
Private network: 192.168.1.0/24 โœ“
Routing through Cloudflare Zero Trust

Open Command Prompt on the laptop and do a quick ping test to confirm the office network is reachable:

CMD โ€” Laptop (outside the office, WARP connected)
C:\> ping 192.168.1.10 โ† use your tunnel PC IP

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!
โœ… Phase 4 done! The laptop is enrolled in your Zero Trust organization and can reach the office network from anywhere.

Phase 5 of 5

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.

Run โ€” Win + R
๐Ÿ“
Type the name of a program, folder, or network path, and Windows will open it.
Open:
Replace 192.168.1.xxx with your file server's actual IP address

A File Explorer window will open showing the shared folder โ€” just like being in the office.

File Explorer โ€” \\192.168.1.xxx\SharedFiles
๐Ÿ“ Network โ€บ 192.168.1.xxx โ€บ SharedFiles
๐Ÿ“
Accounting
๐Ÿ“
HR Files
๐Ÿ“
ICT Docs
๐Ÿ“
Shared Docs

16 Remote desktop into any office PC

Press Win + R, type mstsc, and press Enter. Enter the office PC's internal IP address.

Remote Desktop Connection
๐Ÿ–ฅ
Remote Desktop Connection
Computer (IP of the office PC you want to access):
Username:
๐Ÿ“Œ Tip: You can also use the computer's hostname instead of IP โ€” e.g., 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.

Map Network Drive
What network folder would you like to map as a drive? Specify the drive letter and folder below.
Drive letter:
Folder (UNC path of the shared folder):

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).

File Explorer โ€” This PC
Network locations
๐Ÿ—„
SharedFiles (Z:)
\\192.168.1.xxx\SharedFiles ยท Office File Server
Connected
โœ… Phase 5 done! You now have full access to office files, shared drives, and any PC via Remote Desktop โ€” from anywhere, anytime WARP is connected.

Checklist

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-office created in Networks โ†’ Tunnels
  • โœ“
    cloudflared downloaded and installed on server room PC
  • โœ“
    cloudflared tunnel login completed โ€” cert.pem saved
  • โœ“
    C:\cloudflared\config.yml created with correct tunnel ID
  • โœ“
    Manual test passed โ€” tunnel shows "Tunnel is ready!"
  • โœ“
    cloudflared installed as Windows Service โ€” Startup: Automatic
  • โœ“
    Dashboard shows main-office as โ— 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/24 private 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

Quick Reference

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

Service management commands (run as Administrator)

# Check tunnel service status sc query cloudflared # Start the tunnel service sc start cloudflared # Stop the tunnel service sc stop cloudflared # Restart (stop then start) sc stop cloudflared && sc start cloudflared # Run manually for testing (press Ctrl+C to stop) cloudflared --protocol http2 tunnel run main-office
โ˜ Setup Complete
Your office network is now securely accessible from any laptop, anywhere in the world โ€” for free, forever. Just connect WARP and work as if you're in the office.