Thanks again lgaetz for your fast replay. That’s exactly what I thought…
However, FreePBX 14 seems to come with exactly that fail2ban recidive filter logpath setting. (I get my config from the jail.local of the thread starter Basildane):
I thought if FreePBX 14 comes with this setting then it should be also the correct one for my fail2ban 0.9.6 at FreePBX 11. (Although the logging of fail2ban messages does not make much sense)
Update:
I can confirm now, /var/log/fail2ban.log*
is definitely the correct setting for the recidive filter. With this config fail2ban will check his own logs regarding excessive attacks. So far I know recidive is the only fail2ban filter which works on that way.
Note, if the fail2ban.log files are missing on /var/log/ then it is necessary to enforce fail2ban to create it there with the following steps:
- Open the
/etc/fail2ban/fail2ban.conf
file - Change the line:
logtarget = SYSLOG
tologtarget = /var/log/fail2ban.log
restart fail2ban service
orsudo service fail2ban restart
After this the recidive filter is working perfectly.