snort规则:检测SYNFLOOD攻击
检测规则
alert tcp $HOME_NET any -> $HOME_NET any (flags: S; msg:"DDOS-检测到SYN FLOOD"; flow: stateless; detection_filter: track by_dst, count 1000, seconds 1; sid:100001;rev:1;)
alert tcp $EXTERNAL_NET any -> $HOME_NET any (msg:"DDOS-检测到SYN FLOOD"; flow:not_established, to_server; flags:S;detection_filter: track by_dst, seconds 1, count 1000; classtype:misc-attack; sid:100017; rev:1;)
其中,count 1000, seconds 1是指1秒钟内syn数据包超过1000就触发告警。