Skip to content

Commit

Permalink
Merge pull request #41 from Yannik/patch-6
Browse files Browse the repository at this point in the history
fix #40
  • Loading branch information
tersmitten authored Jan 11, 2017
2 parents 57c5e49 + dfdc5bf commit af671f1
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions templates/etc/fail2ban/jail.local.j2
Original file line number Diff line number Diff line change
Expand Up @@ -105,32 +105,10 @@ action = {{ fail2ban_action }}
{% for service in fail2ban_services %}
[{{ service.name }}]
enabled = {{ service.enabled | default(true) | bool | to_json }}
{% if service.port is defined %}
port = {{ service.port }}
{% endif %}
{% if service.filter is defined %}
filter = {{ service.filter }}
{% endif %}
{% if service.logpath is defined %}
logpath = {{ service.logpath }}
{% endif %}
{% if service.maxretry is defined %}
maxretry = {{ service.maxretry }}
{% endif %}
{% if service.protocol is defined %}
protocol = {{ service.protocol }}
{% endif %}
{% if service.findtime is defined %}
findtime = {{ service.findtime }}
{% endif %}
{% if service.bantime is defined %}
bantime = {{ service.bantime }}
{% endif %}
{% if service.action is defined %}
action = {{ service.action }}
{% endif %}
{% if service.banaction is defined %}
banaction = {{ service.banaction }}
{% for option, value in service.iteritems() %}
{% if option not in ['name', 'enabled'] %}
{{ option }}={{ value }}
{% endif %}
{% endfor %}

{% endfor %}

0 comments on commit af671f1

Please sign in to comment.