Skip to content

ATLANTIS ITS

How-To Guide #001

Rebuilding the Cloudflare Connector (Tunnel)


Field Detail


Document ID HT-001

Version 1.0

Date March 10, 2026

Author Ozzy (Claude --- Atlantis AI)

Reviewed By Shane Hardin

Applies To Atlantis ITS Infrastructure

Difficulty Intermediate

Est. Time 10--15 minutes


1. Overview

This guide covers how to rebuild the Cloudflare Connector (formerly called Cloudflare Tunnel) after it has been lost or corrupted --- for example, after a drive migration or Docker Desktop reset.

The Cloudflare Connector is the secure bridge between your self-hosted n8n instance and the public internet via Cloudflare Zero Trust. Without it, n8n.atlantisits.co returns a 530 error.

⚠️ NOTE: Cloudflare renamed \'Tunnels\' to \'Connectors\' in the Zero Trust UI. If you cannot find \'Tunnels\', look under Networks > Connectors.

2. When to Use This Guide

  • n8n.atlantisits.co returns a 530 or 1033 error

  • Docker was reset or reinstalled

  • Drive migration occurred (e.g. C: to E:)

  • Cloudflare dashboard shows tunnel status as DOWN

  • Docker logs show: Unauthorized: Invalid tunnel secret

3. Prerequisites


Requirement Details


Docker Desktop Running and healthy --- check via docker ps

n8n container Already running on port 5678

Cloudflare account Access to dash.cloudflare.com as Srhardin@gmail.com

PowerShell Run as standard user (no admin needed)


4. Step-by-Step Instructions

Step 1 --- Confirm n8n is Running

Open PowerShell and run:

docker ps

You should see n8n in the list with status \'Up\'. If not, start it first:

docker run -d --name n8n --restart unless-stopped -p 5678:5678 -v E:\Data\AtlantisITS\n8n:/home/node/.n8n n8nio/n8n

Step 2 --- Log in to Cloudflare Zero Trust

  1. Open your browser and go to: https://dash.cloudflare.com

  2. Log in as Srhardin@gmail.com

  3. Click Zero Trust in the left sidebar (you will land on the Cloudflare One welcome screen)

⚠️ NOTE: Do NOT navigate via a domain --- go directly to the Zero Trust dashboard.

Step 3 --- Find Your Connector

  1. In the Zero Trust left sidebar, click Networks

  2. Click Connectors (this is where Tunnels now live)

  3. You should see atlantis-n8n listed with status DOWN

⚠️ NOTE: If you do not see a Tunnels or Connectors option, Cloudflare may have moved it. Try the direct URL: https://one.dash.cloudflare.com/networks/tunnels

Step 4 --- Get a Fresh Token

  1. Click the three dots (...) next to atlantis-n8n

  2. Click Configure

  3. At the bottom of the page, click Refresh Token

  4. Click Refresh Token again in the confirmation dialog

  5. Click the Docker button at the top of the Configure page

  6. Copy the full docker run command shown --- it contains your new token

⚠️ NOTE: The token is a long base64 string starting with eyJ... --- copy the entire command, not just the token.

Step 5 --- Remove Old Container & Deploy New One

In PowerShell, stop and remove the old cloudflared container:

docker stop cloudflared

docker rm cloudflared

Now paste and run the Docker command you copied from Cloudflare. It will look like this:

docker run -d --name cloudflared --restart unless-stopped cloudflare/cloudflared:latest tunnel --no-autoupdate run --token eyJ...YOUR_TOKEN...

⚠️ NOTE: Make sure to add -d (detached) and --name cloudflared and --restart unless-stopped if Cloudflare\'s command does not include them.

Step 6 --- Verify Connection

Check both containers are running:

docker ps

You should see both n8n and cloudflared in the list.

Return to Cloudflare Zero Trust > Networks > Connectors --- the atlantis-n8n status should now show HEALTHY (green).

Test by opening: https://n8n.atlantisits.co in your browser.

5. Troubleshooting


Error Cause Fix


530 --- Tunnel Error cloudflared container not Run docker ps --- if running missing, re-run Step 5

Unauthorized: Invalid Old token still in use Stop and rm tunnel secret cloudflared, run fresh token command

No such container: Container was never Re-run the docker run cloudflared created or was deleted command from Step 5

Tunnel status still Token refresh not saved Repeat Step 4 --- DOWN after 2 min ensure you clicked Refresh Token

502 Bad Gateway on Cloudflare DNS proxy Set ai CNAME record to ai.atlantisits.co enabled on ai record DNS Only (grey cloud) in Cloudflare DNS


6. Quick Reference --- Key Commands


Command Purpose


docker ps List running containers

docker stop Stop the cloudflared container cloudflared

docker rm cloudflared Remove the cloudflared container

docker logs View cloudflared logs for errors cloudflared

docker start Start existing cloudflared container cloudflared

wsl --shutdown Shut down WSL2 (use if Docker hangs on startup)


7. Key Infrastructure Info


Item Value


Tunnel Name atlantis-n8n

n8n Port 5678

n8n Public URL https://n8n.atlantisits.co

n8n Data Path E:\Data\AtlantisITS\n8n

Docker VHDX Location C:\Users\shane\AppData\Local\Docker\wsl\disk\docker_data.vhdx

Cloudflare Login Srhardin@gmail.com

Zero Trust URL https://one.dash.cloudflare.com


Document prepared by Ozzy (Claude --- Atlantis AI Automations)

atlantisits.info | HT-001 | v1.0 | March 2026