[INFO] Créer le dépôt

This commit is contained in:
2023-05-24 11:44:34 +02:00
parent 914a2ebf4e
commit 9a3e036411
9 changed files with 192 additions and 4 deletions

25
templates/01-base.conf.j2 Normal file
View File

@@ -0,0 +1,25 @@
# {{ ansible_managed }}
[DEFAULT]
# nftables
banaction = nftables-multiport
banaction_allports = nftables-allports
# rules
findtime = 3600
bantime = 86400
maxretry = 3
# notification
destemail = {{ fail2ban_destemail }}
sender = {{ fail2ban_sender }}
action = %(action_mwl)s
ignoreip = 127.0.0.1/8, ::1/128, {{ fail2ban_ignoreip | join(', ') }}
[sshd]
enabled = true
port = {{ fail2ban_ssh_port }}
[recidive]
enabled = true

View File

@@ -0,0 +1,5 @@
# {{ ansible_managed }}
[Definition]
loglevel = ERROR
dbpurgeage = 8d