Skip to content

Instantly share code, notes, and snippets.

@calvez
Created October 19, 2016 15:14
Show Gist options
  • Save calvez/896dff42f0afd2097fe8342709ba4af2 to your computer and use it in GitHub Desktop.
Save calvez/896dff42f0afd2097fe8342709ba4af2 to your computer and use it in GitHub Desktop.
fail2ban report ips
sudo awk '($(NF-1) = /Ban/){print $NF}' /var/log/fail2ban.log | sort | uniq -c | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment