aboutsummaryrefslogtreecommitdiff
path: root/manifests/rule.pp
blob: 449ccf136bda537955bfa2e7cd900e57672019c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# mark is new in 3.4.4
define shorewall::rule(
    $ensure = present,
    $action,
    $source,
    $destination,
    $proto = '-',
    $destinationport = '-',
    $sourceport = '-',
    $originaldest = '-',
    $ratelimit = '-',
    $user = '-',
    $mark = '',
    $order = '100'
){
  shorewall::entry{"rules-${order}-${name}":
    ensure => $ensure,
    line => "# ${name}\n${action} ${source} ${destination} ${proto} ${destinationport} ${sourceport} ${originaldest} ${ratelimit} ${user} ${mark}",
  }
}