ansible-role-fail2ban/test/integration/fail2ban/default.yml
Adrien Waksberg 5d6f5efb45 first version
2018-08-06 22:43:51 +02:00

19 lines
460 B
YAML

- hosts: fail2ban
connection: local
vars:
fail2ban_jails:
- name: ssh
logpath: /var/log/alternatives.log
filter: sshd
port: 22
- name: nextcloud
logpath: /var/log/alternatives.log
filter: nextcloud
port: 80,443
additional:
maxretry: 2
fail2ban_filters:
- name: nextcloud
failregex: Login failed.*Remote IP.*'<HOST>'
roles:
- ansible-role-fail2ban