summaryrefslogtreecommitdiff
path: root/manifests/rule4.pp
blob: 08df395dc4816b973e8ff05782f2a35ba67913c3 (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/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,
  }
}