How can I prep up my website infrastructure running on an EC2 instance against DOS attacks? I run apache with nginx as reverse proxy
|
You can't prevent DOS attacks, you can only mitigate them.
|
||||
|
|
|
First off, you need to distinguish between "Denial of Service (DoS)" attack and "Distributed Denial of Service (DDoS)" attacks. Since your question is about DoS, you generally protect against DoS attacks by:
There is an almost unlimited number of things you can do to raise security against DoS attacks. The real trick is to make a sound judgement on what you should do. My above list is a reasonable starting point, but you can learn much more about this topic if you want. Security.stackexchange.com is not a bad place to start. |
||||
|
|
|
I've been considering using CloudFlare for this. All trafic is routed through them and they watch for malicious requests and block them. The main selling point is that because they are in the business of watching for bad traffic from various sources they can identify potential threats before you'd be able to do so by yourself. It seems to be a very cost effective alternative to setting up your own infrastructure, but I'm not sure whether routing all my traffic through a third party will slow things down. |
|||
|
|
|
You probably cannot protect fully against DDoS, and the best approach would be to cut DDoS attackers as close to source as possible. I don't know many products that does it, but one free is described in this article. |
|||
|
|
|
Protecting against DDoS/DoS attacks on a a third party infrastructure such as EC2 is a lost cause. The single EC2 instance will not be able to handle any sort of attack. If you are serious about your business, I would advise getting in touch with providers that can proxy-filter your traffic to the actual destination: For example: http://www.gigenet.com/ddos-protection.html |
|||||||||||||
|