From ed7813d28d45c8bf591d1567a8c7ea678b627958 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Tue, 27 Apr 2010 14:50:35 -0400 Subject: [PATCH] nwfilter: let qemu's after-migration packet pass Qemu currently sends an Ethernet packet with protocol id 0x835 once a VM was successfully migrated. The content of the packet looks like a gratuitous RARP, just with the wrong protocol ID, which should be 0x8035. I wrote some filters to let either one of the packets pass and am adapting the clean-traffic sample filter to use it. I am also doing some changes on the existing ARP filter which was lacking a test for source MAC address. --- examples/xml/nwfilter/Makefile.am | 5 ++++- examples/xml/nwfilter/clean-traffic.xml | 3 +++ examples/xml/nwfilter/no-arp-spoofing.xml | 13 ++++++++----- examples/xml/nwfilter/no-other-rarp-traffic.xml | 3 +++ examples/xml/nwfilter/qemu-announce-self-rarp.xml | 14 ++++++++++++++ examples/xml/nwfilter/qemu-announce-self.xml | 13 +++++++++++++ 6 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 examples/xml/nwfilter/no-other-rarp-traffic.xml create mode 100644 examples/xml/nwfilter/qemu-announce-self-rarp.xml create mode 100644 examples/xml/nwfilter/qemu-announce-self.xml diff --git a/examples/xml/nwfilter/Makefile.am b/examples/xml/nwfilter/Makefile.am index 54a7aae651..439e7b885b 100644 --- a/examples/xml/nwfilter/Makefile.am +++ b/examples/xml/nwfilter/Makefile.am @@ -11,7 +11,10 @@ FILTERS = \ no-ip-spoofing.xml \ no-mac-broadcast.xml \ no-mac-spoofing.xml \ - no-other-l2-traffic.xml + no-other-l2-traffic.xml \ + no-other-rarp-traffic.xml \ + qemu-announce-self.xml \ + qemu-announce-self-rarp.xml EXTRA_DIST=$(FILTERS) diff --git a/examples/xml/nwfilter/clean-traffic.xml b/examples/xml/nwfilter/clean-traffic.xml index 2cc7df983e..40f0ecbfa5 100644 --- a/examples/xml/nwfilter/clean-traffic.xml +++ b/examples/xml/nwfilter/clean-traffic.xml @@ -14,4 +14,7 @@ + + + diff --git a/examples/xml/nwfilter/no-arp-spoofing.xml b/examples/xml/nwfilter/no-arp-spoofing.xml index b49e781be4..c6c858dad0 100644 --- a/examples/xml/nwfilter/no-arp-spoofing.xml +++ b/examples/xml/nwfilter/no-arp-spoofing.xml @@ -1,27 +1,30 @@ f88f1932-debf-4aa1-9fbe-f10d3aa4bc95 + + + - + - + - + - + - + diff --git a/examples/xml/nwfilter/no-other-rarp-traffic.xml b/examples/xml/nwfilter/no-other-rarp-traffic.xml new file mode 100644 index 0000000000..7729996ece --- /dev/null +++ b/examples/xml/nwfilter/no-other-rarp-traffic.xml @@ -0,0 +1,3 @@ + + + diff --git a/examples/xml/nwfilter/qemu-announce-self-rarp.xml b/examples/xml/nwfilter/qemu-announce-self-rarp.xml new file mode 100644 index 0000000000..b7a848ad0f --- /dev/null +++ b/examples/xml/nwfilter/qemu-announce-self-rarp.xml @@ -0,0 +1,14 @@ + + + + + + + + diff --git a/examples/xml/nwfilter/qemu-announce-self.xml b/examples/xml/nwfilter/qemu-announce-self.xml new file mode 100644 index 0000000000..352db500de --- /dev/null +++ b/examples/xml/nwfilter/qemu-announce-self.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + -- GitLab