Resolution: Out of Date
Affects Version/s: 12
Fix Version/s: None
The jail.local file in /etc/fail2ban has multiple syntax errors resulting in duplicate chains and incorrect email reporting.
The [pbx-gui] jail incorrectly defines the jail name in the action parameter as "SIP"
action = iptables-allports[name=SIP, protocol=all]
where that should be
action = iptables-allports[name=HTTP, protocol=all]
All jails have as name=recidive in the sendmail action, where each should have the same name as the jail header.
E.g. for the [asterisk-iptables] jail:
sendmail[name=recidive, dest=<redacted>@<redacted>, sender=<redacted>@<redacted>]
sendmail[name=asterisk, dest=<redacted>@<redacted>, sender=<redacted>@<redacted>]
This file is generated by the SysAdmin Module, that is a commercial module so the code is not accessible to us.