]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
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 9975b54606e6b2bb12837aed63161cc7ff1cec3e..03f29bd17d07c1099272aec036ba0c4aecc0e961 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 f488918a3395c0f8cff4d3e427159828c666c402..4acee3b695a551c3eb158d3d48c78841fcdca13f 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 6dc8b07eab1a34ae7b222e5f31fd6496a7b8a52b..c8727dde20b3b11b961489fbb3c9a54ee7b32233 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 edfbbfadcca6f59130226dde304779fcf2a6d581..7fcbb03da1cf9e9cc50d9627a4bb18c5cb87e03f 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 73c7cdcb31caf45f34d00cf8034df30d256f5aec..9c4b82b1a71717522df53841a5a50eb77a80485f 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 00b3340b8bb6d861c8d0fabbc3cd1cdda4fd8bdf..a499bb638a23f56e8b60a20c27f627aced151324 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"
         }