2023-10-19 09:21:54 +00:00
|
|
|
|
|
|
|
#+++++++++++++++++++++++++++++++++++++
|
2023-10-19 10:09:27 +00:00
|
|
|
# PLS , DONT EDIT THIS FILE , THIS FILE IS DEPLOYER WITH ANSIBLE TEMPLATES , IF U WANT SOME CHANGES OR ADD NEW POLICIES
|
2023-10-19 09:21:54 +00:00
|
|
|
# EDIT THE FILE config-fail2ban.yaml IN GITEA REPO vn-ansible > linux > base-config-debian , AND ADD MORE VARS
|
|
|
|
#+++++++++++++++++++++++++++++++++++++
|
|
|
|
|
2023-10-19 10:09:27 +00:00
|
|
|
#+++++++++++++++++++++++++++++++++++++
|
2023-10-19 09:21:54 +00:00
|
|
|
[DEFAULT]
|
|
|
|
# Add any default configuration options here
|
|
|
|
bantime = {{ bantime }}
|
|
|
|
maxretry = {{ maxretry }}
|
|
|
|
findtime = {{ findtime }}
|
|
|
|
destemail = sysadmin@verdnatura.es
|
2023-10-23 07:38:28 +00:00
|
|
|
sender = root@{{ ansible_nodename }}.verdnatura.es
|
2023-10-26 12:10:06 +00:00
|
|
|
banaction = nftables-multiport
|
|
|
|
banaction_allports = nftables-allports
|
2023-10-23 07:38:28 +00:00
|
|
|
action = %(action_mwl)s
|
2023-10-19 10:02:26 +00:00
|
|
|
#+++++++++++++++++++++++++++++++++++++
|
2023-10-19 10:09:27 +00:00
|
|
|
|
2023-10-23 08:07:02 +00:00
|
|
|
# 31536000 ; year
|
|
|
|
# 18144000 ; 30days
|
|
|
|
# 604800 ; 1 week
|
|
|
|
# 86400 ; 1 day
|
|
|
|
# 3600 ; 1 hour
|
|
|
|
|
2023-10-19 09:21:54 +00:00
|
|
|
{% for jail in jails %}
|
2023-10-19 10:04:28 +00:00
|
|
|
#+++++++++++++++++++++++++++++++++++++
|
2023-10-19 09:21:54 +00:00
|
|
|
[{{ jail.name }}]
|
|
|
|
enabled = {{ jail.enabled }}
|
|
|
|
filter = {{ jail.filter }}
|
|
|
|
logpath = {{ jail.logpath }}
|
|
|
|
port = {{ jail.port | join(' ') }}
|
|
|
|
maxretry = {{ jail.maxretry }}
|
|
|
|
bantime = {{ jail.bantime }}
|
|
|
|
findtime = {{ jail.findtime }}
|
2023-10-23 08:07:02 +00:00
|
|
|
action = {{ jail.action }}
|
2023-10-19 09:21:54 +00:00
|
|
|
{% endfor %}
|
2023-10-19 10:04:28 +00:00
|
|
|
#+++++++++++++++++++++++++++++++++++++
|