and add a nop rule for munin
authorStephen Gran <steve@lobefin.net>
Sun, 7 Mar 2010 08:31:55 +0000 (08:31 +0000)
committerStephen Gran <steve@lobefin.net>
Sun, 7 Mar 2010 08:31:55 +0000 (08:31 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/ferm/templates/interfaces.conf.erb

index 0b575d4..1bebce3 100644 (file)
@@ -1,9 +1,13 @@
-def $MUNIN_IFS = (<%=
-ifs = []
-interfaces.split(',').each do |iface|
-  next unless Kernel.global_variables.include?("ipaddress_" + iface)
-  ifs << iface
-end
-ifs.join(' ')
-%>);
+def $MUNIN_IPS = (<%= v4ips.split(',').join(' ') %>);
 
+domain ip {
+        chain INPUT {
+               daddr ($MUNIN_IP) NOP;
+        }
+}
+
+domain ip {
+        chain OUTPUT {
+               saddr ($MUNIN_IP) NOP;
+        }
+}