--- ./synflood-defender.sh~ 2011-07-09 01:27:54.000000000 +0300 +++ ./synflood-defender.sh 2013-02-07 17:38:06.912231452 +0200 @@ -56,7 +56,7 @@ done <$configfile # Current SYN queue length -current_synqueue=`netstat -n | egrep '(tcp|udp)' | grep SYN | wc -l` +current_synqueue=`ss -nat | grep SYN-RECV | wc -l` echo $current_synqueue # Reading current protection mode