The old one is locked, and while this isn’t necessarily a permanent solution for this, just turning off the intrusion detection / firewall sync fixed the CPU usage issue. Firewall → Advanced → Advanced Settings.
I’m thinking there’s some other configuration issue at play here. I moved the server to a new VM, did a restore of a backup (not a snapshot) and registered it under a new zend ID without any paid modules. The issue started immediately.
I also compared the files in /etc/fail2ban to a working one (did not go into the sub directories) and saw no difference. FIrewall module looked very similar as well.
In the Intrusion Detection settings, you can enable/disable multiple synchronization types - Trusted IPs, Registered IPs, etc.
What I believe might be happening is that when you synchronize trusted IPs, and the Trusted Zone includes FQDNs, this is causing fail2ban to use a lot of CPU. I don’t know why, but I’ve noticed it a few times before on some of the servers I manage.
Obviously it’s not ideal, but if you want to get to the bottom of it, testing these things will help provide a better description to Sangoma Support when opening a commercial module support ticket.
The FreePBX Distro ships with 0.11.1 It would be up to Sangoma to push a newer version to their repos, we won’t install anything else.
All I am trying to do is ascertain if the OP is having an issue as a result of fail2ban sync trying to handle trusted zone entries with a FQDN which is the issue we have seen a few times before.
The latest version of F2B is not yet compatible with the FreePBX distribution.
Don’t update it.
The FreePBX system uses its own F2B rpm.
I think the next distribution will include a new version of F2B.
It would be interesting to know what the incompatibilities are and why it’s taken +6 years to ponder them
i can assure folks that current versions work fine with FreePBX open source and have done so ever since 0.8 was put out to pasture, it’s all in the regexes, the backend and moving to sqlite3 to make it work ‘better’ and faster.