Commit d97171b8 authored by bertagaz's avatar bertagaz

Add support for the mangle table.

parent 06c50587
#LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE
#
# Shorewall - Mangle File
#
# For additional information, see http://shorewall.net/manpages/shorewall-mangle.html
#
#######################################################################################
#ACTION SOURCE DESTINATION PROTO DSTPORT SRCPORT USER TEST LENGTH TOS CONNBYTES HELPER HEADERS
......@@ -68,6 +68,8 @@ class shorewall(
'tunnel',
# See http://www.shorewall.net/MultiISP.html
'rtrules',
# See http://www.shorewall.net/manpages/shorewall-mangle.html
'mangle',
]:;
}
}
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}"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment