From cdc97730cd1b2d2a4711fc65fa291cf55d72da0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 12 Sep 2016 06:05:42 +0200 Subject: [PATCH] qubes/firewall: apply only IPv4 rules Currently dom0 do not assign IPv6 addresses for VMs, so there is no sense in IPv6 firewall yet. QubesOS/qubes-issues#1815 --- qubes/vm/mix/net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/vm/mix/net.py b/qubes/vm/mix/net.py index c6969c45..83f3e7f6 100644 --- a/qubes/vm/mix/net.py +++ b/qubes/vm/mix/net.py @@ -269,7 +269,7 @@ class NetVMMixin(qubes.events.Emitter): # would trigger reload right away self.qdb.rm(base_dir) # write new rules - for key, value in vm.firewall.qdb_entries().items(): + for key, value in vm.firewall.qdb_entries(addr_family=4).items(): self.qdb.write(base_dir + key, value) # signal its done self.qdb.write(base_dir[:-1], '')