]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: allow guest to guest IPv6 without gateway definition
authorGene Czarcinski <gene@czarc.net>
Mon, 3 Dec 2012 16:13:36 +0000 (11:13 -0500)
committerLaine Stump <laine@laine.org>
Wed, 5 Dec 2012 19:58:32 +0000 (14:58 -0500)
commit705e67d40b09a905cd6a4b8b418d5cb94eaa95a8
treefdbd89fbea567b39e4f8dde36ba3732a0ca26c9b
parentd1f3d14974b4213193130d4b01d4449ad1533cbb
network: allow guest to guest IPv6 without gateway definition

This patch adds the capability for virtual guests to do IPv6
communication via a virtual network interface with no IPv6 (gateway)
addresses specified.  This capability has always been enabled by
default for IPv4, but disabled for IPv6 for security concerns, and
because it requires the ip6tables command to be operational (which
isn't the case on a system with the ipv6 module completely disabled).

This patch adds a new attribute "ipv6" at the toplevel of a <network>
object.  If ipv6='yes', the extra ip6tables rules required to permite
inter-guest communications are added when the network is started. If
it is 'no', or not present, those rules will not be added; thus the
default behavior doesn't change, so there should be no compatibility
issues with any existing installations.

Note that virtual guests cannot communication with the virtualization
host via this interface, because the following kernel tunable has
been set:

   net.ipv6.conf.<bridge_interface_name>.disable_ipv6 = 1

This assures that the bridge interface will not have an IPv6
link-local (fe80::) address.

To control this behavior so that it is not enabled by default, the parameter
ipv6='yes' on the <network> statement has been added.

Documentation related to this patch has been updated.
The network schema has also been updated.
docs/formatnetwork.html.in
docs/schemas/network.rng
src/conf/network_conf.c
src/conf/network_conf.h
src/network/bridge_driver.c
tests/networkxml2xmlin/empty-allow-ipv6.xml [new file with mode: 0644]
tests/networkxml2xmlin/isolated-network.xml
tests/networkxml2xmlout/empty-allow-ipv6.xml [new file with mode: 0644]
tests/networkxml2xmltest.c