Ask HN: How to survive indefinite DDoS attack?
11–20 of 62 posts
Re: Ask HN: How to survive indefinite DDoS attack?
#12Assuming this is an API and not a website, my approach would be (other than just paying cloudflare to handle it). Application servers that aren't listed on DNS and their IPs kept secret. A _lot_ of proxy servers that take requests, check the auth, and forward the valid requests to the application servers. For invalid requests, just let them time out. If checking the auth is expensive enough to cause problems, require…
> Make it cheap to handle the DDOS traffic and expensive to generate the DDOS traffic
The traffic is from compromised devices, so it's very cheap.
Re: Ask HN: How to survive indefinite DDoS attack?
#13Pay couple of $ for Cloudflare be done with it. https://www.cloudflare.com/ddos/ Don't forget to have a fresh IP before doing the move so that your origin is unknown.
Doesn't it bring you a tiny bit of concern that this is only current answer people can give?
Re: Ask HN: How to survive indefinite DDoS attack?
#14What is your business? How much traffic "normal" do you get? What is the size of the attack? What is the bandwidth of your upstream connection? Who are your customers? Where is it hosted? What are your acceptable thresholds for false negatives and positives? Do you know who is attacking you and why?
Most every hosting provider will have some sort of DDoS monitoring and mitigation on their networks already. Their response to sustained or repeated attacks might range from scrubbing the bad traffic before it gets to you and not notifying you at all, to reaching out to you to work with you on both ends of the issue, to cancelling your account.
If you just have a fairly simple website that you host yourself, Cloudflare likely a fine option. If you have more advanced needs, you should talk to a more comprehensive DDoS solution vendor.
Re: Ask HN: How to survive indefinite DDoS attack?
#15Pay couple of $ for Cloudflare be done with it. https://www.cloudflare.com/ddos/ Don't forget to have a fresh IP before doing the move so that your origin is unknown.
I hate that this is the right answer. I hate that I use it too. I hate that I don't have time/cash to explore alternatives.
what has the internet become?
Why not create blacklists (even on a timed basis) with the IPs to block at BGP level? and these blacklists managed by bodies,
- okay they are bodies..., but at least they can be open foundations to which it is not mandatory to join (as in the case of cloudflare)-
available to BGP backbones and routed on a network, castrate the blacklisted traffic?
maybe even at host level be able to make one IP available for normal traffic and possibly one for blacklist traffic using BGP routings to which the blacklist tables are applied?
Re: Ask HN: How to survive indefinite DDoS attack?
#16Cloudflare is the simplest solution, but for the sake of treating this like a system design exercise, can you reasonably assume that there is not an infinite supply of devices with which to conduct the attack, fingerprint the devices, and block them?
Edit: https://www.cloudflare.com/learning/ddos/famous-ddos-attacks... largest ever seems to have been about 180k devices. Getting your upstream to accept that many firewall entries is a big problem.
Re: Ask HN: How to survive indefinite DDoS attack?
#17A colleague was DDoS attacked and was able to move the service behind Cloud Armor in a few hours, effectively ending a ridiculous barrage of network requests. I think CA charges a minuscule amount per request, and can be capped with a fix monthly cost which limits the DDoS liability.
Re: Ask HN: How to survive indefinite DDoS attack?
#18Cloudflare is the simplest solution, but for the sake of treating this like a system design exercise, can you reasonably assume that there is not an infinite supply of devices with which to conduct the attack, fingerprint the devices, and block them?
Re: Ask HN: How to survive indefinite DDoS attack?
#19Assuming this is an API and not a website, my approach would be (other than just paying cloudflare to handle it). Application servers that aren't listed on DNS and their IPs kept secret. A _lot_ of proxy servers that take requests, check the auth, and forward the valid requests to the application servers. For invalid requests, just let them time out. If checking the auth is expensive enough to cause problems, require…
Re: Ask HN: How to survive indefinite DDoS attack?
#20Pay couple of $ for Cloudflare be done with it. https://www.cloudflare.com/ddos/ Don't forget to have a fresh IP before doing the move so that your origin is unknown.