News for hackers. Stuff that matters.

ErisaDev

Re:Exposing a web service with Cloudflare Tunnel on Tuesday February 08, 2022 @05:26PM (#30265733)
Not the person replying to (but I am the author of the blog post being promoted here)

I believe they _may_ be referring to the feature of being able to run a single "tunnel" on multiple hosts, using the same credentials and ID. When you do this, not only will Cloudflare automatically serve from the geographically nearest server if it can, but when one client goes offline (When the tunnel is disconnected, not application error sadly) it will automatically ignore that connection and serve from the others, providing some basic degree of failover with no extra payment or much configuration.

I believe you can also easily integrate Tunnels with the paid CF Load Balancer: https://developers.cloudflare.com/cloudflare-one/connections...

Re:Exposing a web service with Cloudflare Tunnel on Tuesday February 08, 2022 @05:19PM (#30265652)
Hi, I'm the author of the blog post being promoted here.

I maintain my own Docker image too for personal use (https://github.com/Erisa/cloudflared-docker) but I've never ran into a situation where needing everything as an environment variable was required or even desired. I really love the idea of that though, and I love that image!

Re:Exposing a web service with Cloudflare Tunnel on Tuesday February 08, 2022 @05:16PM (#30265613)
Hi, I'm the author of the blog post being promoted here.

As noted by other commenters, Cloudflare Tunnel is completely free forever and does not cost anything. This was not always the case in the past where it was previously tied with the Argo Smart Routing product that cost money. The announcement of it becoming free is here: https://blog.cloudflare.com/tunnel-for-everyone/

I didn't mention price in the post because it was free, however from the comments I am thinking perhaps that is an important point to make. I wiill keep this in mind if I make similar posts in the future :)

Re:Exposing a web service with Cloudflare Tunnel on Tuesday February 08, 2022 @05:14PM (#30265585)
Hi, I'm the author of the blog post being promoted here.

No, this is not possible. Cloudflare Tunnel focuses mainly on HTTP traffic but also supports SSH, VNC and generic TCP only in situations where the client also uses the cloudflared client to proxy it back to their localhost. Hosting a mail server with these restrictions is not possible I'm afraid.

Re:Exposing a web service with Cloudflare Tunnel on Tuesday February 08, 2022 @05:12PM (#30265563)
Hi, I'm the author of the blog post being promoted here.

The `clouflared tunnel route dns` command creates thee DNS record mapping the tunnel to the domain. The tunnels config maps the hostname to the local service, and you can have multiple of those for each service. So for the example above, you would create a DNS record for each domain pointing to the same one tunnel, and that tunnel will route based on the ingress rules.

Re:Exposing a web service with Cloudflare Tunnel on Tuesday February 08, 2022 @11:23AM (#30260334)
Hi, I'm the author of the blog post being promoted here.

This is really cool too!! I use Tunnels with SSH a ton. I was considering making a follow-up post going through the SSH setup too, but I felt it was a bit redundant considering that docs page existed. My post was because of the lack of a clear guide for a simple HTTP webserver.

Re:Exposing a web service with Cloudflare Tunnel on Tuesday February 08, 2022 @11:03AM (#30260057)
Hi, I'm the author of the blog post being promoted here.

Thank you for your kind words!

> I've always found information about how to do this kind of thing to be pretty confusing and not well described.

This is the main reason I made this post, there is a lot of documentation but most of it is quite dense and doesn't walk through a simple use-case. When I've recommended Tunnel to my friends I usually have to baby them through the process because of the lack of clear information. This post was made so I have something to point to when I recommend people to use Tunnel for their-usecase. I didn't expect it to blow up this much!

Re:Exposing a web service with Cloudflare Tunnel on Tuesday February 08, 2022 @11:01AM (#30260020)
Hi, I'm the author of the blog post being promoted here.

I love that list! I also use Tailscale for a lot of my personal private services as well as Cloudflare Tunnel, I think they're both really great :)

The concern about Cloudflare decrypting the traffic is valid, I just personally feel for a lot of public websites that's often fine especially if the hoster might have been using Cloudflare already anyway. If an individual doesn't want to use Cloudflare for their setup then that's fine and there are lots of cool pieces of tech they can consider!