lxc: don't allow named listening IPv6 address on lxcbrX network interface
PATCH 1/1 lxc: don't allow named listening IPv6 address on lxcbrX network interface
From: Xiangyu Chen <[email protected]>
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.
LXC upstream changed the default v6 address again[2], we need to line up with upstream. Updated the lxc-net default v6 address to named.conf.option to tell named don't bind and listen that address.
Ref:
[1] https://github.com/lxc/lxc/commit/e8888344
[2] https://github.com/lxc/lxc/commit/31012d49
--- recipes-core/bind/bind_virtualization.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/bind/bind_virtualization.inc +1 -1
@@ -1,4 +1,4 @@ # Tell named not to bother listening on the IP address that lxc and libvirtd handles itself. do_install:append() { - 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 + 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 { ! fc42:5009:ba4b:5ab0::1; any;};\n,' ${D}${sysconfdir}/bind/named.conf.options }
Signature · 1 line
2.34.1
merged.
Bruce
In message: [meta-virtualization][PATCH] lxc: don't allow named listening IPv6 address on lxcbrX network interface
Quoted 43 lines · on 06/06/2025 Xiangyu Chen via lists.yoctoproject.org wrote:
From: Xiangyu Chen <[email protected]>
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.
LXC upstream changed the default v6 address again[2], we need to line up with upstream. Updated the lxc-net default v6 address to named.conf.option to tell named don't bind and listen that address.
Ref:
[1] https://github.com/lxc/lxc/commit/e8888344
[2] https://github.com/lxc/lxc/commit/31012d49Signed-off-by Xiangyu Chen <[email protected]>--- recipes-core/bind/bind_virtualization.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)recipes-core/bind/bind_virtualization.inc +1
-1@@ -1,4 +1,4 @@ # Tell named not to bother listening on the IP address that lxc and libvirtd handles itself. do_install:append() { - 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 + 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 { ! fc42:5009:ba4b:5ab0::1; any;};\n,' ${D}${sysconfdir}/bind/named.conf.options }Signature · 11 lines
2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9273): https://lists.yoctoproject.org/g/meta-virtualization/message/9273 Mute This Topic: https://lists.yoctoproject.org/mt/113498088/1050810 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-