diff --git a/templates/iptables-rules.v4.j2 b/templates/iptables-rules.v4.j2 index 4612407..d14de65 100644 --- a/templates/iptables-rules.v4.j2 +++ b/templates/iptables-rules.v4.j2 @@ -202,8 +202,8 @@ {% if jgroups_cluster_enabled %} # infinispan/jgroups -{% if jgroups_sources is defined %} -{% for s in jgroups_sources %} +{% if jgroups_multicast_sources is defined %} +{% for s in jgroups_multicast_sources %} -A INPUT -s {{ s }} -m pkttype --pkt-type multicast -d {{ jgroups_multicast_addr }} -j ACCEPT {% if jgroups_mping_multicast_addr is defined and jgroups_mping_multicast_addr != jgroups_multicast_addr %} -A INPUT -s {{ s }} -m pkttype --pkt-type multicast -d {{ jgroups_mping_multicast_addr }} -j ACCEPT