Skip to content

Instantly share code, notes, and snippets.

@curzon01
Forked from kamermans/fail2ban-allstatus.sh
Last active August 9, 2020 08:18
Show Gist options
  • Save curzon01/08890cb63f87fbbf00d47fddaea673b1 to your computer and use it in GitHub Desktop.
Save curzon01/08890cb63f87fbbf00d47fddaea673b1 to your computer and use it in GitHub Desktop.
Show status of all fail2ban jails at once
alias fail2ban-statusall="fail2ban-client status | sed -n 's/,//g;s/.*Jail list://p' | xargs -n1 fail2ban-client status"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment