]> gitweb.fluxo.info Git - puppet-shorewall.git/commitdiff
differentiate between general jabberserver and openfire
authorMarcel Haerry <haerry@puzzle.ch>
Thu, 4 Aug 2011 09:27:58 +0000 (11:27 +0200)
committerMarcel Haerry <haerry@puzzle.ch>
Thu, 4 Aug 2011 09:27:58 +0000 (11:27 +0200)
manifests/rules/jabberserver.pp
manifests/rules/openfire.pp [new file with mode: 0644]

index 2017aea61ef66b9bc86d9bbdfaca473dc3ffc51f..3b38b294d176667cff21c11569da6879314f69f6 100644 (file)
@@ -4,7 +4,7 @@ class shorewall::rules::jabberserver {
             source          => 'net',
             destination     => '$FW',
             proto           => 'tcp',
-            destinationport => '5222,5223,5269,7777',
+            destinationport => '5222,5223,5269',
             order           => 240,
             action          => 'ACCEPT';
     'me-net-tcp_jabber_s2s':
diff --git a/manifests/rules/openfire.pp b/manifests/rules/openfire.pp
new file mode 100644 (file)
index 0000000..0e6d1d8
--- /dev/null
@@ -0,0 +1,12 @@
+class shorewall::rules::openfire {
+  include shorewall::rules::jaberserver
+
+  shorewall::rule { 'me-all-openfire-tcp':
+    source          => '$FW',
+    destination     => 'all',
+    proto           => 'tcp',
+    destinationport => '7070,7443,7777',
+    order           => 240,
+    action          => 'ACCEPT';
+  }
+}