summaryrefslogtreecommitdiff
path: root/manifests/rule6.pp
blob: 77a945f4307ed15ad9541a0f25adce389b553358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# http://www.shorewall.net/manpages6/shorewall6-rules.html
define shorewall::rule6(
  $action,
  $source,
  $destination,
  $proto           = '-',
  $destinationport = '-',
  $sourceport      = '-',
  $originaldest    = '-',
  $ratelimit       = '-',
  $user            = '-',
  $mark            = '-',
  $connlimit       = '-',
  $time            = '-',
  $headers         = '-',
  $switch          = '-',
  $helper          = '-',
  $order           = '500',
  $ensure          = 'present',
){
  shorewall::rule{
    "${name}_IP6":
      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       => false,
      shorewall6      => true,
  }
}