Skip to content

Instantly share code, notes, and snippets.

View andrei0x309's full-sized avatar

Andrei O. andrei0x309

View GitHub Profile
@andrei0x309
andrei0x309 / fail2ban-allstatus.sh
Last active December 6, 2016 11:15 — forked from kamermans/fail2ban-allstatus.sh
Show status of all fail2ban jails at once
#!/bin/bash
JAILS=`fail2ban-client status | grep "Jail list" | sed -r 's/^[^:]+:[ \t]+//' | sed 's/,//g'`
for JAIL in $JAILS
do
fail2ban-client status $JAIL
done