diff --git a/iptables/templates/iptables-rules.v4.j2 b/iptables/templates/iptables-rules.v4.j2 index 63c099d..1b55c9c 100644 --- a/iptables/templates/iptables-rules.v4.j2 +++ b/iptables/templates/iptables-rules.v4.j2 @@ -144,12 +144,14 @@ {% endif %} {% endif %} -{% if munin_server is defined and configure_munin is defined and configure_munin %} +{% if configure_munin %} +{% if munin_server %} {% for ip in munin_server %} # Munin -A INPUT -m state --state NEW -s {{ ip }} -p tcp -m tcp --dport 4949 -j ACCEPT {% endfor %} {% endif %} +{% endif %} {% if ganglia_enabled %} {% if ganglia_gmond_cluster_port is defined %}