diff options
Diffstat (limited to 'manifests/rule.pp')
-rw-r--r-- | manifests/rule.pp | 18 |
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}", + } +} |