rule.pp 499 Bytes
Newer Older
1 2
# mark is new in 3.4.4
define shorewall::rule(
mh's avatar
mh committed
3
    $ensure = present,
4 5 6 7 8 9 10 11 12 13 14 15
    $action,
    $source,
    $destination,
    $proto = '-',
    $destinationport = '-',
    $sourceport = '-',
    $originaldest = '-',
    $ratelimit = '-',
    $user = '-',
    $mark = '',
    $order
){
16 17 18 19
  shorewall::entry{"rules-${order}-${name}":
    ensure => $ensure,
    line => "# ${name}\n${action} ${source} ${destination} ${proto} ${destinationport} ${sourceport} ${originaldest} ${ratelimit} ${user} ${mark}",
  }
20
}