#!/bin/bash F2BRULES="recidive sshd" echo $F2BRULES for i in $F2BRULES; do echo $i fail2ban-client status $i echo "" done