System version
NethServer release 7.7.1908 (final)
Kernel release
3.10.0-1062.9.1.el7.x86_64
Hi,
I am trying to make a custom postfix-ddos.conf (filter.d/fail2ban).
I have created a file here :
/etc/e-smith/templates-custom/etc/fail2ban/filter.d/postfix-ddos.conf/10base
With this content :
# Fail2Ban filter for selected Postfix DDOS
# my custom postfix-ddos.conf (take out EHLO cause of false positive Outlook Mac)
#
[Definition]
failregex = lost connection after (AUTH|UNKNOWN|CONNECT) from (.*)\[<HOST>\]
ignoreregex =
# Author: stephane de Labrusse
But even after reboot, it doesnt apply.
What am I doing wrong?
Thanks a lot.
it is not a template, you cannot do a template custom, but you can make a template to rewrite the filter you can find at /etc/fail2ban/filter.d/postfix-ddos.conf
think to add the file in the two events nethserver-fail2ban-update and nethserver-fail2ban-save