vn-ansible/host_vars/debian-test-awx-vm.yaml

43 lines
1.4 KiB
YAML
Raw Normal View History

2023-10-19 11:32:21 +00:00
---
2023-10-23 08:09:22 +00:00
bantime: "604800"
maxretry: "4"
findtime: "604800"
2023-10-19 10:54:31 +00:00
jails:
2023-10-30 16:08:40 +00:00
- name: sshd
enabled: true
port: ['22']
filter: sshd
logpath: "%(sshd_log)s"
backend: "%(sshd_backend)s"
2023-10-23 09:09:16 +00:00
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# EXAMPLE
# bantime: "604800"
# maxretry: "4"
# findtime: "604800"
# jails:
2023-10-23 09:19:18 +00:00
#- name: NAME-FILTER(list -> /etc/fail2ban/filter.d/somefilenamefilter) - (first JAIL SSH)
2023-10-23 07:21:01 +00:00
# enabled: true
2023-10-23 09:09:16 +00:00
# filter: somefilenamefilter
# logpath: /var/log/logofserviceauths
# port: ['nameofservice', 'PORTNUMBEROFSERVICE']
# maxretry: 4 # max retry to auth
# bantime: 604800 # 1week bantime in seconds
# findtime: 604800 # 1week time finding source-host auth
2023-10-23 09:18:04 +00:00
# action: "%(action_mwl)s"
2023-10-23 09:19:18 +00:00
#- name: NAME-FILTER(list -> /etc/fail2ban/filter.d/somefilenamefilter) - (second JAIL otherService)
2023-10-23 09:09:16 +00:00
# enabled: true
# filter: somefilenamefilter
# logpath: /var/log/logofserviceauths
# port: ['nameofservice', 'PORTNUMBEROFSERVICE']
# maxretry: 4 # max retry to auth
# bantime: 604800 # 1week bantime in seconds
# findtime: 604800 # 1week time finding source-host auth
2023-10-23 09:19:18 +00:00
# banaction: NAME-ACTION(list -> /etc/fail2ban/action.d/somefilenameaction)
2023-10-23 09:18:04 +00:00
# action: "%(action_mwl)s"
2023-10-23 09:09:16 +00:00
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# 31536000 ; year
# 18144000 ; 30days
# 604800 ; 1 week
# 86400 ; 1 day
# 3600 ; 1 hour
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++