diff options
| author | Xiangyu Chen <xiangyu.chen@windriver.com> | 2024-10-28 15:38:46 +0800 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-11-02 00:02:12 -0400 |
| commit | bfcd056321820e2bf4e12122e2c334421cb8b33a (patch) | |
| tree | 4165c698decd0521ca604f7190100e0a14e86fcf | |
| parent | d5bda44c064d56db98f203f6285bf3b6b9016870 (diff) | |
| download | meta-virtualization-bfcd056321820e2bf4e12122e2c334421cb8b33a.tar.gz | |
lxc: don't allow named listening IPv6 address on lxcbrX network interface
lxc-net enabled the IPv6 by default since v6.0.0[1], when named enabled on
system, the lxc-net which based on dnsmasq would fail to bind the IPv6
address on lxcbrX interface, that cause lxc cannot work correctly.
Add the lxc-net default v6 address to named.conf.option to tell named don't
bind and listen that address.
[1] https://github.com/lxc/lxc/commit/e8888344
Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | recipes-core/bind/bind_virtualization.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-core/bind/bind_virtualization.inc b/recipes-core/bind/bind_virtualization.inc index a6e39049..f942d7ad 100644 --- a/recipes-core/bind/bind_virtualization.inc +++ b/recipes-core/bind/bind_virtualization.inc | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # Tell named not to bother listening on the IP address that lxc and libvirtd handles itself. | 1 | # Tell named not to bother listening on the IP address that lxc and libvirtd handles itself. |
| 2 | do_install:append() { | 2 | do_install:append() { |
| 3 | sed -i -e 's,^\( *options *{\)$,\1\n\t// lxc and libvirtd would take care of this address itself\n\tlisten-on { ! 10.0.3.1; ! 192.168.122.1; any;};\n,' ${D}${sysconfdir}/bind/named.conf.options | 3 | sed -i -e 's,^\( *options *{\)$,\1\n\t// lxc and libvirtd would take care of this address itself\n\tlisten-on { ! 10.0.3.1; ! 192.168.122.1; any;};\n\tlisten-on-v6 { ! fc11:4514:1919:810::1; any;};\n,' ${D}${sysconfdir}/bind/named.conf.options |
| 4 | } | 4 | } |
