Add Fail2Ban configuration for Postfix and create playbooks for Duo Security and GeoIP roles

This commit is contained in:
2025-04-24 22:24:13 +02:00
parent b4178c92a2
commit d15ee52a49
3 changed files with 29 additions and 3 deletions
+9 -3
View File
@@ -96,11 +96,17 @@ fail2ban_jails:
postfix:
enabled: true
port: "smtp,ssmtp"
filter: "postfix"
filter: "postfix-k8s"
logpath: "/var/log/postfix/current"
maxretry: 3
findtime: 600
bantime: 3600
findtime: 18000
bantime: -1
fail2ban_filters:
postfix-k8s:
Definition:
failregex: "^.*?postfix/smtps/smtpd\\[\\d+\\]:.*\\[<HOST>\\]: SASL ((?i)LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed.*$"
ignoreregex: ""
# aide
install_aide: true
+10
View File
@@ -0,0 +1,10 @@
---
- name: Duo Security
hosts: linux
gather_facts: true
roles:
- role: "duo"
tags:
- roles
- roles::duosecurity
+10
View File
@@ -0,0 +1,10 @@
---
- name: Fail2Ban
hosts: linux
gather_facts: true
roles:
- role: "geoip"
tags:
- roles
- roles::geoip