TOP 10 open conenctions hosts (netstat and ss tips )

netstat -atun | awk ‘{print $5}’ | cut -d: -f1 | sed -e ‘/^$/d’ |sort | uniq -c | sort -n | tail -n 10

also that’s informative to see detail information by IP:

netstat -nat |grep {IP-address} | awk ‘{print $6}’ | sort | uniq -c | sort -n

Show established connections:

ss -o state established

General network statisticks:

netstat -s

Sockets summary:

ss -s

Author: GergunD

Leave a Reply