bin/fail2ban-status

9 lines
175 B
Plaintext
Raw Normal View History

2022-10-30 07:56:46 +01:00
#!/bin/sh
#!/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