LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   High CPU usage during Dos attack (https://www.linuxquestions.org/questions/linux-security-4/high-cpu-usage-during-dos-attack-4175632564/)

dexter2486 06-24-2018 06:39 AM

High CPU usage during Dos attack
 
I am having a self hosted game server hosted on google cloud using Ubuntu 14.04 everything was working fine but since last week a "Dos" attempt is made on gameserver or might be on VPS during which the cpu usage jumps to 100% and I see the rise in cpu usage due to the process "ksoftirq" also the ssh becomes unresponsive and server too. After 2-3 minutes or after restarting the server everything goes to normal. I can say its a DoS attempt because in google cloud monitoring I see rise in Incoming packets. I have upgraded the CPU to dual core and also RAM to 2 Gb but the issue cannot be solved. Tell me how can this dos attempt can be mitigated using Iptables or and script or how can I log the attackers IP to block it from panel.

frankbell 06-24-2018 09:07 PM

There's not much you can do to prevent others from launching a DDoS attack at your server. Nevertheless, a web search for "mitigate ddos attack" will turn up a number of articles that you should find useful.

This one looks like a good place to start: https://www.wired.com/insights/2012/...os-mitigation/

TenTenths 06-25-2018 11:29 AM

Quote:

Originally Posted by frankbell (Post 5871578)
This one looks like a good place to start: https://www.wired.com/insights/2012/...os-mitigation/

Good article and written by someone at Incapsula.

The main thing that people generally fail to consider is that dealing with DDoS attacks on server "Oh, I've an IPTABLES firewall" is generally not particularly effective. If the connections are being made to the point that your on-server firewall is having to deal with it then your connection is likely to be swamped anyway.

External traffic filtering DDoS mitigation is highly effective and can generally handle pretty much any size of attack.

Having used Incapsula at a previous job I can recommend them and their mitigation is easy to implement.

ondoho 06-25-2018 05:58 PM

i know i'm only nitpicking, but...
Quote:

Originally Posted by dexter2486 (Post 5871288)
I am having a self hosted game server hosted on google cloud

surely it can't be both self-hosted AND cloud hosted?

frankbell 06-25-2018 09:13 PM

Maybe it's a VPS on Google Cloud, not self-hosted, but self-managed.


All times are GMT -5. The time now is 03:04 PM.