add fail2ban rules for dovecot and postfix
This commit is contained in:
parent
63868eb38c
commit
052bde2a56
1 changed files with 12 additions and 0 deletions
|
@ -3,5 +3,17 @@
|
|||
enable = true;
|
||||
bantime-increment.enable = true;
|
||||
bantime-increment.maxtime = "48h";
|
||||
jails = {
|
||||
dovecot = ''
|
||||
enabled = true
|
||||
filter = dovecot
|
||||
action = iptables-multiport[name=dovecot, port="pop3,pop3s,imap,imaps", protocol=tcp]
|
||||
'';
|
||||
postfix = ''
|
||||
enabled = true
|
||||
filter = postfix
|
||||
action = iptables-multiport[name=postfix, port="imap,imaps,submission", protocol=tcp]
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue