aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-12-21 17:50:32 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-12-21 17:50:32 -0200
commitb817cb0d8056964025a9bde4d5b82acb922c87a6 (patch)
tree4d7155e4f292e1766931ff94306252180d9fd30e /manifests/subsystems
parent078f3e9fb1fcc8f5441a493c5634193d98dad0b6 (diff)
downloadpuppet-nodo-b817cb0d8056964025a9bde4d5b82acb922c87a6.tar.gz
puppet-nodo-b817cb0d8056964025a9bde4d5b82acb922c87a6.tar.bz2
Adding smtps rules at firewall::router::mail
Diffstat (limited to 'manifests/subsystems')
-rw-r--r--manifests/subsystems/firewall/router.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/subsystems/firewall/router.pp b/manifests/subsystems/firewall/router.pp
index 3fc15da..29d43a5 100644
--- a/manifests/subsystems/firewall/router.pp
+++ b/manifests/subsystems/firewall/router.pp
@@ -220,6 +220,27 @@ class firewall::router::mail($destination, $zone = 'loc', $originaldest = $ipadd
ratelimit => '-',
order => '1003',
}
+
+ shorewall::rule { 'mail-5':
+ action => 'DNAT',
+ source => 'net',
+ destination => "$zone:$destination:587",
+ proto => 'tcp',
+ destinationport => '587',
+ ratelimit => '-',
+ order => '1004',
+ }
+
+ shorewall::rule { 'mail-6':
+ action => 'DNAT',
+ source => '$FW',
+ destination => "$zone:$destination:587",
+ proto => 'tcp',
+ destinationport => '587',
+ originaldest => "$originaldest",
+ ratelimit => '-',
+ order => '1005',
+ }
}
define firewall::router::ssh($destination, $port_orig = '22', $port_dest = '', $zone = 'loc',