27 lines
871 B
Django/Jinja
27 lines
871 B
Django/Jinja
# Jinja2 template for Fail2Ban jail.local
|
|
|
|
#+++++++++++++++++++++++++++++++++++++
|
|
# PLS , DONT EDIT THIS FILE , THIS FILE IS DEPLOYER WITH ANSIBLE TEMPLATES , IF U WANT SOME CHANGES OR ADD
|
|
# 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
|
|
action = %(action_)s
|
|
|
|
#+++++++++++++++++++++++++++++++++++++
|
|
{% 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 }}
|
|
{% endfor %}
|
|
#+++++++++++++++++++++++++++++++++++++ |