Sfoglia il codice sorgente

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

pull/61/head
K. de Jong 6 mesi fa
parent
commit
c9919881a7
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. +5
    -3
      firewalld/files/zone.xml

+ 5
- 3
firewalld/files/zone.xml Vedi File

@@ -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…
Annulla
Salva