Ask HN: What's a good open-source alternative to Cloudflare?
1–10 of 69 posts
Re: Ask HN: What's a good open-source alternative to Cloudflare?
#2This 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.
Re: Ask HN: What's a good open-source alternative to Cloudflare?
#3I'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.
Re: Ask HN: What's a good open-source alternative to Cloudflare?
#4“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.
Re: Ask HN: What's a good open-source alternative to Cloudflare?
#5Re: Ask HN: What's a good open-source alternative to Cloudflare?
#6Re: Ask HN: What's a good open-source alternative to Cloudflare?
#7I dont think you can have any sort of DoS protection if your ISP cuts off your internet if you're beign attacked...
Re: Ask HN: What's a good open-source alternative to Cloudflare?
#8Openresty 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.