Skip to content

Instantly share code, notes, and snippets.

@Oyonax
Forked from kamermans/fail2ban-allstatus.sh
Last active August 29, 2015 14:23
Show Gist options
  • Save Oyonax/737ca454f2fb90a04b49 to your computer and use it in GitHub Desktop.
Save Oyonax/737ca454f2fb90a04b49 to your computer and use it in GitHub Desktop.
#!/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