IDH - UDP vs TCP support

This commit is contained in:
Josh Brower
2022-02-22 14:10:05 -05:00
parent df9fc807a3
commit 99554d5db8

View File

@@ -114,8 +114,13 @@ firewall:
{% if idh_services is defined %} {% if idh_services is defined %}
{% for service in idh_services %} {% for service in idh_services %}
{% if service in ["smnp","ntp", "tftp"] %}
{% set proto = 'udp' %}
{% else %}
{% set proto = 'tcp' %}
{% endif %}
idh_{{service}}: idh_{{service}}:
tcp: {{proto}}:
- {{ OPENCANARYCONFIG[service~'.port'] }} - {{ OPENCANARYCONFIG[service~'.port'] }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}