add cilea
authorMartin Zobel-Helas <zobel@debian.org>
Thu, 12 Aug 2010 20:02:01 +0000 (22:02 +0200)
committerMartin Zobel-Helas <zobel@debian.org>
Thu, 12 Aug 2010 20:02:01 +0000 (22:02 +0200)
manifests/site.pp
modules/ferm/files/conntrack_sip.conf [new file with mode: 0644]
modules/ferm/manifests/per-host.pp

index fa9bcd1..c43378f 100644 (file)
@@ -87,7 +87,7 @@ node default {
     }
 
     case $hostname {
-        cilea,paganini: {}
+        paganini: {}
         default: {
              case $kernel {
                  Linux: {
diff --git a/modules/ferm/files/conntrack_sip.conf b/modules/ferm/files/conntrack_sip.conf
new file mode 100644 (file)
index 0000000..f93ce2c
--- /dev/null
@@ -0,0 +1,2 @@
+hook pre 'modprobe nf_conntrack_sip || true';
+hook pre 'modprobe nf_conntrack_h323 || true';
index d515e37..890de74 100644 (file)
@@ -108,6 +108,24 @@ class ferm::per-host {
                     rule            => "&SERVICE(tcp, 636)"
            }
         }
+       cilea: {
+            file {
+                "/etc/ferm/conf.d/load_sip_conntrack.conf":
+                    source => "puppet:///ferm/conntrack_sip.conf",
+                    require => Package["ferm"],
+                    notify  => Exec["ferm restart"];
+            },
+            @ferm::rule { "dsa-sip":
+                    domain          => "(ip ip6)",
+                    description     => "Allow sip access",
+                    rule            => "&TCP_UDP_SERVICE(5060)"
+            }
+            @ferm::rule { "dsa-sipx":
+                    domain          => "(ip ip6)",
+                    description     => "Allow sipx access",
+                    rule            => "&TCP_UDP_SERVICE(5080)"
+            }
+        }
     }