Skip to content

Instantly share code, notes, and snippets.

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 viegelinsch/3b47a1ce51ad46fd3eea5816d1aee550 to your computer and use it in GitHub Desktop.
Save viegelinsch/3b47a1ce51ad46fd3eea5816d1aee550 to your computer and use it in GitHub Desktop.
all fail2ban status
#!/bin/bash
JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'`
for JAIL in $JAILS
do
fail2ban-client status $JAIL
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment