Files
proxmox/docs/04-configuration/cloudflare/CLOUDFLARE_TUNNEL_INSTALLATION.md
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands
- CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround
- CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check
- NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere
- MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates
- LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 15:46:57 -08:00

2.4 KiB

Cloudflare Tunnel Installation - Complete

Last Updated: 2026-01-31
Document Version: 1.0
Status: Active Documentation


Date: January 27, 2025
Tunnel Token: Provided
Container: VMID 5000 on pve2


Installation Command

Run this on pve2 node:

# Install cloudflared service with token
pct exec 5000 -- cloudflared service install eyJhIjoiNTJhZDU3YTcxNjcxYzVmYzAwOWVkZjA3NDQ2NTgxOTYiLCJ0IjoiYjAyZmUxZmUtY2I3ZC00ODRlLTkwOWItN2NjNDEyOThlYmU4IiwicyI6Ik5HTmtOV0kwWXpNdFpUVmxaUzAwTVRFMkxXRXdNMk10WlRJNU1ETTFaRFF4TURBMiJ9

# Start service
pct exec 5000 -- systemctl start cloudflared
pct exec 5000 -- systemctl enable cloudflared

# Verify installation
pct exec 5000 -- systemctl status cloudflared
pct exec 5000 -- cloudflared tunnel list

📋 What This Does

  1. Installs cloudflared (if not already installed)
  2. Configures tunnel service with the provided token
  3. Starts cloudflared service automatically
  4. Enables service to start on boot

🔍 After Installation

Get Tunnel ID

pct exec 5000 -- cloudflared tunnel list

The tunnel ID will be displayed in the output.

Configure DNS

In Cloudflare Dashboard (https://dash.cloudflare.com/):

  1. Domain: d-bis.orgDNSRecords
  2. Add CNAME:
    • Name: explorer
    • Target: <tunnel-id>.cfargotunnel.com
    • Proxy: 🟠 Proxied (orange cloud)
    • TTL: Auto

Configure Tunnel Route

In Cloudflare Zero Trust (https://one.dash.cloudflare.com/):

  1. Zero TrustNetworksTunnels
  2. Find your tunnel → ConfigurePublic Hostnames
  3. Add hostname:
    • Subdomain: explorer
    • Domain: d-bis.org
    • Service: http://192.168.11.140:80
    • Type: HTTP

Verification

Wait 1-5 minutes for DNS propagation, then:

curl https://explorer.d-bis.org/api/v2/stats

Expected: JSON response with network stats (not 404)


🔧 Troubleshooting

Service not starting

# Check logs
pct exec 5000 -- journalctl -u cloudflared -n 50

# Check status
pct exec 5000 -- systemctl status cloudflared

Tunnel not connecting

  • Verify token is valid
  • Check Cloudflare Zero Trust dashboard for tunnel status
  • Ensure DNS record is proxied (orange cloud)

Status: Ready to install
Next: Run installation command above on pve2 node