From: Stefan Berger Date: Fri, 2 Dec 2011 01:34:36 +0000 (-0500) Subject: Update of filters to handle multiple IP addresses X-Git-Tag: v0.9.8-rc2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c309caff8aab27e97ad882db4ec907922c85ec8;p=thirdparty%2Flibvirt.git 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 --- 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 @@ - - - + + + + + + + +