add v4 and v6 any rules
authorStephen Gran <steve@lobefin.net>
Sat, 20 Feb 2010 22:11:43 +0000 (22:11 +0000)
committerStephen Gran <steve@lobefin.net>
Sat, 20 Feb 2010 22:12:05 +0000 (22:12 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/apache2/manifests/init.pp
modules/exim/manifests/init.pp
modules/munin-node/manifests/init.pp
modules/nagios/manifests/client.pp
modules/named/manifests/init.pp
modules/ntp/manifests/init.pp

index 9975b54..03f29bd 100644 (file)
@@ -130,6 +130,7 @@ class apache2 {
                refreshonly => true,
        }
         ferm::rule { "dsa-apache":
+                domain          => (ip ip6),
                 description     => "Allow web access",
                 rule            => "proto tcp mod state state (NEW) dport (80) ACCEPT"
         }
index f488918..4acee3b 100644 (file)
@@ -157,6 +157,7 @@ class exim {
         refreshonly => true,
     }
     ferm::rule { "dsa-exim":
+            domain          => (ip ip6),
             description     => "Allow smtp access",
             rule            => "proto tcp mod state state (NEW) dport (25) ACCEPT"
     }
index 6dc8b07..c8727dd 100644 (file)
@@ -75,9 +75,10 @@ class munin-node {
         path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
         refreshonly => true,
     }
-   ferm::rule { "dsa-munin":
-           description     => "Allow munin from munin master",
-           rule            => "proto tcp mod state state (NEW) dport (munin) @subchain 'munin' { saddr (\$HOST_MUNIN) ACCEPT; }"
-   }
+    ferm::rule { "dsa-munin":
+            domain          => (ip ip6),
+            description     => "Allow munin from munin master",
+            rule            => "proto tcp mod state state (NEW) dport (munin) @subchain 'munin' { saddr (\$HOST_MUNIN) ACCEPT; }"
+    }
 }
 
index edfbbfa..7fcbb03 100644 (file)
@@ -46,6 +46,7 @@ class nagios::client inherits nagios {
                refreshonly => true,
        }
         ferm::rule { "dsa-nagios":
+                domain          => (ip ip6),
                 description     => "Allow nrpe from nagios master",
                 rule            => "proto tcp mod state state (NEW) dport (5666) @subchain 'nagios' { saddr (\$HOST_NAGIOS) ACCEPT; }"
         }
index 73c7cdc..9c4b82b 100644 (file)
@@ -26,6 +26,7 @@ class named {
                         ;
         }
         ferm::rule { "dsa-bind":
+                domain          => (ip ip6),
                 description     => "Allow nameserver access",
                 rule            => "proto (udp tcp) mod state state (NEW) dport (53) ACCEPT"
         }
index 00b3340..a499bb6 100644 (file)
@@ -26,6 +26,7 @@ class ntp {
                refreshonly => true,
        }
         ferm::rule { "dsa-ntp":
+                domain          => (ip ip6),
                 description     => "Allow ntp access",
                 rule            => "proto udp mod state state (NEW) dport (123) ACCEPT"
         }