Browse Source

[fix] service definition in rich rules - thx jdreese on Github

tags/v0.6.2
David Bezuidenhout 9 years ago
parent
commit
941b2768b1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      firewalld/files/zone.xml

+ 1
- 1
firewalld/files/zone.xml View File

<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 %}
<destination name="{{ rule.service }}"/>
<service name="{{ rule.service }}"/>
{%- endif %} {%- endif %}
{%- if 'port' in rule %} {%- if 'port' in rule %}
<port port="{{ rule.port.portid }}" protocol="{{ rule.port.protocol }}"/> <port port="{{ rule.port.portid }}" protocol="{{ rule.port.protocol }}"/>

Loading…
Cancel
Save