Count TCP connections by state
count tcp connections by state | too many time_wait connections | detect syn flood linux | ss | connections | tcpss -Htan | awk '{print $1}' | sort | uniq -c | sort -rnCounts all TCP sockets grouped by their state. Many TIME-WAIT entries are normal on web servers, whereas a large number of SYN-RECV may indicate a SYN flood. For an overall summary without individual states, ss -s also works.
Also searched as
- count tcp connections by state
- too many time_wait connections
- detect syn flood linux