Banning Repeat Offenders With fail2ban

More and more I see fail2ban banning the same hosts repeatedly.¬†One way to tackle this could be to increase the ban time but you could also have fail2ban monitor itself to find “repeat offenders” and then ban them for an extended period of time. Firstly, create a filter definition:

This will be used¬†against the fail2ban log and will find any hosts that have been unbanned. We don’t want to