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

46 lines
1.5 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:
- name: sshd
enabled: true
filter: sshd
2023-10-20 08:00:58 +00:00
logpath: /var/log/auth.log
2023-10-19 10:54:31 +00:00
port: ['ssh', '22']
2023-10-23 08:09:22 +00:00
maxretry: 4
bantime: 604800
findtime: 604800
2023-10-23 08:56:29 +00:00
action: "%(action_mwl)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
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++