Fail2ban

From Personal Knowledgebase

unban IP Address

fail2ban-client unban 

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