From 59cc1909a91afbf1f3d9296b8c33433f3340cec1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 8 Aug 2010 15:17:12 -0300 Subject: Routing imaps to mail vserver --- manifests/vserver.pp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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', + } } } } -- cgit v1.2.3