Can the firewall permanently ban ip addresses automatically?

Up until now, I only had enabled fail2ban on my freepbx. Seeing that there is no way to permanently ban ip addresses just by using fail2ban, today I also enabled the firewall. How can I configure the firewall to automatically and permanently ban the ip addresses that fail2ban bans?

Or if the firewall can’t talk to fail2ban, how can I permanently and automatically blacklist the banned/blacklisted ip addresses?


I would also like to know if this is possible. Or it might be that we need to do a feature request if it isn’t available yet.

I believe what you are looking for is under

Communications > firewall > services > Blacklist

Will the Blacklist option, automatically pick up the fail2ban banned IP’s and ban them permanently? Or do we have to add each IP to the Blacklist manually?

Separate applications, I do not believe they interact.

Upgrade your fail2ban to stable or higher

Set bantime=-1

can fail2ban be updated independently of freepbx?

I’m only asking because fail2ban is managed through freepbx and I don’t want to upgrade it, and break any functionality/communication between the 2 software.

I have never had a problem with that.

1 Like

According to the instructions on the fail2ban download page, in order to install the stable version of fail2ban, I first have to install EPEL packages.

yum install

But that command gives me this message:

[[email protected] bin]# yum install
Loaded plugins: fastestmirror, versionlock
epel-release-latest-7.noarch.rpm                                                                                           |  15 kB  00:00:00
Examining /var/tmp/yum-root-U4wGaP/epel-release-latest-7.noarch.rpm: epel-release-7-11.noarch
Cannot install package epel-release-7-11.noarch. It is obsoleted by installed package sangoma-release-7-5.1805.02.el7.sangoma.x86_64
Error: Nothing to do

How did you upgrade fail2ban on your freepbx?

Then tar -xzsf …
cd …
./ install

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.