Add sources to the multicast net rule.

This commit is contained in:
Andrea Dell'Amico 2022-12-29 18:42:56 +01:00
parent e0aee06fc8
commit 12f1c03eb2
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 3 additions and 1 deletions

View File

@ -227,8 +227,10 @@
{% endif %}
{% if jgroups_sources is defined %}
{% for s in jgroups_sources %}
-A INPUT -d {{ jgroups_multicast_net | default('224.0.0.1') }} -j ACCEPT
-A INPUT -s {{ s }} -d {{ jgroups_multicast_net | default('224.0.0.1') }} -j ACCEPT
{% endfor %}
{% else %}
-A INPUT -d {{ jgroups_multicast_net | default('224.0.0.1') }} -j ACCEPT
{% endif %}
{% endif %}