summaryrefslogtreecommitdiff
path: root/manifests/policy6.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2017-04-25 17:12:59 +0200
committermh <mh@immerda.ch>2017-04-25 17:12:59 +0200
commit1bcdc4ad9340b1468e4bb14e0b7f1ea8bea73c7f (patch)
tree8a2a475df4f85aeabd6788c04db76af8a228f654 /manifests/policy6.pp
parentc2bf7e71d8598dbb05b5dee9f452b6332e9e916e (diff)
manage policies for shorewall6
Diffstat (limited to 'manifests/policy6.pp')
-rw-r--r--manifests/policy6.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/policy6.pp b/manifests/policy6.pp
new file mode 100644
index 0000000..1a4735f
--- /dev/null
+++ b/manifests/policy6.pp
@@ -0,0 +1,22 @@
+# http://www.shorewall.net/manpages6/shorewall6-policy.html
+define shorewall::policy6(
+ $sourcezone,
+ $destinationzone,
+ $policy,
+ $order,
+ $shloglevel = '-',
+ $limitburst = '-',
+){
+ shorewall::policy{
+ $name:
+ sourcezone => $sourcezone,
+ destinationzone => $destinationzone,
+ policy => $policy,
+ order => $order,
+ shloglevel => $shloglevel,
+ limitburst => $limitburst,
+ shorewall => false,
+ shorewall6 => true,
+ }
+}
+