charts icon indicating copy to clipboard operation
charts copied to clipboard

Add Cloudflare Tunnel (cloudflared)

Open Blazin64 opened this issue 3 years ago • 5 comments

Cloudflare Tunnel has some interesting features.

  1. It's free! (For personal/hobby level usage, at least.)
  2. The client (cloudflared) is open source, with code avaiable on their GitHub repository
  3. It even works on CGNAT-based Internet connections! This means applications on TrueNAS SCALE machines stuck behind these connections can easily be set up to be accessible from the Internet.
  4. The tunnel connection can be made persistent, so it can automatically reconnect if the Internet connection drops.

There is an official Docker container for the Cloudflare Tunnel client (cloudflared). Hopefully making a chart will be simplified a bit, since the container already exists.

Blazin64 avatar Jan 13 '22 07:01 Blazin64

Note: Best option for this is setting it up as one of the VPN addons.

PrivatePuffin avatar Jan 13 '22 10:01 PrivatePuffin

Would love to see Cloudflared support. I'm currently running it via TrueCharts docker-compose app pointing to the TrueCharts Traefik app's host port.

danofun avatar Mar 12 '22 05:03 danofun

Would love to see Cloudflared support. I'm currently running it via TrueCharts docker-compose app pointing to the TrueCharts Traefik app's host port.

+1 comments are generally not going to have any benefid besides spamming users, please don't.

PrivatePuffin avatar Mar 12 '22 11:03 PrivatePuffin

I was about to create a chart for cloudflared for my own use (and submit a PR to potentially merge) but then I realised it's not really needed! You can run cloudflared by using the "Launch Docker" image function and use the following settings:

Image repository: cloudflare/cloudflared Image Tag: latest

Configure Container CMD: Leave Empty

Configure Container Args: Add as many arguments as you need based on the commands you need to run, usually you can run cloudflared headless with one liners.

Example: The Cloudflare Tunnels function in Cloudflare's Zero Trust dashboard will give you a command similar to: docker run cloudflare/cloudflared:undefined tunnel --no-autoupdate run --token e**************************************************************9

In this case create new arguments (one line each) for the following: tunnel --no-autoupdate run --token e**************************************************************9

nour-shaker avatar Apr 12 '22 08:04 nour-shaker

You can run cloudflared by using the "Launch Docker"

Please do not needlessly spam requests with information that is of zero relevance to the actuall ticket.

PrivatePuffin avatar Apr 12 '22 08:04 PrivatePuffin

Closing as completed!

stavros-k avatar Aug 26 '22 19:08 stavros-k