2014-08-23 16:44:48 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-05-25 23:51:04 +02:00
|
|
|
<!--
|
|
|
|
This file is managed/generated by salt.
|
|
|
|
Do not edit this file manually, it will be overwritten!
|
|
|
|
Modify the salt pillar for firewalld instead
|
|
|
|
-->
|
2015-05-25 15:30:52 +02:00
|
|
|
<service version="1">
|
2019-04-05 21:04:30 +02:00
|
|
|
{%- if 'short' in service %}
|
|
|
|
<short>{{ service.short }}</short>
|
|
|
|
{%- else %}
|
|
|
|
<short>{{ name }}</short>
|
|
|
|
{%- endif %}
|
|
|
|
{%- if 'description' in service %}
|
|
|
|
<description>{{ service.description }}</description>
|
|
|
|
{%- endif %}
|
2015-03-11 15:04:00 +01:00
|
|
|
{%- if 'ports' in service %}
|
2019-04-05 21:04:30 +02:00
|
|
|
{%- if 'tcp' in service.ports %}
|
|
|
|
{%- for v in service.ports.tcp %}
|
2015-03-11 15:04:00 +01:00
|
|
|
<port port="{{ v }}" protocol="tcp" />
|
2019-04-05 21:04:30 +02:00
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- if 'udp' in service.ports %}
|
|
|
|
{%- for v in service.ports.udp %}
|
2015-03-11 15:04:00 +01:00
|
|
|
<port port="{{ v }}" protocol="udp" />
|
2019-04-05 21:04:30 +02:00
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- if 'sctp' in service.ports %}
|
|
|
|
{%- for v in service.ports.sctp %}
|
|
|
|
<port port="{{ v }}" protocol="sctp" />
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- if 'dccp' in service.ports %}
|
|
|
|
{%- for v in service.ports.dccp %}
|
|
|
|
<port port="{{ v }}" protocol="dccp" />
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- if 'protocols' in service %}
|
|
|
|
{%- for v in service.protocols %}
|
|
|
|
<protocol value="{{ v }}" />
|
2015-03-11 15:04:00 +01:00
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
2019-04-05 21:04:30 +02:00
|
|
|
{%- if 'source_ports' in service %}
|
|
|
|
{%- if 'tcp' in service.source_ports %}
|
|
|
|
{%- for v in service.source_ports.tcp %}
|
|
|
|
<source-port port="{{ v }}" protocol="tcp" />
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- if 'udp' in service.source_ports %}
|
|
|
|
{%- for v in service.source_ports.udp %}
|
|
|
|
<source-port port="{{ v }}" protocol="udp" />
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- if 'sctp' in service.source_ports %}
|
|
|
|
{%- for v in service.source_ports.sctp %}
|
|
|
|
<source-port port="{{ v }}" protocol="sctp" />
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- if 'dccp' in service.source_ports %}
|
|
|
|
{%- for v in service.source_ports.dccp %}
|
|
|
|
<source-port port="{{ v }}" protocol="dccp" />
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- endif %}
|
2015-03-11 15:04:00 +01:00
|
|
|
{%- if 'modules' in service %}
|
|
|
|
{%- for v in service.modules %}
|
|
|
|
<module name="{{ v }}" />
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- if 'destinations' in service %}
|
|
|
|
{%- if 'ipv4' in service.destinations %}
|
|
|
|
{%- for v in service.destinations.ipv4 %}
|
|
|
|
<destination ipv4="{{ v }}" />
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- if 'ipv6' in service.destinations %}
|
|
|
|
{%- for v in service.destinations.ipv6 %}
|
|
|
|
<destination ipv6="{{ v }}" />
|
2015-03-11 15:38:54 +01:00
|
|
|
{%- endfor %}
|
2015-03-11 15:04:00 +01:00
|
|
|
{%- endif %}
|
|
|
|
{%- endif %}
|
2014-08-23 16:44:48 +02:00
|
|
|
</service>
|