News for hackers. Stuff that matters.
Re:Free DDNS with Cloudflare and a Cronjob by noname120 on Saturday July 27, 2024 @11:09AM (#41087066)
There are some limitations such as:

– TLS termination mandatorily happens at Cloudflare (i.e. your traffic is mitm'ed). That's because this free product is meant as a gateway drug (aka a loss leader) to Cloudflare's WAF/Anti-DDOS products (which require TLS termination to happen on their side for technical reasons).

– Other TCP protocols (including SSH) require every client to run the software too. So if you were thinking about bypassing the TLS termination restriction by creating a TCP tunnel instead of an HTTP(S) tunnel you can't.

– Max 100 MB uploads for HTTP(S).

– No media servers allowed.

Otherwise it's a really good service!

Re:Free DDNS with Cloudflare and a Cronjob by thousand_nights on Saturday July 27, 2024 @11:20AM (#41087140)
Some good points, thanks.

FWIW, I have been using it with Plex (just two users, me and my parents) and haven't gotten banned. The ToS are kind of unclear on whether this is allowed if I have to be honest.

Re:Free DDNS with Cloudflare and a Cronjob by jsheard on Saturday July 27, 2024 @11:42AM (#41087269)
Video streaming in general is one of their red lines, you're not supposed to shove any kind of video through their CDN unless the origin is another Cloudflare product (e.g. CF Stream or R2).
Re:Free DDNS with Cloudflare and a Cronjob by thousand_nights on Saturday July 27, 2024 @11:55AM (#41087346)
From the discussions I've read, it's not as clear cut, e.g.:

https://old.reddit.com/r/PleX/comments/152wfdh/can_i_use_a_c...

Re:Free DDNS with Cloudflare and a Cronjob by jsheard on Saturday July 27, 2024 @11:56AM (#41087352)
It rarely is clear cut with Cloudflare, many of their policies are ambiguous so you never really know if you're stepping over the line until you get an email from sales asking you to either cut it out, start paying, or pay more.
Re:Free DDNS with Cloudflare and a Cronjob by cj on Sunday July 28, 2024 @07:44AM (#41092590)
As I've painfully learned, Cloudflare's "free bandwidth" is only free until a point.

Cloudflare threatened to terminate our $20k enterprise license last week for serving 50 TB of API JSON files last month (90% cache hits).

I moved half of the traffic to a new domain without a paid license to see what they say...

Re:Free DDNS with Cloudflare and a Cronjob by jgrahamc on Sunday July 28, 2024 @08:25AM (#41092766)
My email is [email protected]. You can email me about this.
Re:Free DDNS with Cloudflare and a Cronjob by gunapologist99 on Saturday July 27, 2024 @03:00PM (#41088553)
Agreed with sibling, but TBH if you're just using it for personal streaming, it's not likely to trip any bandwidth alerts on a free account, and CF will probably be happy that you're using it for personal stuff (because you'll probably take it with you to your day job too)
Re:Free DDNS with Cloudflare and a Cronjob by password4321 on Saturday July 27, 2024 @03:12PM (#41088619)
Just don't show up on some motivated salesperson's prospects report.

https://news.ycombinator.com/item?id=40481808#40482405

Re:Free DDNS with Cloudflare and a Cronjob by 12345hn6789 on Saturday July 27, 2024 @05:18PM (#41089400)
FWIW that thread looks to be a casino being black listed after trying to negotiate down cloud flares enterprise plan.
Re:Free DDNS with Cloudflare and a Cronjob by vladvasiliu on Saturday July 27, 2024 @12:20PM (#41087529)
> – TLS termination mandatorily happens at Cloudflare (i.e. your traffic is mitm'ed). That's because this free product is meant as a gateway drug (aka a loss leader) to Cloudflare's WAF/Anti-DDOS products (which require TLS termination to happen on their side for technical reasons).

But on the flip side, this allows you to have a nice certificate on your outside connection without having to fiddle with letsencrypt or whathaveyou.

Re:Free DDNS with Cloudflare and a Cronjob by KennyBlanken on Saturday July 27, 2024 @01:08PM (#41087917)
If someone finds LetsEncrypt challenging, they don't have sufficient network andsystem administrator skills to be running a private, public-facing web server. They should be running tailscale.
Re:Free DDNS with Cloudflare and a Cronjob by vladvasiliu on Saturday July 27, 2024 @01:49PM (#41088198)
Well, one of the "challenges" is the one in a different comment: most registrars don't allow fine-grained control over who can update what DNS records.

Can it be done? Sure. But do I want to spend money on this for my home lab if I can work around it? Not a chance.

I'm kinda sensitive to the "MITM as a service" argument, but for my use case, it's not a problem.

Re:Free DDNS with Cloudflare and a Cronjob by kuschku on Saturday July 27, 2024 @02:20PM (#41088366)
> Well, one of the "challenges" is the one in a different comment: most registrars don't allow fine-grained control over who can update what DNS records.

Afaik, every major registrar allows you to add an NS record for the _acme-challenge subdomain, allowing you to put the _acme-challenge subdomain on a custom, self-hosted DNS server.

That in turn allows you to make the permissions as specific as you'd like. Personally I just run powerdns in docker for this.

Re:Free DDNS with Cloudflare and a Cronjob by TheNewsIsHere on Saturday July 27, 2024 @05:55PM (#41089605)
Using CNAME delegation for the ACME challenge domain and directing that to a Route 53 zone is my preferred approach. Then (as long as you have CloudWatch configured) you get inherent auditing and very flexible privilege management.
Re:Free DDNS with Cloudflare and a Cronjob by cj on Sunday July 28, 2024 @07:38AM (#41092562)
That wouldn't work for this use case though would it? AWS doesn't allow downloading the certificate (I could be wrong)? Typically certificates can only be used with other AWS services. E.g. you can't download the certificate and serve it from a home server.
Re:Free DDNS with Cloudflare and a Cronjob by vladvasiliu on Sunday July 28, 2024 @08:27AM (#41092772)
You're not wrong, but the idea here is not to use AWS' certificate manager but their DNS service on which you would only handle the acme-challenge subdomain. This would allow you to limit who can update which subdomain. The LE cert is obtained normally.
Re:Free DDNS with Cloudflare and a Cronjob by attentive on Saturday July 27, 2024 @08:17PM (#41090339)
there is also https://github.com/joohoi/acme-dns and LE clients like lego supporting it.
Re:Free DDNS with Cloudflare and a Cronjob by skinner927 on Saturday July 27, 2024 @02:10PM (#41088313)
You don’t need automated DNS fiddling for lets encrypt. Certbot can either hook into Apache or NGINX, or run its own standalone server for verification.
Re:Free DDNS with Cloudflare and a Cronjob by gunapologist99 on Saturday July 27, 2024 @02:58PM (#41088543)
Aside from sibling comment, you also need automated DNS fiddling if you want CloudFlare Strict TLS support, because if LE can only connect to CF proxy, it will never issue via HTTPS.
Re:Free DDNS with Cloudflare and a Cronjob by jsheard on Saturday July 27, 2024 @03:02PM (#41088568)
You don't necessarily need to do that, Cloudflare can generate you a long-lived certificate to install on your origin server which isn't publicly trusted but is trusted by their proxies, so it works with Strict TLS. YMMV with other CDNs though, you might need to fall back to using LE with a DNS challenge in some cases.

https://developers.cloudflare.com/ssl/origin-configuration/o...

Re:Free DDNS with Cloudflare and a Cronjob by Arrowmaster on Saturday July 27, 2024 @05:00PM (#41089304)
Not true. I have a CF rule that matches . well-known/acme-challenge and sets SSL off. The main setting is on full strict but the rule disables the auto redirect to https and the strict checking so an acme client behind a CF tunnel can bootstrap a cert with the HTTP-01 method.
Re:Free DDNS with Cloudflare and a Cronjob by jsheard on Saturday July 27, 2024 @02:49PM (#41088502)
You do need DNS fiddling if you want a wildcard cert, LE only accepts DNS challenges for those.
Re:Free DDNS with Cloudflare and a Cronjob by PokestarFan on Saturday July 27, 2024 @08:02PM (#41090273)
Certbot has a Cloudflare extension so all you need to do is provide a credentials file and it will automatically apply everything. I have a monthly cronjob running that runs the cloudflare certbot in Docker.
Re:Free DDNS with Cloudflare and a Cronjob by pnutjam on Saturday July 27, 2024 @09:31PM (#41090633)
I've had excellent controls using NearlyFreeSpeech.net for DNS (minor cost) and time4vps.com (free). Maybe very old registrars restrict DNS records..?
Re:Free DDNS with Cloudflare and a Cronjob by janwillemb on Saturday July 27, 2024 @01:28PM (#41088041)
Parent did not say it was challenging.

I find fiddling with LE tedious because it has to be repeated too often.

Re:Free DDNS with Cloudflare and a Cronjob by slt2021 on Saturday July 27, 2024 @02:05PM (#41088288)
certbot and crontab needs to be setup just once, to solve cert problem
Re:Free DDNS with Cloudflare and a Cronjob by Dalewyn on Saturday July 27, 2024 @08:08PM (#41090306)
HTTPS when used in the ubiquitous manner it is now always strikes me as unnecessary complexity and tedium, and reasonings like yours addressing them with even more complexity and tedium.

Whatever happened to KISS?

Re:Free DDNS with Cloudflare and a Cronjob by darkwater on Saturday July 27, 2024 @09:40PM (#41090663)
It happened that the last S changed from "stupid" to "secure". If I use HTTPS I can safely enough connect to my home services through an open cafe Wifi, for example
Re:Free DDNS with Cloudflare and a Cronjob by wibblewobble125 on Monday July 29, 2024 @05:22PM (#41103935)
I’ve been using caddy for a year which does everything for you. Basically nginx/haproxy but with https built-in via LE, no fiddling about with cert files and brittle LE scripts, also supports subdomains equally easily.
Re:Free DDNS with Cloudflare and a Cronjob by jgalt212 on Saturday July 27, 2024 @04:34PM (#41089155)
so public server via http only then?
Re:Free DDNS with Cloudflare and a Cronjob by immibis on Sunday July 28, 2024 @08:40AM (#41092811)
The point of TLS is to prevent your traffic getting MITMed. This benefit disappears if you have to let someone MITM your traffic to get TLS.
Re:Free DDNS with Cloudflare and a Cronjob by LoganDark on Sunday July 28, 2024 @10:04AM (#41093213)
This depends. The point of TLS is to protect your application from hostile networks. Cloudflare hasn't proven hostile yet.
Re:Free DDNS with Cloudflare and a Cronjob by coda_ on Saturday July 27, 2024 @12:29PM (#41087611)
They do allow ssh via a web browser. It may be a "beta" feature, but it doesn't require the client to run anything.
Re:Free DDNS with Cloudflare and a Cronjob by e12e on Saturday July 27, 2024 @03:20PM (#41088679)
Requires your client to run a web browser though? That's a lot different from just an ssh client?
Re:Free DDNS with Cloudflare and a Cronjob by RockRobotRock on Saturday July 27, 2024 @08:04PM (#41090282)
Not a web browser, the client has to install cloudflared to connect. It's pretty much exactly the Tailscale feature, but clunkier.

https://developers.cloudflare.com/cloudflare-one/connections...

Re:Free DDNS with Cloudflare and a Cronjob by mortos on Saturday July 27, 2024 @11:28PM (#41091040)
GP was saying the client would require a web browser. The server of course needs cloudflared.

That said, personally I don't really have any devices that can use SSH but not a browser.

Re:Free DDNS with Cloudflare and a Cronjob by RockRobotRock on Saturday July 27, 2024 @11:33PM (#41091054)
My past comment is wrong but you do need to install cloudflared on the client if you want to SSH without a browser.

Read the docs, you can do it either way.

Re:Free DDNS with Cloudflare and a Cronjob by tarasglek on Sunday July 28, 2024 @03:15AM (#41091741)
I found it easier to use ssh over websocat over cloudflared. Then you just need websocat again on clientside and can use regular ssh client with it
Re:Free DDNS with Cloudflare and a Cronjob by nottorp on Sunday July 28, 2024 @09:01AM (#41092882)
> I don't really have any devices that can use SSH but not a browser.

No headless boxes?

Re:Free DDNS with Cloudflare and a Cronjob by mortos on Friday August 09, 2024 @11:00PM (#41206995)
Just seeing this. Yeah, you're technically right. But I never sit at my headless boxes. I SSH to them and then from there could SSH Jump if I really needed to use SSH out of those boxes.

Also I wouldn't use Cloudflare Tunnels so this is a moot point.

Re:Free DDNS with Cloudflare and a Cronjob by DreamFlasher on Saturday July 27, 2024 @06:34PM (#41089807)
At which point is the MITM happening? What I mean is: browser → Cloudflare server → cloudflared on my server → web service. Is TLS only from browser to Cloudflare server, or is it browser to cloudflared?
Re:Free DDNS with Cloudflare and a Cronjob by RockRobotRock on Saturday July 27, 2024 @07:55PM (#41090233)
>Is TLS only from browser to Cloudflare server, or is it browser to cloudflared?

It's encrypted between the browser and Cloudflare, but you can also create a cert and encrypt between Cloudflare and your origin server. (but that isn't mandatory)