瀏覽代碼

fix(zone): fixed conditional and formatting of template for forwarding

pull/61/head
K. de Jong 6 月之前
父節點
當前提交
c9919881a7
No account linked to committer's email address
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. +5
    -3
      firewalld/files/zone.xml

+ 5
- 3
firewalld/files/zone.xml 查看文件

@@ -123,6 +123,11 @@
{%- if 'icmp_block_inversion' in zone and zone.icmp_block_inversion %}
<icmp-block-inversion />
{%- endif %}
{%- if 'forward' in zone %}
{%- if zone.forward %}
<forward/>
{%- endif %}
{%- endif %}
{%- if 'masquerade' in zone %}
{%- if zone.masquerade %}
<masquerade/>
@@ -136,9 +141,6 @@
<forward-port port="{{ v.portid }}" protocol="{{ v.protocol }}"{%- if 'to_port' in v %} to-port="{{ v.to_port }}"{%- endif %}{%- if 'to_addr' in v %} to-addr="{{ v.to_addr }}"{%- endif %} />
{%- endfor %}
{%- endif %}
{%- if 'forward' in zone %}
{%- if rule.forward %}<forward/>{%- endif %}
{%- endif %}
{%- if 'source_ports' in zone %}
{%- for v in zone.source_ports %}
{%- if 'comment' in v %}

Loading…
取消
儲存