feat: add forward option for zones
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2022-10-12 16:22:57 +02:00
parent 0f2c09d9e1
commit a73eaafafe
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 14 additions and 1 deletions

View File

@ -17,6 +17,18 @@ firewalld_allow_zone_drifting: False
firewalld_ipsets: [] firewalld_ipsets: []
firewalld_ipsets_extra: [] firewalld_ipsets_extra: []
# @var firewalld_services:description: >
# A firewalld service can be a list of local ports and destinations and additionally also a list of firewall helper modules
# automatically loaded if a service is enabled.
# @var firewalld_services:example: >
# - name: ""
# short: ""
# description: ""
# port: []
# protocol: []
# source_port: []
# module: []
# destination: {}
firewalld_services: [] firewalld_services: []
firewalld_services_extra: [] firewalld_services_extra: []
@ -42,6 +54,7 @@ firewalld_services_extra: []
# - name: # - name:
# icmp-block-inversion: true # icmp-block-inversion: true
# masquerade: true # masquerade: true
# forward: true
# forward-port: # forward-port:
# - { port: "", protocol: "" } # - { port: "", protocol: "" }
# source-port: # source-port:

View File

@ -12,7 +12,7 @@
<{{ tag }}{% for name, value in subtag.items() %} {{ name }}="{{ value }}"{% endfor %}/> <{{ tag }}{% for name, value in subtag.items() %} {{ name }}="{{ value }}"{% endfor %}/>
{% endfor %} {% endfor %}
{# Settings which can be used once #} {# Settings which can be used once #}
{% elif tag in ["icmp-block-inversion", "masquerade"] and item[tag] == True %} {% elif tag in ["icmp-block-inversion", "masquerade", "forward"] and item[tag] | bool %}
<{{ tag }}/> <{{ tag }}/>
{% endif %} {% endif %}
{% endfor %} {% endfor %}