summaryrefslogtreecommitdiff
path: root/manifests/mangle.pp
blob: e3fd1b3b40df91107e67e69c0c09d9c4bd4ae969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
define shorewall::mangle(
  $source,
  $destination,
  $proto           = '-',
  $destinationport = '-',
  $sourceport      = '-',
  $user            = '-',
  $test            = '-',
  $length          = '-',
  $tos             = '-',
  $connbytes       = '-',
  $helper          = '-',
  $headers         = '-',
  $order           = '100'
){
  shorewall::entry{"mangle-${order}-${name}":
    line => "${name} ${source} ${destination} ${proto} ${destinationport} ${sourceport} ${user} ${test} ${length} ${tos} ${connbytes} ${helper} ${headers}"
  }
}