Fail2ban is one of the ways to prevent script kiddies brute-forcing their way into your system. I find it amusing to view who is trying to get in. Fail2ban doesn’t have a way of listing old bans but it’s easy to get the information out of the logs. However, unless you are experienced, it takes a bit of time to construct a command that would provide the listing you want. I decided to come up with a simple script that would provide various listings.
DOWNLOAD from Github