Skip to content

Commit

Permalink
fix #40
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannik authored Jan 4, 2017
1 parent 213156e commit dfdc5bf
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 dfdc5bf

Please sign in to comment.