From: Mira Limbeck Date: Thu, 30 Apr 2020 10:26:41 +0000 (+0200) Subject: fix #2686: don't add arp-ip-src filter for dhcp X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=c5a10084b3661fc4410fb97210e2f156bf0890e3 fix #2686: don't add arp-ip-src filter for dhcp When the IPFilter setting is enabled and the container has DHCP configured on an interface no 'arp-ip-src' filter should be added as we don't have an IP address. Previously '--arp-ip-src dhcp' was passed to ebtables which led to an error. Signed-off-by: Mira Limbeck --- diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index d22b15a..250a642 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -3904,7 +3904,9 @@ sub compile_ebtables_filter { # ebtables changes this to a .0/MASK network but we just # want the address here, no network - see #2193 $ip =~ s|/(\d+)$||; - push @$arpfilter, $ip; + if ($ip ne 'dhcp') { + push @$arpfilter, $ip; + } } generate_tap_layer2filter($ruleset, $iface, $macaddr, $vmfw_conf, $vmid, $arpfilter); }