aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorduritong <duritong@immerda.ch>2009-10-02 13:18:38 +0200
committerMicah Anderson <micah@riseup.net>2009-12-07 11:34:20 -0500
commit28f6a27507139db939a0204e36f0f27569a2f117 (patch)
tree1bb813fcf0e5877253c1b7df7fac675b8d7e88c7
parent3143f371c7e912bf0ce228a22688fc8e6485f3e2 (diff)
downloadpuppet-shorewall-28f6a27507139db939a0204e36f0f27569a2f117.tar.gz
puppet-shorewall-28f6a27507139db939a0204e36f0f27569a2f117.tar.bz2
add smtps rules
-rw-r--r--manifests/rules/smtps.pp10
-rw-r--r--manifests/rules/smtps/disable.pp5
2 files changed, 15 insertions, 0 deletions
diff --git a/manifests/rules/smtps.pp b/manifests/rules/smtps.pp
new file mode 100644
index 0000000..48183f7
--- /dev/null
+++ b/manifests/rules/smtps.pp
@@ -0,0 +1,10 @@
+class shorewall::rules::smtps {
+ shorewall::rule {'net-me-smtps-tcp':
+ source => 'net',
+ destination => '$FW',
+ proto => 'tcp',
+ destinationport => '465',
+ order => 240,
+ action => 'ACCEPT';
+ }
+}
diff --git a/manifests/rules/smtps/disable.pp b/manifests/rules/smtps/disable.pp
new file mode 100644
index 0000000..24bd21f
--- /dev/null
+++ b/manifests/rules/smtps/disable.pp
@@ -0,0 +1,5 @@
+class shorewall::rules::smtps::disable inherits shorewall::rules::smtps {
+ Shorewall::Rule['net-me-smtps-tcp']{
+ action => 'DROP',
+ }
+}