summaryrefslogtreecommitdiff
path: root/manifests/policy4.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/policy4.pp')
-rw-r--r--manifests/policy4.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/policy4.pp b/manifests/policy4.pp
new file mode 100644
index 0000000..301d9af
--- /dev/null
+++ b/manifests/policy4.pp
@@ -0,0 +1,22 @@
+# http://www.shorewall.net/manpages/shorewall-policy.html
+define shorewall::policy4(
+ $sourcezone,
+ $destinationzone,
+ $policy,
+ $order,
+ $shloglevel = '-',
+ $limitburst = '-',
+){
+ shorewall::policy{
+ $name:
+ sourcezone => $sourcezone,
+ destinationzone => $destinationzone,
+ policy => $policy,
+ order => $order,
+ shloglevel => $shloglevel,
+ limitburst => $limitburst,
+ shorewall => true,
+ shorewall6 => false,
+ }
+}
+