Skip to content

Instantly share code, notes, and snippets.

@moronkreacionz
Last active June 23, 2016 13:47
Show Gist options
  • Save moronkreacionz/7b79e20eb7feb2dd5320dce43a7242eb to your computer and use it in GitHub Desktop.
Save moronkreacionz/7b79e20eb7feb2dd5320dce43a7242eb to your computer and use it in GitHub Desktop.
Fail2Ban All Status Check
#!/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