Skip to content

Instantly share code, notes, and snippets.

@kamermans
Created July 11, 2011 17:06
Show Gist options
  • Select an option

  • Save kamermans/1076290 to your computer and use it in GitHub Desktop.

Select an option

Save kamermans/1076290 to your computer and use it in GitHub Desktop.
Show status of all fail2ban jails at once
#!/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
@kamermans
Copy link
Author

Nice, thanks @abqcheeks, glad this is still useful after 14 years 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment