Added bootstrap role with the tasks, defaults and handlers necessary for the playbooks

This commit is contained in:
Alex Tavarez
2025-07-16 21:02:44 -04:00
parent b22c88e1ca
commit 85b1f6cd25
41 changed files with 2349 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
[proftpd]
enabled = true
allowipv6 = true
banaction = iptables-multiport
findtime = 1200
maxretry = 3
bantime = 1h
bantime.increment = true
bantime.factor = 24
bantime.maxtime = 5w
ignoreip = 127.0.0.1/8

View File

@@ -0,0 +1,11 @@
[Service]
PrivateDevices=yes
PrivateTmp=yes
ProtectHome=read-only
ProtectSystem=strict
ReadWritePaths=-/var/run/fail2ban
ReadWritePaths=-/var/lib/fail2ban
ReadWritePaths=-/var/log/fail2ban.log
ReadWritePaths=-/var/spool/postfix/maildrop
ReadWritePaths=-/run/xtables.lock
CapabilityBoundingSet=CAP_AUDIT_READ CAP_DAC_READ_SEARCH CAP_NET_ADMIN CAP_NET_RAW

View File

@@ -0,0 +1,9 @@
[sshd]
enabled = true
filter = sshd
banaction = iptables
findtime = 1d
allowipv6 = true
maxretry = 4
bantime = 1w
ignoreip = 127.0.0.1/8