Secure Remote Access with Cloudflare Tunnel

Connect PocketNOC to your SolarWinds Orion server from anywhere, without opening inbound firewall ports or exposing your server to the internet.

~15 minutes to set up

Overview

Cloudflare Tunnel creates an outbound-only encrypted tunnel from your network to Cloudflare's edge, letting you access your Orion server from anywhere without opening inbound firewall ports or exposing it to the internet.

How it works: A small service (cloudflared) runs on your network and connects outbound to Cloudflare. PocketNOC connects to Cloudflare, which routes traffic through the tunnel to your Orion server. No inbound ports need to be opened on your firewall.

Prerequisites

Setup Guide

Create a Cloudflare Tunnel

  1. Log in to the Cloudflare dashboard
  2. Go to Networking → Tunnels
  3. Click Create a tunnel
  4. Give your tunnel a name (e.g., orion-pocketnoc)
  5. Click Create Tunnel

Cloudflare renames dashboard menus from time to time. If a menu name here doesn't match what you see, use the search bar at the top of the dashboard.

Install the connector on your network

After creating the tunnel, Cloudflare will show installation instructions for your platform. Choose the one that matches the machine you'll run the connector on.

Windows (most common for SolarWinds environments)

Cloudflare provides a single command to download and install cloudflared as a Windows service. Copy the command from the dashboard and run it in an elevated PowerShell prompt. It will:

  • Download the cloudflared binary
  • Install it as a Windows service (starts automatically on boot)
  • Register the connector with your tunnel

Tip: You can run this on your Orion server itself, or on any machine that can reach your Orion server over the network.

Linux / Docker

If you prefer to run the connector on a Linux host or in Docker, the dashboard provides commands for those environments as well.

Publish your Orion server through the tunnel

Once the connector is running and shows as Healthy in the dashboard:

  1. Open your tunnel and go to the Routes tab
  2. Click Add route, then choose Published application
  3. Enter a Subdomain (e.g., orion) and select your Domain
  4. For Service URL, enter https://your-orion-server:17778 (use the internal hostname or IP)
  5. In the route's TLS settings, turn on Disable TLS certificate verification (older dashboards call this No TLS Verify). This lets the connector accept your Orion server's self-signed certificate.
  6. Save the route

Important: Disabling certificate verification only applies to the connection between the cloudflared connector and your Orion server on your internal network. The connection from PocketNOC to Cloudflare is always encrypted with a valid certificate.

Add access controls (recommended)

By default, anyone on the internet can reach the tunnel hostname. Restrict it with Cloudflare Access. PocketNOC signs in with a service token, not a browser login, so do these three parts in this order.

A. Create the service token first

  1. In the Cloudflare dashboard, go to Zero Trust → Access controls → Service credentials → Service Tokens
  2. Click Create Service Token
  3. Name it (e.g., pocketnoc) and choose a Service Token Duration
  4. Click Generate token
  5. Copy the Client ID and Client Secret somewhere safe. You'll enter both in PocketNOC.

The Client Secret is shown only once. If you lose it, you have to generate a new token. Note the expiry date too: when the token expires, PocketNOC gets a 403 until you refresh it.

B. Create the Access application

  1. Go to Zero Trust → Access controls → Applications
  2. Click Add an application and choose Self-hosted
  3. Give it a name and add your tunnel hostname as the application domain (e.g., orion.yourdomain.com)

C. Add a Service Auth policy

  1. In the application's Policies section, create a new policy
  2. Set Action to Service Auth. Do not use Allow: Allow sends a browser login page that PocketNOC can't complete.
  3. Add an Include rule with Selector set to Service Token and Value set to the token you created in part A
  4. Save the policy, make sure it's attached to the application, then save the application
ActionRule typeSelectorValue
Service AuthIncludeService Tokenpocketnoc

Free tier: Cloudflare Access is free for up to 50 users. Service tokens do not count toward user limits.

Configure PocketNOC

Open PocketNOC on your device. On the Sign In screen, enter your connection details:

Basic Authentication
← Your tunnel hostname (no port needed)
https://orion.yourdomain.com
← Your Orion username
CORP\jsmith
AD accounts: use DOMAIN\username format
••••••••
Sign In

Enter your Cloudflare Tunnel hostname as the Server URL. Use your normal SolarWinds Orion credentials.

If you set up Cloudflare Access (Step 4), tap Advanced Options and add your service token headers:

Advanced Options ▼
← Service token values from Step 4
CF-Access-Client-Id: abc123...
CF-Access-Client-Secret: def456...
Custom request headers (Header-Name: value, one per line)

Enter one header per line. These are the service token values you saved when creating the Cloudflare Access application.

Tap Sign In. PocketNOC will reach your Orion server securely through the tunnel.

Firewall Requirements

One of the main benefits of Cloudflare Tunnel is that no inbound firewall rules are required. The cloudflared connector only makes outbound connections.

Outbound (from the machine running cloudflared)

PortDestinationPurpose
443/tcpCloudflare edgeTunnel connection (QUIC/HTTP2)
7844/udpCloudflare edgeTunnel connection (QUIC, preferred)

Internal (from cloudflared to Orion)

PortDestinationPurpose
17778/tcpOrion server (LAN)SWIS API

No changes needed on your Orion server's firewall. If the machine running cloudflared can already reach your Orion web console on the internal network, the tunnel will work.

SolarWinds Account Recommendations

PocketNOC works with both local Orion accounts and Active Directory accounts. When using an AD account, you must log in with the down-level format:

Troubleshooting

Tunnel shows "Inactive" or "Down" in the dashboard

Verify the cloudflared service is running. On Windows, check Services (services.msc) for "Cloudflared agent". Restart the service if needed.

PocketNOC shows "Connection refused" or timeout

PocketNOC shows "403 Forbidden"

PocketNOC shows a login page or says the server returned HTML

The Access policy action is almost always set to Allow instead of Service Auth. Allow policies send a browser login page, which PocketNOC can't complete. Change the action to Service Auth (step 4, part C).

Alerts or nodes are missing

This is usually an account permissions issue, not a tunnel issue. Try switching to the DOMAIN\username login format or use a local Orion account. See the account recommendations above.

Security Considerations

Further Reading

Need help? Contact us and we'll walk you through the setup.