Back to Installers & Downloads
Network & Security Guide

Expose Your Sentinel Server with Cloudflare Tunnel

How to securely publish a Sentinel backend running on localhost:8082 to the public internet under your custom domain (e.g. endpoint.yourdomain.com) with free automatic SSL — without port forwarding or a public static IP.

Traffic Flow Diagram
Internet & Remote Agents → https://endpoint.your-domain.com → Cloudflare Edge → Cloudflare Tunnel Daemon → localhost:8082 (Sentinel)

Prerequisites

  • Sentinel backend running locally on port 8082.
  • A custom domain managed on a (free) Cloudflare account .
  • Windows / Linux host with Administrator / root access.
1

Add your domain to Cloudflare

Sign up at cloudflare.com, add your domain, and point your registrar's nameservers to Cloudflare. Wait until the domain status shows Active.

2

Install cloudflared CLI

Open an elevated PowerShell window and install the Cloudflare daemon using winget:

winget install --id Cloudflare.cloudflared

Restart PowerShell after installation and verify with: cloudflared --version

3

Log in and create the Tunnel

Authenticate the CLI with your Cloudflare account:

cloudflared tunnel login

A browser window will open to select your domain and grant permissions. Next, create a named tunnel:

cloudflared tunnel create endpoint-api

Copy the Tunnel ID GUID printed in the console output for the configuration step.

4

Route your hostname to the Tunnel

Create the Cloudflare DNS CNAME record pointing your endpoint subdomain to the tunnel:

cloudflared tunnel route dns endpoint-api endpoint.your-domain.com
5

Create configuration file

Create C:\Users\<YOU>\.cloudflared\config.yml (or ~/.cloudflared/config.yml on Linux):

tunnel: endpoint-api credentials-file: C:\Users\<YOU>\.cloudflared\<TUNNEL_ID>.json ingress: - hostname: endpoint.your-domain.com service: http://localhost:8082 - service: http_status:404
6

Test and install as a background service

First test the tunnel in your terminal:

cloudflared tunnel run endpoint-api

Verify in your browser by opening https://endpoint.your-domain.com. Once confirmed, install it to run automatically on Windows startup:

cloudflared service install
Start-Service cloudflared

Your server is now live with free automatic SSL!

Remote Sentinel Agents can now securely connect and stream heartbeat telemetry to your endpoint URL.

View Installers