aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-08-08 15:17:12 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-08-08 15:17:12 -0300
commit59cc1909a91afbf1f3d9296b8c33433f3340cec1 (patch)
treededc8352222328227cee3ec9505f7903b9c83191
parentdf458665335f9d676bbff57956410c86f492fba5 (diff)
downloadpuppet-nodo-59cc1909a91afbf1f3d9296b8c33433f3340cec1.tar.gz
puppet-nodo-59cc1909a91afbf1f3d9296b8c33433f3340cec1.tar.bz2
Routing imaps to mail vserver
-rw-r--r--manifests/vserver.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp
index 1ad98b9..c50fa47 100644
--- a/manifests/vserver.pp
+++ b/manifests/vserver.pp
@@ -341,6 +341,27 @@ class nodo::vserver inherits nodo {
ratelimit => '-',
order => '1001',
}
+
+ shorewall::rule { 'mail-3':
+ action => 'DNAT',
+ source => 'net',
+ destination => "fw:192.168.0.$context:993",
+ proto => 'tcp',
+ destinationport => '993',
+ ratelimit => '-',
+ order => '1002',
+ }
+
+ shorewall::rule { 'mail-4':
+ action => 'DNAT',
+ source => '$FW',
+ destination => "fw:192.168.0.$context:993",
+ proto => 'tcp',
+ destinationport => '993',
+ originaldest => "$ipaddress",
+ ratelimit => '-',
+ order => '1003',
+ }
}
}
}