diff options
author | Micah Anderson <micah@riseup.net> | 2015-05-19 11:35:18 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2015-05-19 11:35:18 -0400 |
commit | 492e3c0c48461c6f4e58bdaa407a04c9aa4fb8b4 (patch) | |
tree | 7727924af0364703a8b1bc5adcd31a9509dbd559 /manifests/rules/libvirt | |
parent | 3749a297cd979dc234194d1887e3b46a789b3b1a (diff) | |
parent | 74ea10a6a1d4f4c1624d85d3d3795eaf819df10c (diff) |
Merge remote-tracking branch 'origin/master' into leap
Diffstat (limited to 'manifests/rules/libvirt')
-rw-r--r-- | manifests/rules/libvirt/host.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/rules/libvirt/host.pp b/manifests/rules/libvirt/host.pp index dfb753c..c226865 100644 --- a/manifests/rules/libvirt/host.pp +++ b/manifests/rules/libvirt/host.pp @@ -2,6 +2,8 @@ class shorewall::rules::libvirt::host ( $vmz = 'vmz', $masq_iface = 'eth0', $debproxy_port = 8000, + $accept_dhcp = true, + $vmz_iface = 'virbr0', ) { define shorewall::rule::accept::from_vmz ( @@ -49,6 +51,15 @@ class shorewall::rules::libvirt::host ( action => 'ACCEPT'; } + if $accept_dhcp { + shorewall::mangle { 'CHECKSUM:T': + source => '-', + destination => $vmz_iface, + proto => 'udp', + destinationport => '68'; + } + } + if $debproxy_port { shorewall::rule::accept::from_vmz { 'accept_debproxy_from_vmz': proto => 'tcp', |