aboutsummaryrefslogtreecommitdiff
path: root/manifests/rules/out
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-09-28 15:16:21 +0200
committermh <mh@immerda.ch>2015-12-05 11:34:54 +0100
commit589f32d74a791138277583ed57c05e581a073c58 (patch)
tree3bfc6050e77514e72883e09fb562f370d42c6bf1 /manifests/rules/out
parentb962d72a0b3004805c333e2417018bde487ed956 (diff)
downloadpuppet-shorewall-589f32d74a791138277583ed57c05e581a073c58.tar.gz
puppet-shorewall-589f32d74a791138277583ed57c05e581a073c58.tar.bz2
manage new and legacy ports of managesieve
Diffstat (limited to 'manifests/rules/out')
-rw-r--r--manifests/rules/out/managesieve.pp30
1 files changed, 22 insertions, 8 deletions
diff --git a/manifests/rules/out/managesieve.pp b/manifests/rules/out/managesieve.pp
index b0e1c3d..c4147d4 100644
--- a/manifests/rules/out/managesieve.pp
+++ b/manifests/rules/out/managesieve.pp
@@ -1,11 +1,25 @@
-class shorewall::rules::out::managesieve {
+# manage outgoing traffic to managesieve
+class shorewall::rules::out::managesieve(
+ $legacy_port = false
+) {
+ shorewall::rule {
+ 'me-net-tcp_managesieve':
+ source => '$FW',
+ destination => 'net',
+ proto => 'tcp',
+ destinationport => '4190',
+ order => 260,
+ action => 'ACCEPT';
+ }
+ if $legacy_port {
shorewall::rule {
- 'me-net-tcp_managesieve':
- source => '$FW',
- destination => 'net',
- proto => 'tcp',
- destinationport => '2000',
- order => 260,
- action => 'ACCEPT';
+ 'me-net-tcp_managesieve_legacy':
+ source => '$FW',
+ destination => 'net',
+ proto => 'tcp',
+ destinationport => '2000',
+ order => 260,
+ action => 'ACCEPT';
}
+ }
}