Created
September 10, 2025 04:45
-
-
Save mdpuma/25de2ee2893b0a22a6c8da5dc9162875 to your computer and use it in GitHub Desktop.
conntrack show top talkers
This file contains hidden or 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
| #!/bin/bash | |
| # Show top talkers from conntrack | |
| # Needs: conntrack package (conntrack-tools) | |
| conntrack -L 2>/dev/null \ | |
| | awk '{print $5}' \ | |
| | sed 's/src=//' \ | |
| | sort \ | |
| | uniq -c \ | |
| | sort -nr \ | |
| | head -20 |
This file contains hidden or 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
| #!/bin/bash | |
| conntrack -L 2>/dev/null \ | |
| | awk '{print $5,$6}' \ | |
| | sed -e 's/src=//' -e 's/dst=//' \ | |
| | sort \ | |
| | uniq -c \ | |
| | sort -nr \ | |
| | head -20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment