Count the number of connections each IP makes
Use netstat command to calculate and count the number of connections each IP address makes to the server.
netstat -anp |grep ‘tcp\|udp’ | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n
netstat - Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
Leave a Reply
You must be logged in to post a comment.