commit
bf427f0626
@ -14,10 +14,10 @@
|
|||||||
<source ipset="{{ rule.ipset.name }}" />
|
<source ipset="{{ rule.ipset.name }}" />
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if 'source' in rule %}
|
{%- if 'source' in rule %}
|
||||||
<source address="{{ rule.source.address }}" {%- if 'invert' in rule.source %}invert="{{ rule.source.invert }}"{%- endif %} />
|
<source address="{{ rule.source.address }}" {%- if 'invert' in rule.source %} invert="{{ rule.source.invert }}"{%- endif %} />
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if 'destination' in rule %}
|
{%- if 'destination' in rule %}
|
||||||
<destination address="{{ rule.destination.address }}" {%- if 'invert' in rule.destination %}invert="{{ rule.destination.invert }}"{%- endif %} />
|
<destination address="{{ rule.destination.address }}" {%- if 'invert' in rule.destination %} invert="{{ rule.destination.invert }}"{%- endif %} />
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if 'service' in rule %}
|
{%- if 'service' in rule %}
|
||||||
<service name="{{ rule.service }}" />
|
<service name="{{ rule.service }}" />
|
||||||
@ -63,7 +63,7 @@
|
|||||||
<accept>{%- if rule.accept is mapping and 'limit' in rule.accept %} <limit value="{{ rule.accept.limit }}"/>{%- endif %}</accept>
|
<accept>{%- if rule.accept is mapping and 'limit' in rule.accept %} <limit value="{{ rule.accept.limit }}"/>{%- endif %}</accept>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if 'reject' in rule %}
|
{%- if 'reject' in rule %}
|
||||||
<reject{%- if 'type' in rule.reject %} type="{{ rule.reject.type }}"{%- endif %} />
|
<reject{%- if rule.reject is mapping and 'type' in rule.reject %} type="{{ rule.reject.type }}"{%- endif %} />
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if 'drop' in rule %}
|
{%- if 'drop' in rule %}
|
||||||
<drop/>
|
<drop/>
|
||||||
|
Loading…
Reference in New Issue
Block a user