Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best practices for detecting DOS (denial of service) attacks? [closed]

I am looking for best practices for detecting and preventing DOS in the service implementation (not external network monitoring). The service handles queries for user, group and attribute information.

What is your favorite source of information on dealing with DOS?

like image 313
David G Avatar asked Sep 20 '08 13:09

David G


People also ask

How can DoS attacks be detected?

The best way to detect and identify a DoS attack would be via network traffic monitoring and analysis. Network traffic can be monitored via a firewall or intrusion detection system.

What is the best Defence against denial of service DoS attacks?

The most effective way to protect against the impact of DoS attacks is to stop them before they even reach a company's network. That means partnering with the contracted ISP to block the attack at the gateway.

What is DoS DDoS and how you mitigate against it?

DDoS mitigation refers to the process of successfully protecting a targeted server or network from a distributed denial-of-service (DDoS) attack. By utilizing specially designed network equipment or a cloud-based protection service, a targeted victim is able to mitigate the incoming threat.


2 Answers

Whatever you do against DoS-Attacks, think if what you do may actually increase the the load required to handle malicious or unwanted requests!

If you are using Linux then you should read this article:
Rule-based DoS attacks prevention shell script (from Linux Gazette) It has the following topics:

  • How to detect DoS attacks from /var/log/secure file
  • How to reduce redundant detected IPs from the temporary file
  • How to activate /sbin/iptables
  • How to install the proposed shell script

Applying this without properly restricting the number of blocked IPs in iptables may intro a DoS-Vulnerability by increasing the requiered resources to handel unsolicited requests. To reduces that risk use ipset to match IP-Addresses in iptables.

Also, read about ssh dictionary attack prevention using iptables. (enabling iptables with stateful firewalling as suggested here does not protect against most DoS-Attacks against but may actually ease DoS-Attacks that pollute your RAM with useless state info.)

New to Linux? read the Windows-to-Linux roadmap: Part 5. Linux logging of IBM.

Good Luck!

like image 129
Rodrigo Amaya Avatar answered Nov 17 '22 01:11

Rodrigo Amaya


This is a technique I found very useful..

Prevent Denial of Service (DOS) attacks in your web application

like image 42
Gulzar Nazim Avatar answered Nov 17 '22 01:11

Gulzar Nazim