add action

This commit is contained in:
Ruben Blanco 2023-10-23 10:07:02 +02:00
parent c4f2ec3876
commit be7cf2ec9c
2 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,7 @@ jails:
maxretry: 10
bantime: 10m
findtime: 10m
action: iptables
#- name: asterisk
# enabled: true
# filter: asterisk

View File

@ -15,6 +15,12 @@ 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 }}]
@ -25,5 +31,6 @@ port = {{ jail.port | join(' ') }}
maxretry = {{ jail.maxretry }}
bantime = {{ jail.bantime }}
findtime = {{ jail.findtime }}
action = {{ jail.action }}
{% endfor %}
#+++++++++++++++++++++++++++++++++++++