]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Routing imaps to mail vserver
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 8 Aug 2010 18:17:12 +0000 (15:17 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 8 Aug 2010 18:17:12 +0000 (15:17 -0300)
manifests/vserver.pp

index 1ad98b9dc30cc5d9a347fa220dcc628662d89d1b..c50fa470952d5cf2bb35af385964cbcc339481a3 100644 (file)
@@ -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',
+          }
         }
       }
     }