check dos or ddos attack in Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kaushalshriyan
Posts: 124
Joined: Fri May 22, 2015 7:12 am

check dos or ddos attack in Nagios

Post by kaushalshriyan »

Hi,

Is there a way to monitor DOS or DDOS attack in Nagios. For example i see multiple requests from a specific IP bombarding the web services.

Best Regards,

Kaushal
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: check dos or ddos attack in Nagios

Post by npolovenko »

Hello, @kaushalshriyan. You could use the check_ddos.pl plugin. I'll attach the description in a text file.
Here's another plugin:
https://exchange.nagios.org/directory/P ... os/details
Attachments
ddos.odt
(15.59 KiB) Downloaded 312 times
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kaushalshriyan
Posts: 124
Joined: Fri May 22, 2015 7:12 am

Re: check dos or ddos attack in Nagios

Post by kaushalshriyan »

Hi npolovenko,

Thanks for your reply and much appreciated. I have a follow-up question. Is there a difference between SYN_RECV and SYN_flood (https://en.wikipedia.org/wiki/SYN_flood) Network packets?

Code: Select all

/usr/lib/nagios/plugins/check_ddos.pl
check_ddos.pl 0.4
usage: check_ddos.pl [options]
 -h: Print the command line help
 -v: Print the program version
 -w <int>: Warning value (number of SYN_RECV)
 -c <int>: Critical value (number of SYN_RECV)
Thanks in Advance and looking forward to hearing from you.

Best Regards,

Kaushal
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: check dos or ddos attack in Nagios

Post by npolovenko »

@kaushalshriyan, SYN_RECV stands for SYN-RECEIVED.
The TCP SYN-RECEIVED state is used to indicate that the connection is only half open, and that the legitimacy of the request is still in question.
https://www.cisco.com/c/en/us/about/pre ... tacks.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked