From c10eb540ebebdfb37c5c19fb6a0aa21efb5fdb48 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 16 Feb 2021 20:00:33 +0100 Subject: [PATCH] add a new multicast rule. --- templates/iptables-rules.v4.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/iptables-rules.v4.j2 b/templates/iptables-rules.v4.j2 index 6a6adbe..4f98a4d 100644 --- a/templates/iptables-rules.v4.j2 +++ b/templates/iptables-rules.v4.j2 @@ -203,6 +203,7 @@ {% if jgroups_cluster_enabled %} # tomcat/jboss/wildfly cluster -A INPUT -m pkttype --pkt-type multicast -d {{ jgroups_multicast_addr }} -j ACCEPT +-A INPUT -m pkttype --pkt-type multicast -d {{ jgroups_mping_multicast_addr | default(jgroups_multicast_addr) }} -j ACCEPT -A INPUT -m state --state NEW -p tcp -m tcp --dport {{ jgroups_multicast_port }} -j ACCEPT {% if jgroups_multicast_net is defined %} -A INPUT -d {{ jgroups_multicast_net }} -j ACCEPT