Fail2ban: ability for global setting to have mail alert feature
In Plesk 12 current settings of Plesk fail2ban manager has not the ability to set globally a action for blocking and mail alerts.
At this time you have to add a action sendmail... for every jail!
Adding a macro like:
banaction = iptables-multiport
action_ = %(banaction)s[name=%(name)s, port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
actionmw = %(banaction)s[name=%(name)s, port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
%(mta)s-whois[name=%(name)s, dest="%(destemail)s", protocol="%(protocol)s", chain="%(chain)s"]
actionmwl = %(banaction)s[name=%(name)s, port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
%(mta)s-whois-lines[name=%(name)s, dest="%(destemail)s", logpath=%(logpath)s, chain="%(chain)s"
action =%(action_mwl)s
does not work properly and easy!
And needs much manual configuration in /etc/fail2ban
Please add teh ability to use actions sendmail.conf, sendmail-whois.conf, sendmail-whois-multiline.conf in Plesk 12 GUI
Unfortunately, we have to close your request, because over the years it has not become quite popular for further implementation.
—
IG