Created
February 8, 2018 05:00
-
-
Save mingderwang/fe80b8a202fc6c80348ddf53a2698975 to your computer and use it in GitHub Desktop.
all fail2ban status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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