centos ddos test and protection

is there any secure software for this ?
Who is Participating?
for a specific port add --dport 80
for port 80

The code above creates a chain called syn-flood (iptables -N syn-flood), then adds input packets type tcp any port that are syn type packets ( iptables -A INPUT -p tcp --syn -j syn-flood) then adds 1 syn per second in bursts of 4 (iptables  -A syn-flood -m limit --limit 1/s --limit-burst 4 -j RETURN) then drops them  (iptables  -A syn-flood -j DROP)
this is a very simple example
there is an excellent example here:

and here's a bit more on dropping other type of packet as well as plain syns

Do you mean something to prevent a centos server being DDoS attacked?  IF so you can start with iptables (the firewall) this has some DDoS protection, such as rate limiting, flood prevention and black / white listing capabilities
CahitEyAuthor Commented:
could you please describe a little more about how to ?
Assuming you are already using iptables as your firewall, you can add:
iptables -N syn-flood
iptables -A INPUT -p tcp --syn -j syn-flood
iptables  -A syn-flood -m limit --limit 1/s --limit-burst 4 -j RETURN
iptables  -A syn-flood -j DROP

or you may want to limit it to specific ports and / or hosts
CahitEyAuthor Commented:
how could i limit ddos to a specific port or host ?
i am using ip tables yes, but what exactly do this codes
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.