From 8c309caff8aab27e97ad882db4ec907922c85ec8 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Thu, 1 Dec 2011 20:34:36 -0500 Subject: [PATCH] Update of filters to handle multiple IP addresses With fragments borrowed from David Steven's previous submission and some further modifications: A set of modifications to filters to handle multiple IP addresses (and MAC addresses) per interface. Also: - enable DHCP traffic from VM to any DHCP server - will require an update to a libvirt-tck data file Signed-off-by: David L Stevens Signed-off-by: Stefan Berger --- examples/xml/nwfilter/Makefile.am | 2 + examples/xml/nwfilter/clean-traffic.xml | 12 +++++- examples/xml/nwfilter/no-arp-ip-spoofing.xml | 9 +++++ examples/xml/nwfilter/no-arp-mac-spoofing.xml | 7 ++++ examples/xml/nwfilter/no-arp-spoofing.xml | 38 ++----------------- examples/xml/nwfilter/no-ip-spoofing.xml | 17 ++++++--- examples/xml/nwfilter/no-mac-spoofing.xml | 11 ++++-- 7 files changed, 52 insertions(+), 44 deletions(-) create mode 100644 examples/xml/nwfilter/no-arp-ip-spoofing.xml create mode 100644 examples/xml/nwfilter/no-arp-mac-spoofing.xml diff --git a/examples/xml/nwfilter/Makefile.am b/examples/xml/nwfilter/Makefile.am index 23fd753a0b..12a36198cb 100644 --- a/examples/xml/nwfilter/Makefile.am +++ b/examples/xml/nwfilter/Makefile.am @@ -9,6 +9,8 @@ FILTERS = \ allow-ipv4.xml \ clean-traffic.xml \ no-arp-spoofing.xml \ + no-arp-ip-spoofing.xml \ + no-arp-mac-spoofing.xml \ no-ip-multicast.xml \ no-ip-spoofing.xml \ no-mac-broadcast.xml \ diff --git a/examples/xml/nwfilter/clean-traffic.xml b/examples/xml/nwfilter/clean-traffic.xml index 40f0ecbfa5..b8cde9c560 100644 --- a/examples/xml/nwfilter/clean-traffic.xml +++ b/examples/xml/nwfilter/clean-traffic.xml @@ -1,4 +1,4 @@ - + @@ -6,11 +6,21 @@ + + + + + + + + + + diff --git a/examples/xml/nwfilter/no-arp-ip-spoofing.xml b/examples/xml/nwfilter/no-arp-ip-spoofing.xml new file mode 100644 index 0000000000..7365298f31 --- /dev/null +++ b/examples/xml/nwfilter/no-arp-ip-spoofing.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/examples/xml/nwfilter/no-arp-mac-spoofing.xml b/examples/xml/nwfilter/no-arp-mac-spoofing.xml new file mode 100644 index 0000000000..71482bb5e0 --- /dev/null +++ b/examples/xml/nwfilter/no-arp-mac-spoofing.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/examples/xml/nwfilter/no-arp-spoofing.xml b/examples/xml/nwfilter/no-arp-spoofing.xml index 96c58c153b..23f2d3cd14 100644 --- a/examples/xml/nwfilter/no-arp-spoofing.xml +++ b/examples/xml/nwfilter/no-arp-spoofing.xml @@ -1,36 +1,4 @@ - - f88f1932-debf-4aa1-9fbe-f10d3aa4bc95 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + diff --git a/examples/xml/nwfilter/no-ip-spoofing.xml b/examples/xml/nwfilter/no-ip-spoofing.xml index b8c94c82e4..cbed03083d 100644 --- a/examples/xml/nwfilter/no-ip-spoofing.xml +++ b/examples/xml/nwfilter/no-ip-spoofing.xml @@ -1,7 +1,14 @@ - + + + + + - - - - + + + + + + + diff --git a/examples/xml/nwfilter/no-mac-spoofing.xml b/examples/xml/nwfilter/no-mac-spoofing.xml index f210623271..2d0468fff3 100644 --- a/examples/xml/nwfilter/no-mac-spoofing.xml +++ b/examples/xml/nwfilter/no-mac-spoofing.xml @@ -1,5 +1,10 @@ - - - + + + + + + + + -- GitLab