Commit 40d8f49f authored by Micah's avatar Micah

Merge branch 'feature/mangle-support-multiple-rules-with-same-action' into 'master'

Feature/mangle support multiple rules with same action

This allows one to support multiple networks in libvirt.

See merge request !4
parents d3b5fedd 99a1b07b
define shorewall::mangle(
$source,
$destination,
$action = $name,
$proto = '-',
$destinationport = '-',
$sourceport = '-',
......@@ -14,6 +15,6 @@ define shorewall::mangle(
$order = '100'
){
shorewall::entry{"mangle-${order}-${name}":
line => "${name} ${source} ${destination} ${proto} ${destinationport} ${sourceport} ${user} ${test} ${length} ${tos} ${connbytes} ${helper} ${headers}"
line => "${action} ${source} ${destination} ${proto} ${destinationport} ${sourceport} ${user} ${test} ${length} ${tos} ${connbytes} ${helper} ${headers}"
}
}
......@@ -52,7 +52,8 @@ class shorewall::rules::libvirt::host (
}
if $accept_dhcp {
shorewall::mangle { 'CHECKSUM:T':
shorewall::mangle { "CHECKSUM:T_${vmz_iface}":
action => 'CHECKSUM:T',
source => '-',
destination => $vmz_iface,
proto => 'udp',
......
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