diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-08-08 15:17:12 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-08-08 15:17:12 -0300 |
commit | 59cc1909a91afbf1f3d9296b8c33433f3340cec1 (patch) | |
tree | dedc8352222328227cee3ec9505f7903b9c83191 | |
parent | df458665335f9d676bbff57956410c86f492fba5 (diff) | |
download | puppet-nodo-59cc1909a91afbf1f3d9296b8c33433f3340cec1.tar.gz puppet-nodo-59cc1909a91afbf1f3d9296b8c33433f3340cec1.tar.bz2 |
Routing imaps to mail vserver
-rw-r--r-- | manifests/vserver.pp | 21 |
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', + } } } } |