How to permanently blacklist IP addresses

Hi,

I am on the FreePBX bistro FreePBX 12.0.64

This problem has plagued me for years and I have made mods to fail2ban to permanently blacklist IP addresses.

I am wondering if it could be added to the Intrusion detection area just like the whitelist. It would be great to just click on the currently blacklisted IP addresses and then click to add.

So my question I wanted to ask here is: What is the best way to blacklist IP addresses?
I have pesky people trying to hack in every hour or so.

That works in the latest fail2ban (0.9.1) as the bans are kept permanently in a sqlite3 database but it’s hard to install on a RH system (you need a current python)

Do it in on your firewall.