FreePBX 16.0.26 / all modules current
A week or so ago I downloaded the FreePBX 16 distro and did a clean install on a Virtualbox VM. I then copied a backup from my previous FreePBX 15 (which had been running great BTW) on another Virtualbox VM and restored this backup to FreePBX 16. I then updated FreePBX 16:
sudo yum update
sudo fwconsole ma upgradeall
and was pleased to see that FreePBX 16 appeared to be working well, except that FOP2 wouldn’t start because of a licensing issue (but that’s another story).
Today, however. after a further update of FreePBX 16 a couple of days ago, i.e.:
sudo yum update
sudo fwconsole ma upgradeall
I noticed that in the System Overview of the FreePBX dashboard that Fail2Ban was not running. I tried restarting it, which was unsuccessful, but which did point to an issue with the zulu module:
$ sudo fail2ban-client -x start
ERROR Found no accessible config files for ‘filter.d/zulu’ under /etc/fail2ban
ERROR Unable to read the filter
ERROR Errors in jail ‘zulu’. Skipping…
$
After some Googling, I decided to comment out the zulu section in /etc/fail2ban/jail.local, as follows:
$ cd /etc/fail2ban
$ sudo mv jail.local jail-orig.local
$ sudo cp jail-orig.local jail.local
$ ls -l
total 32
drwxr-xr-x. 2 root root 4096 Nov 16 19:22 action.d
-rw-r–r–. 1 root root 1525 Aug 19 2014 fail2ban.conf
drwxr-xr-x. 2 root root 6 Jan 5 2022 fail2ban.d
-rw-r–r–. 1 root root 172 Jan 5 2022 fail2ban.local
drwxr-xr-x. 2 root root 4096 Nov 21 13:29 filter.d
-rw-r–r–. 1 root root 2209 Jan 5 2022 jail.conf
drwxr-xr-x. 2 root root 6 Jan 5 2022 jail.d
-rw-r–r-- 1 root root 2936 Nov 21 13:30 jail.local
-rw-r–r-- 1 root root 2936 Nov 21 13:28 jail-orig.local
$ cat jail.local
…
[zulu]
enabled = true
filter = zulu
action = iptables-allports[name=zulu, protocol=tcp]
sendmail[name=zulu, [email protected], [email protected]]
logpath = /var/log/asterisk/zulu_out.log
…
$ sudo vi jail.local
$ cat jail.local
…
# [zulu]
# enabled = true
# = zulu
# = iptables-allports[name=zulu, protocol=tcp]
# sendmail[name=zulu, [email protected], [email protected]]
# logpath = /var/log/asterisk/zulu_out.log
…
$ sudo fail2ban-client -x start
2022-11-21 13:33:45,985 fail2ban.server [2187]: INFO Starting Fail2ban v0.8.14
2022-11-21 13:33:45,986 fail2ban.server [2187]: INFO Starting in daemon mode
$
That appeared to fix the problem, as Fail2Ban was now showing as running in the System Overview of the FreePBX dashboard, as well as in Intrusion Detection in Admin=>System Admin in the FreePBX GUI.
After a reboot of FreePBX, this issue appears to have been fixed. I only report this so it may be of help to someone else with the same issue.
In addition I uninstalled and subsequently removed the zulu module in Admin=>Module Admin