LinuxSysAdmin

Things I don't want to look for twice..

Monthly Archives: May 2011

iptables limit syn flood

iptables -N syn_flood
iptables -A INPUT -p tcp --syn -j syn_flood
iptables -A syn_flood -m limit --limit 1/s --limit-burst 3 -j RETURN
iptables -A syn_flood -j DROP
Advertisements