Skip to content

Instantly share code, notes, and snippets.

@well-it-wasnt-me
Created December 24, 2023 14:27
Show Gist options
  • Save well-it-wasnt-me/a0810c2ce172b0b540fb3b8d5bfbad00 to your computer and use it in GitHub Desktop.
Save well-it-wasnt-me/a0810c2ce172b0b540fb3b8d5bfbad00 to your computer and use it in GitHub Desktop.
Check current active connections on your server, useful during DoS attack
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment