aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/knot-misc/files
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-08-30 13:50:32 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-08-30 13:53:34 +0200
commitc1fe8d9551e337031e5a5d62224779b389872ea3 (patch)
treee1fd59f207a6384d30ed8b77b98ad0c1c54c6718 /ansible/roles/knot-misc/files
parent1dbf3a806335ac88d011355391a1d431cfd26f4c (diff)
downloadinfra-c1fe8d9551e337031e5a5d62224779b389872ea3.tar.gz
infra-c1fe8d9551e337031e5a5d62224779b389872ea3.tar.bz2
infra-c1fe8d9551e337031e5a5d62224779b389872ea3.tar.xz
infra-c1fe8d9551e337031e5a5d62224779b389872ea3.zip
o Adjusting fail2ban.
Diffstat (limited to 'ansible/roles/knot-misc/files')
-rw-r--r--ansible/roles/knot-misc/files/etc/fail2ban/jail.d/99-ansible.conf16
1 files changed, 16 insertions, 0 deletions
diff --git a/ansible/roles/knot-misc/files/etc/fail2ban/jail.d/99-ansible.conf b/ansible/roles/knot-misc/files/etc/fail2ban/jail.d/99-ansible.conf
new file mode 100644
index 0000000..02f32b8
--- /dev/null
+++ b/ansible/roles/knot-misc/files/etc/fail2ban/jail.d/99-ansible.conf
@@ -0,0 +1,16 @@
+# Managed by Ansible
+
+[sshd]
+enabled = true
+maxretry = 3
+bantime = 12h
+
+[postfix]
+enabled = true
+maxretry = 3
+bantime = 12h
+
+[dovecot]
+enabled = true
+maxretry = 3
+bantime = 12h