Prototype a role for installing fail2ban on RHEL 9+
This commit is contained in:
14
roles/fail2ban_rhel/templates/sshd.conf.j2
Normal file
14
roles/fail2ban_rhel/templates/sshd.conf.j2
Normal file
@@ -0,0 +1,14 @@
|
||||
[sshd]
|
||||
enabled = {{ fail2ban_rhel_jail_sshd.enabled | ternary('true', 'false') }}
|
||||
port = {{ fail2ban_rhel_jail_sshd.port }}
|
||||
|
||||
logpath = {{ fail2ban_rhel_jail_sshd.logpath }}
|
||||
|
||||
backend = {{ fail2ban_rhel_jail_sshd.backend }}
|
||||
banaction = {{ fail2ban_rhel_jail_sshd.banaction }}
|
||||
|
||||
findtime = {{ fail2ban_rhel_jail_sshd.findtime }}
|
||||
maxretry = {{ fail2ban_rhel_jail_sshd.maxretry }}
|
||||
bantime = {{ fail2ban_rhel_jail_sshd.bantime }}
|
||||
|
||||
ignoreip = {{ fail2ban_rhel.ignoreips | default([]) | join(' ') }}
|
||||
Reference in New Issue
Block a user