From 80132d9e803573388cd003c7f2f8d6790f7556b6 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 12 Sep 2016 11:56:19 +0200 Subject: [PATCH] library/roles/iptables/templates/iptables-rules.v4.j2: The tomcat cluster rules need more flexibility. --- iptables/templates/iptables-rules.v4.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iptables/templates/iptables-rules.v4.j2 b/iptables/templates/iptables-rules.v4.j2 index 139df04e..6a708a83 100644 --- a/iptables/templates/iptables-rules.v4.j2 +++ b/iptables/templates/iptables-rules.v4.j2 @@ -175,6 +175,9 @@ # tomcat cluster -A INPUT -m pkttype --pkt-type multicast -d {{ tomcat_cluster_multicast_addr }} -j ACCEPT -A INPUT -m state --state NEW -p tcp -m tcp --dport {{ tomcat_cluster_multicast_port }} -j ACCEPT +{% if tomcat_cluster_multicast_net is defined %} +-A INPUT -d {{ tomcat_cluster_multicast_net }} -j ACCEPT +{% endif %} {% endif %} {% if ganglia_enabled is defined %} {% if ganglia_enabled %}