mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-04 05:37:34 +03:00
dist: Add maddy-dictonary-attack fail2ban filter and jail config
The exact findtime/bantime/maxtries configuration may need fine-tuning.
This commit is contained in:
parent
61d02d5658
commit
0cc3be8457
2 changed files with 14 additions and 0 deletions
7
dist/fail2ban/filter.d/maddy-dictonary-attack.conf
vendored
Normal file
7
dist/fail2ban/filter.d/maddy-dictonary-attack.conf
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
[INCLUDES]
|
||||
before = common.conf
|
||||
|
||||
[Definition]
|
||||
failregex = smtp\: MAIL FROM error repeated a lot\, possible dictonary attack\t\{\"count\"\:\d+,\"msg_id\":\".+\",\"src_ip\"\:\"<HOST>:\d+\"\}$
|
||||
smtp\: too many RCPT errors\, possible dictonary attack\t\{\"msg_id\":\".+\","src_ip":"<HOST>:\d+\"\}
|
||||
journalmatch = _SYSTEMD_UNIT=maddy.service + _COMM=maddy
|
7
dist/fail2ban/jail.d/maddy-dictonary-attack.conf
vendored
Normal file
7
dist/fail2ban/jail.d/maddy-dictonary-attack.conf
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
[maddy-dictonary-attack]
|
||||
port = 993,465,25
|
||||
filter = maddy-dictonary-attack
|
||||
bantime = 72h
|
||||
maxtries = 3
|
||||
findtime = 6h
|
||||
backend = systemd
|
Loading…
Add table
Add a link
Reference in a new issue