Last active
January 4, 2016 20:09
-
-
Save thebouv/8671731 to your computer and use it in GitHub Desktop.
conncount: linux command listing current IPs connected and how many connections
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
# Very handy one-liner from DDoS Deflate project. Useful just by itself. | |
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n | |
# As an alias: | |
# alias conncount='netstat -ntu | awk '\''{print $5}'\'' | cut -d: -f1 | sort | uniq -c | sort -nr' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment