summaryrefslogtreecommitdiff
path: root/manifests/rule.pp
blob: b80c584f86a136aa8b1a4005823fa7327e3e799e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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-${order}-${name}":
    line => "# ${name}\n${action} ${source} ${destination} ${proto} ${destinationport} ${sourceport} ${originaldest} ${ratelimit} ${user} ${mark}",
  }
}