Live data from Hacker News

Free DDNS with Cloudflare and a cronjob

github.com

111–120 of 202 posts

Re: Free DDNS with Cloudflare and a cronjob

#111
I use cloudflare with ddclient for a raspberry pi weather station on t-mobile (a regular line, not TMHI). This allows ms to view it anywhere.

It just sets the AAAA every 5 minutes via cloudflare's API and their CDN proxies it automatically for the ipv4 only clients. I leave the A record blank.

EDIT: Has to he this way because ipv4 is behind CGNAT on their network where ipv6 is fully routed public addresses. The home internet product is setup differently and you can't host stuff on it.

Re: Free DDNS with Cloudflare and a cronjob

#114

Similar project which runs in Docker: https://github.com/favonia/cloudflare-ddns It's cache friendly and respectful of rate limits

Nice, there seem to be a lot of these! I personally use https://github.com/qdm12/ddns-updater, it’s from the creator of gluetun

Re: Free DDNS with Cloudflare and a cronjob

#116
I wrote one of these in C# years ago after seeing my friend write one in GoLang even more years ago.

GoLang: https://github.com/wyattjoh/cloudflare-ddns

C#: https://github.com/nick-funk/dyn-dns

Mine is more barebones since I threw it together quickly in an afternoon. I feel like many a HomeLab person fighting their ISP is taking advantage of this Cloudflare API trick

Re: Free DDNS with Cloudflare and a cronjob

#117
Did anyone here here set up a good rsyslogd configuration where the receiving syslog collector limits incoming logs to only known ddns machines ?

I think I may be able to stitch something together with periodically reconfigured packet filters, but I'd appreciate an existing solution.

Bonus points if running on freebsd.

Re: Free DDNS with Cloudflare and a cronjob

#118
post #89

Instead of using DDNS, I have been using Cloudflare tunnels to expose my home services to the internet. The setup is much simpler and it seems like it's more secure too You specify a port and point it to a subdomain and it just immediately works, no maintenance necessary. The daemon only needs to be installed once with a simple terminal command

I do the same with tailscale, which has a nice friendly UI for setting everything up. I setup some Cloudflare DNS records to the tail scale 100.x IPs to make them easy to remember.

I use tailscale's DNS feature and run my own DNS server. That way I can have a subset of my services available on the internet via CF tunnels and when I connect to tailscale I get all of them directly, and I can use the same domain names

Re: Free DDNS with Cloudflare and a cronjob

#119

Earlier quoted context omitted.

> – 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…

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.

so public server via http only then?
Post reply on HN