feat: add forward option for zones
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0f2c09d9e1
commit
a73eaafafe
@ -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:
|
||||||
|
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user