fail2ban: add variable fail2ban_sshd_port to configure sshd port
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2614|6|2608|3|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/311//ansiblelint">Evolix » ansible-roles » unstable #311</a>
gitea/ansible-roles/pipeline/head This commit looks good

This commit is contained in:
Ludovic Poujol 2023-07-31 11:50:36 +02:00
parent 7e193e4916
commit 16bba8b469
3 changed files with 3 additions and 1 deletions

View file

@ -18,6 +18,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
* dovecot: fix old_stats plugin for Dovecot 2.3.
* evolinux: Install HPE Agentless Management Service (amsd)
* fail2ban: add default variable fail2ban_dbpurgeage_default
* fail2ban: add variable fail2ban_sshd_port to configure sshd port
* nagios-nrpe: add a NRPE check-local command with completion.
* policy_pam: New role allowing to manage password policy with pam_pwquality & pam_pwhistory
* userlogrotate: rotate also php.log.

View file

@ -23,6 +23,7 @@ fail2ban_default_findtime: 10m
fail2ban_default_action: "action_"
fail2ban_sshd: True
fail2ban_sshd_port: "ssh,2222,22222"
fail2ban_sshd_maxretry: 10
fail2ban_sshd_bantime: "{{ fail2ban_default_bantime }}"
fail2ban_sshd_findtime: "{{ fail2ban_default_findtime }}"

View file

@ -21,7 +21,7 @@ action = %({{ fail2ban_default_action }})s
[sshd]
enabled = {{ fail2ban_sshd }}
port = ssh,2222,22222
port = {{ fail2ban_sshd_port }}
maxretry = {{ fail2ban_sshd_maxretry }}
findtime = {{ fail2ban_sshd_findtime }}