summaryrefslogtreecommitdiff
path: root/manifests/policy.pp
blob: 892a3d390c0062415c17065eb1369baaf2dea3b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# http://www.shorewall.net/manpages/shorewall-policy.html
# http://www.shorewall.net/manpages6/shorewall6-policy.html
define shorewall::policy(
  $sourcezone,
  $destinationzone,
  $policy,
  $order,
  $shloglevel = '-',
  $limitburst = '-',
  $shorewall  = true,
  $shorewall6 = true,
){
  $with_shorewall6 = $shorewall6 and $shorewall::with_shorewall6
  shorewall::entry{"policy-${order}-${name}":
    line       => "# ${name}\n${sourcezone} ${destinationzone} ${policy} ${shloglevel} ${limitburst}",
    shorewall  => $shorewall,
    shorewall6 => $with_shorewall6,
  }
}