LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-07-2018, 10:25 PM   #1
fierrepurba
LQ Newbie
 
Registered: Jun 2018
Posts: 3

Rep: Reputation: Disabled
Snort Rules IPS


I have a Snort rules for preventing DoS attack on SDN. Here it is :

alert tcp any any -> any any (sid: 2; msg: "TCP SYN packet flooding (simple or distributed) attempt"; threshold: type both, track by_dst, count 10000, seconds 60; flow:stateless; flags:S,12; rev:1 )

And the command for attacking is :

attacker hping3 –c 100 –d 120 -S -w 64 -p 53 -flood victim

I have tried to attack by running the command above and it generates 1 alert on snort log everytime i run that. But i got confused about the meaning of the rules above. Can anyone tell me how that rules above actually work ? Especially on "count 10000, seconds 60" part. How does it work to prevent the attack ? Thanks before (Sorry for my bad grammar)
 
Old 06-10-2018, 07:17 AM   #2
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Quote:
Originally Posted by fierrepurba View Post
count 10000, seconds 60
i believe that if snort sees 10.000 syn packets in 60 seconds that rule is triggered.

Quote:
flags:S
that looks for syns.
 
Old 06-10-2018, 11:02 AM   #3
fierrepurba
LQ Newbie
 
Registered: Jun 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ////// View Post
i believe that if snort sees 10.000 syn packets in 60 seconds that rule is triggered.



that looks for syns.
But my attack command is: attacker hping3 –c 100 –d 120 -S -w 64 -p 53 -flood victim
which means that i send 100 packets Syn.
So, why the rule also triggered (alerting on snort) while i was just attacking once (100 packets syn only)
 
Old 06-18-2018, 07:11 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
It might be that snort is seeing 10000 per 60 seconds, or 1000/second, or 100/0.1s.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[snort] Understanding Snort Rules Fracker Linux - Security 3 04-13-2009 09:34 AM
Snort- ips priyadarshan Linux - Software 1 03-25-2009 10:52 PM
Snort -IPS priyadarshan Linux - Software 1 03-16-2009 08:50 AM
How to write two snort detection rules to alert on packets to those rules romafiel *BSD 0 06-08-2007 07:00 PM
Relate snort logs with Internal IPs logicalfuzz Linux - Software 0 01-17-2006 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration