From 5e513ca2f97f19dcfc7eae4d0cb831f2491e708b Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 30 Nov 2020 16:51:29 +0100 Subject: [PATCH] Another variable fix. --- templates/iptables-rules.v4.j2 | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/templates/iptables-rules.v4.j2 b/templates/iptables-rules.v4.j2 index 07cc634..6a6adbe 100644 --- a/templates/iptables-rules.v4.j2 +++ b/templates/iptables-rules.v4.j2 @@ -200,6 +200,15 @@ {% endif %} {% endif %} +{% if jgroups_cluster_enabled %} +# tomcat/jboss/wildfly cluster +-A INPUT -m pkttype --pkt-type multicast -d {{ 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 +{% endif %} +{% endif %} + {% if docker_swarm is defined and docker_swarm %} {% for cidr in docker_swarm_allowed_hosts %} -A INPUT -m state --state NEW -s {{ cidr }} -p tcp -m tcp --dport 2377 -j ACCEPT @@ -261,14 +270,7 @@ {% endif %} {% endif %} {% endif %} -{% if jgroups_cluster_enabled %} -# tomcat/jboss/wildfly cluster --A INPUT -m pkttype --pkt-type multicast -d {{ jgroups_multicast_addr }} -j ACCEPT --A INPUT -m state --state NEW -p tcp -m tcp --dport {{ jgroups_multicast_port }} -j ACCEPT -{% if hybernate_multicast_net is defined %} --A INPUT -d {{ jgroups_multicast_net }} -j ACCEPT -{% endif %} -{% endif %} + {% if orientdb_hazelcast_multicast_enabled is defined and orientdb_hazelcast_multicast_enabled %} # orientdb hazelcast multicast rules -A INPUT -m pkttype --pkt-type multicast -d {{ orientdb_hazelcast_multicast_group }} -j ACCEPT