summaryrefslogtreecommitdiff
path: root/manifests/rule4.pp
diff options
context:
space:
mode:
authorkwadronaut <kwadronaut@leap.se>2018-11-09 10:03:32 +0100
committerkwadronaut <kwadronaut@leap.se>2018-11-09 10:03:32 +0100
commit74ebf6e34723573a23bf0e758978fb3969e362f8 (patch)
tree6abed2eb699e572c418d25d9969b2f4b083a83c0 /manifests/rule4.pp
parent06e89ed3486916ae12186e46b8ec59c8c7c79142 (diff)
parentcabbf434c1778cb4e8fe2f7f726a012f707cd2a5 (diff)
Merge remote-tracking branch 'shared/master'HEADmaster
Diffstat (limited to 'manifests/rule4.pp')
-rw-r--r--manifests/rule4.pp43
1 files changed, 43 insertions, 0 deletions
diff --git a/manifests/rule4.pp b/manifests/rule4.pp
new file mode 100644
index 0000000..08df395
--- /dev/null
+++ b/manifests/rule4.pp
@@ -0,0 +1,43 @@
+# http://www.shorewall.net/manpages/shorewall-rules.html
+define shorewall::rule4(
+ $action,
+ $source,
+ $destination,
+ $proto = '-',
+ $destinationport = '-',
+ $sourceport = '-',
+ $originaldest = '-',
+ $ratelimit = '-',
+ $user = '-',
+ $mark = '-',
+ $connlimit = '-',
+ $time = '-',
+ $headers = '-',
+ $switch = '-',
+ $helper = '-',
+ $order = '500',
+ $ensure = 'present',
+){
+ shorewall::rule{
+ $name:
+ ensure => $ensure,
+ action => $action,
+ source => $source,
+ destination => $destination,
+ proto => $proto,
+ destinationport => $destinationport,
+ sourceport => $sourceport,
+ originaldest => $originaldest,
+ ratelimit => $ratelimit,
+ user => $user,
+ mark => $mark,
+ connlimit => $connlimit,
+ time => $time,
+ headers => $headers,
+ switch => $switch,
+ helper => $helper,
+ order => $order,
+ shorewall => true,
+ shorewall6 => false,
+ }
+}