Been a fan of cloudflare for a while but am having second thoughts about such a centralized service with so many lock in mechanisms. What options are out there? (open source would be great!) Looking at features like DNS, DoS protection, basic WAF, CDN...etc
[+] [-] selcuka|3 years ago|reply
[+] [-] dx034|3 years ago|reply
[+] [-] swyx|3 years ago|reply
this is, as the kids say, a *MOAT*. you could leak the entire source of cloudflare and cloudflare's value would be unaffected.
[+] [-] rozenmd|3 years ago|reply
[+] [-] oliwarner|3 years ago|reply
They're definitely more than a CDN these days.
[+] [-] codegeek|3 years ago|reply
[+] [-] necovek|3 years ago|reply
This means that to prevent all of the issues, you need a huge overprovisioned network. So to make economics work, you'd have to become one of the largest networks in the world, and thus serve lots of clients, making you again a "centralized" service.
[+] [-] bawolff|3 years ago|reply
That said, wikipedia documents its CDN setup which is all open source at https://wikitech.wikimedia.org/wiki/Caching_overview which might be of interest to you.
[+] [-] zaidhaan|3 years ago|reply
It's an excellent resource for anyone curious to learn about their systems. I wish more organizations would embrace transparency and open-source principles as much as Wikimedia does.
[+] [-] axg11|3 years ago|reply
[+] [-] anyfactor|3 years ago|reply
I thought about this for a solid 15 minutes. What really is an open source of version of Cloudflare? That leads into the question of what is really Cloudflare.
An enterprise that has built something so huge that the idea it represents can not be separated from the service (as a whole) they provide. That is like saying what is the open source alternative to I don't know....Intel or Oracle. It not only covers a suite of offering that is impossible to replicate, but rather the complexity of each component of their entire service suite.
How the heck are you supposed to do open source CDN?
Then you take a step back and the question again, which still doesn't make any sense. "Open source alternative to Cloudflare". The question is supposed to be "What represents the open source alternative to what Cloudflare's XYZ does".
CDN, a network that is designed to deliver content... and needs to be open source. P2P systems? Torrenting? Some weird blockchain stuff? Are they CDN? I have no clue. You end up compromising in the definition of the service Cloudflare provides to pick something because it is supposed to be Open Source. You go down the list of each service Cloudflare with your own Open Source twist and you end up with a web service that more and more represents the Web 1.0 and arguably not reliable. What are you compromising at that point? Open source becomes an agenda rather than a solution.
Cloudflare isn't a software company, you are essentially paying them for the hardware they are carrying in their network/portfolio. They are not Open Source-able.
[+] [-] namaria|3 years ago|reply
[+] [-] donutshop|3 years ago|reply
[+] [-] Dalewyn|3 years ago|reply
Free-as-in-beer to use everything, shaggy underdog social status, community of free-as-in-beer contributors to leech off of, keeping your teeth clean with some of that floss, and bonus points if you can stick trendy words like "federated" and "AI" in there.
[+] [-] zxcvbn4038|3 years ago|reply
[+] [-] rrampage|3 years ago|reply
Openresty with a few Nginx modules and Lua scripts can go a long way for many use-cases mentioned:
- ModSecurity for WAF: https://github.com/SpiderLabs/ModSecurity
- L7 Rate limiting: https://github.com/openresty/lua-resty-limit-traffic
- Cache: https://github.com/ledgetech/ledge . Or use varnish which gives you VCL for high configurability
- Load balancing: https://github.com/openresty/lua-resty-balancer
- CDN: https://github.com/taythebot/lightpath . This project seems to be a WIP which you can use as a starting point for your needs. You will also need to find good enough "edge" locations for your CDN.
Similarly, HAProxy does a lot of stuff with the correct config and is also extensible using Lua:
- Some basic DOS protection: https://www.sysbee.net/blog/haproxy-sysadmins-swiss-army-kni...
- L7 DDoS protection: https://github.com/mora9715/haproxy_ddos_protector
You can run your own authoritative DNS server using either djbdns or nsd. Or use AWS Route 53.
Ultimately, it will involve (a lot of) glue code/config depending on what solution you go ahead with.
[+] [-] KronisLV|3 years ago|reply
This might be of interest to some: https://www.modsecurity.org/
> Trustwave is announcing the End-of-Life (EOL) of our support for ModSecurity effective July 1, 2024. We will then hand over the maintenance of ModSecurity code back to the open-source community.
Probably not too big of a deal, though.
Also, this might be useful: https://owasp.org/www-project-modsecurity-core-rule-set/
Though there has been some critique of ModSecurity and that ruleset in the past, as something dated and with false positives.
Anyone have any good alternatives?
[+] [-] tobinfekkes|3 years ago|reply
I've been loving cloudflare since the very, very, beginning, but a few little red flags the past couple years have me wanting to find an alternative as well.
Thank you for asking this.
[+] [-] HollowMan|3 years ago|reply
[+] [-] namelosw|3 years ago|reply
Until someone creates a well-thought decentralized CF alternative from the ground up, which solves bad actor, slow and unstable node problems, with clever incentives, et cetera et cetera, we'll be stuck with centralized solutions.
[+] [-] bawolff|3 years ago|reply
P2P is a lot of things, but latency optimized is definitely not it. Things like DHT involve lots of hops, you also can't control the quality of nodes.
[+] [-] febeling|3 years ago|reply
[+] [-] toastal|3 years ago|reply
[+] [-] donavanm|3 years ago|reply
What I haven’t seen others mention, and is a literal open source CDN, Is Coral CDN. I’m not sure if it’s a going concern anymore, but it was a plausibly useful academic project circa 2005-15. I believe to ubiquity and accessibility of very cheap commercial offerings, and the ratcheting improvements in commercial CDN tech, really put Coral “out of business” by 2013 or so. http://dsrg.pdos.csail.mit.edu/2013/07/18/coralcdn/
Disclosure: principal at AWS, used to work on CloudFront and Route 53. Opinions are my own and do not reflect my employer or any proprietary information.
[+] [-] hknmtt|3 years ago|reply
and every data center has a hardware ddos protection, you don't need a service for that if you use good web or server hosting provider.
cloudflare is not really that special. the reason normal people even know the name CF is because it was free. not because of what it provided.
and after they started censoring, there is no reason to keep using their services. they screwed themselves over by doing that. sooner or later they will stop being normies favourite and become purely corporate service.
[+] [-] nickphx|3 years ago|reply
[+] [-] guluarte|3 years ago|reply
I dont think you can have any sort of DoS protection if your ISP cuts off your internet if you're beign attacked...
[+] [-] selcuka|3 years ago|reply
[+] [-] cpach|3 years ago|reply
[+] [-] wenbin|3 years ago|reply
“Just” run ngnix on your own servers from different geo locations. ngnix is very versatile, eg, load balancing, rate limiting, rule based firewall, caching…
but one important reason why saas/api/cloud businesses exist is that people don’t want to run their own servers for every project.
[+] [-] sschueller|3 years ago|reply
[+] [-] smolder|3 years ago|reply
[+] [-] rspoerri|3 years ago|reply
[+] [-] hitori|3 years ago|reply
[+] [-] stubbi|3 years ago|reply