diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-12-21 16:51:20 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-12-21 16:51:20 -0200 |
commit | 115564ff9f1c903a4b344d45e8ab681a71b2a1e0 (patch) | |
tree | 227e3a370c3a6e9b3c52e64ff18a44bed2918968 /manifests | |
parent | 22d89459ffa886f1b59d9b96c801d3ac6e9d2422 (diff) | |
download | puppet-nodo-115564ff9f1c903a4b344d45e8ab681a71b2a1e0.tar.gz puppet-nodo-115564ff9f1c903a4b344d45e8ab681a71b2a1e0.tar.bz2 |
Enabling smtps port at firewall::vserver::mail
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/subsystems/firewall/vserver.pp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/subsystems/firewall/vserver.pp b/manifests/subsystems/firewall/vserver.pp index c244e09..4415952 100644 --- a/manifests/subsystems/firewall/vserver.pp +++ b/manifests/subsystems/firewall/vserver.pp @@ -218,6 +218,27 @@ class firewall::vserver::mail($destination, $zone = 'fw') { ratelimit => "$firewall_ssl_ratelimit", order => '1003', } + + shorewall::rule { 'mail-5': + action => 'DNAT', + source => 'net', + destination => "$zone:$destination:587", + proto => 'tcp', + destinationport => '587', + ratelimit => "$firewall_ssl_ratelimit", + order => '1004', + } + + shorewall::rule { 'mail-6': + action => 'DNAT', + source => '$FW', + destination => "$zone:$destination:587", + proto => 'tcp', + destinationport => '587', + originaldest => "$ipaddress", + ratelimit => "$firewall_ssl_ratelimit", + order => '1005', + } } define firewall::vserver::ssh($destination, $port_orig = '22', $port_dest = '', $zone = 'vm') { |