aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2011-08-04 11:27:58 +0200
committerMarcel Haerry <haerry@puzzle.ch>2011-08-04 11:27:58 +0200
commit777f77d360b3ba97f2b35f04bf81fe894196c76d (patch)
treecb21bf2193c7eb56211c7a594481646541d09546
parenta30525348f6b3a7a36f0bbe7eec387b22d32634f (diff)
downloadpuppet-shorewall-777f77d360b3ba97f2b35f04bf81fe894196c76d.tar.gz
puppet-shorewall-777f77d360b3ba97f2b35f04bf81fe894196c76d.tar.bz2
differentiate between general jabberserver and openfire
-rw-r--r--manifests/rules/jabberserver.pp2
-rw-r--r--manifests/rules/openfire.pp12
2 files changed, 13 insertions, 1 deletions
diff --git a/manifests/rules/jabberserver.pp b/manifests/rules/jabberserver.pp
index 2017aea..3b38b29 100644
--- a/manifests/rules/jabberserver.pp
+++ b/manifests/rules/jabberserver.pp
@@ -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
index 0000000..0e6d1d8
--- /dev/null
+++ b/manifests/rules/openfire.pp
@@ -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';
+ }
+}