Created
November 7, 2011 08:26
-
-
Save abdallah/1344452 to your computer and use it in GitHub Desktop.
Netstat to to find number of connections from each IP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n | |
# found @ http://midnight-cafe.co.uk/linux-commands/netstat-to-find-number-of-connections-from-each-ip/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment