vn-ansible/roles/config-fail2ban/templates/jail.j2

37 lines
1.1 KiB
Django/Jinja

#+++++++++++++++++++++++++++++++++++++
# PLS , DONT EDIT THIS FILE , THIS FILE IS DEPLOYER WITH ANSIBLE TEMPLATES , IF U WANT SOME CHANGES OR ADD NEW POLICIES
# EDIT THE FILE config-fail2ban.yaml IN GITEA REPO vn-ansible > linux > base-config-debian , AND ADD MORE VARS
#+++++++++++++++++++++++++++++++++++++
#+++++++++++++++++++++++++++++++++++++
[DEFAULT]
# Add any default configuration options here
bantime = {{ bantime }}
maxretry = {{ maxretry }}
findtime = {{ findtime }}
destemail = sysadmin@verdnatura.es
sender = root@{{ ansible_nodename }}.verdnatura.es
action = %(action_mwl)s
#+++++++++++++++++++++++++++++++++++++
# 31536000 ; year
# 18144000 ; 30days
# 604800 ; 1 week
# 86400 ; 1 day
# 3600 ; 1 hour
{% for jail in jails %}
#+++++++++++++++++++++++++++++++++++++
[{{ jail.name }}]
enabled = {{ jail.enabled }}
filter = {{ jail.filter }}
logpath = {{ jail.logpath }}
port = {{ jail.port | join(' ') }}
maxretry = {{ jail.maxretry }}
bantime = {{ jail.bantime }}
findtime = {{ jail.findtime }}
action = {{ jail.action }}
{% endfor %}
#+++++++++++++++++++++++++++++++++++++