summaryrefslogtreecommitdiff
path: root/manifests/rule.pp
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2009-09-16 17:51:56 +0200
committerMicah Anderson <micah@riseup.net>2009-12-07 11:33:26 -0500
commit69ffd72ce9e5217ae7d205e04716c40d8c862315 (patch)
tree36dfb4eb635bd065396b6a4595df217a2d9c1a3b /manifests/rule.pp
parente972b9abde01a6d89579e20fe4b038c7cbfe0c45 (diff)
factored everything out in its own file
Diffstat (limited to 'manifests/rule.pp')
-rw-r--r--manifests/rule.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/rule.pp b/manifests/rule.pp
new file mode 100644
index 0000000..0614e95
--- /dev/null
+++ b/manifests/rule.pp
@@ -0,0 +1,18 @@
+# mark is new in 3.4.4
+define shorewall::rule(
+ $action,
+ $source,
+ $destination,
+ $proto = '-',
+ $destinationport = '-',
+ $sourceport = '-',
+ $originaldest = '-',
+ $ratelimit = '-',
+ $user = '-',
+ $mark = '',
+ $order
+){
+ shorewall::entry{"rules.d/${order}-${name}":
+ line => "# ${name}\n${action} ${source} ${destination} ${proto} ${destinationport} ${sourceport} ${originaldest} ${ratelimit} ${user} ${mark}",
+ }
+}