Always define a multicast network for jgroups

This commit is contained in:
Andrea Dell'Amico 2022-12-31 16:54:04 +01:00
parent 25c9001944
commit 3a7266e0dd
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 3 deletions

View File

@ -224,9 +224,7 @@
-A INPUT -m state --state NEW -p tcp -m tcp --dport {{ jgroups_multicast_port }} -j ACCEPT
-A INPUT -p udp -m udp --dport {{ jgroups_multicast_port }} -j ACCEPT
{% endif %}
{% if jgroups_multicast_net is defined %}
-A INPUT -d {{ jgroups_multicast_net }} -j ACCEPT
{% endif %}
-A INPUT --protocol igmp -d {{ jgroups_multicast_net | default('224.0.0.0/4') }} -j ACCEPT
{% endif %}
{% if docker_swarm is defined and docker_swarm %}