Skip to content

Instantly share code, notes, and snippets.

View VA2PE's full-sized avatar

VA2PE

View GitHub Profile
@VA2PE
VA2PE / fail2ban-allstatus.sh
Created February 9, 2018 20:53 — forked from kamermans/fail2ban-allstatus.sh
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