Skip to content

Instantly share code, notes, and snippets.

@magenx
Created March 17, 2014 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magenx/9604286 to your computer and use it in GitHub Desktop.
Save magenx/9604286 to your computer and use it in GitHub Desktop.
Get firewall messages sorted
grep Firewall messages | sed -r 's/.*SRC=(\S+).*PROTO=(\S+).*DPT=(\S+).*/\1 \2 \3/' | sort | uniq -c | sort -r -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment