From 3a7266e0ddd1c4f049f7b02bbcb95a5c7861f554 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Sat, 31 Dec 2022 16:54:04 +0100 Subject: [PATCH] Always define a multicast network for jgroups --- templates/iptables-rules.v4.j2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/iptables-rules.v4.j2 b/templates/iptables-rules.v4.j2 index d14de65..1b51ebd 100644 --- a/templates/iptables-rules.v4.j2 +++ b/templates/iptables-rules.v4.j2 @@ -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 %}