Explorar el Código

fix(zone): the forward statement was set in the rule section

pull/61/head
K. de Jong hace 7 meses
padre
commit
a91cd95ebb
Ninguna cuenta vinculada a la dirección de correo electrónico del committer
Se han modificado 2 ficheros con 4 adiciones y 3 borrados
  1. +3
    -3
      firewalld/files/zone.xml
  2. +1
    -0
      test/integration/default/files/_mapdata/almalinux-8.yaml

+ 3
- 3
firewalld/files/zone.xml Ver fichero

@@ -33,9 +33,6 @@
{%- if 'masquerade' in rule %}
{%- if rule.masquerade %}<masquerade/>{%- endif %}
{%- endif %}
{%- if 'forward' in rule %}
{%- if rule.forward %}<forward/>{%- endif %}
{%- endif %}
{%- if 'forward_port' in rule %}
{%- if 'comment' in rule.forward_port %}
<!-- {{ rule.forward_port.comment }} -->
@@ -139,6 +136,9 @@
<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 %}

+ 1
- 0
test/integration/default/files/_mapdata/almalinux-8.yaml Ver fichero

@@ -112,6 +112,7 @@ values:
are accepted.
other_services:
- zabbixcustom
forward: true
ports:
- comment: zabbix-agent
port: 10050

Cargando…
Cancelar
Guardar