This small shell script gives you a small and quick overview of all currently banned failed2ban IPs
Here are two examples of how it should look:
Note: Those are only local IPs so I don't mind them being public.
💡Tip:
You can create a shortcut to the script e.g. in ZSH inside the zshrc file alias bannedIPs="sh {pathToScript}"