From d074d3f29292d785f3fc3dd1df8ff925da27b196 Mon Sep 17 00:00:00 2001 From: Tom Frenzel <40773830+tomfrenzel@users.noreply.github.com> Date: Sun, 31 May 2026 14:10:55 +0200 Subject: [PATCH] fix(openthread-br): use correct ipv6 configuration (#14829) --- ct/openthread-br.sh | 21 +++++++++++++++++++++ install/openthread-br-install.sh | 11 +++++++++++ 2 files changed, 32 insertions(+) diff --git a/ct/openthread-br.sh b/ct/openthread-br.sh index 662f9837b..c0156183c 100644 --- a/ct/openthread-br.sh +++ b/ct/openthread-br.sh @@ -70,6 +70,27 @@ function update_script() { $STD ninja install msg_ok "Rebuilt OpenThread Border Router" + if ! grep -q "net.ipv6.conf.all.accept_ra=2" /etc/sysctl.d/99-otbr.conf; then + msg_info "Configuring Network" + cat </etc/sysctl.d/99-otbr.conf +net.ipv6.conf.all.forwarding=1 +net.ipv6.conf.all.accept_ra=2 +net.ipv6.conf.all.accept_ra_rtr_pref=1 +net.ipv6.conf.all.accept_ra_rt_info_max_plen=64 +net.ipv6.conf.default.forwarding=1 +net.ipv6.conf.default.accept_ra=2 +net.ipv6.conf.default.accept_ra_rtr_pref=1 +net.ipv6.conf.default.accept_ra_rt_info_max_plen=64 +net.ipv6.conf.eth0.forwarding=1 +net.ipv6.conf.eth0.accept_ra=2 +net.ipv6.conf.eth0.accept_ra_rtr_pref=1 +net.ipv6.conf.eth0.accept_ra_rt_info_max_plen=64 +net.ipv4.ip_forward=1 +EOF + $STD sysctl -p /etc/sysctl.d/99-otbr.conf + msg_ok "Configured Network" + fi + msg_info "Starting Services" systemctl start otbr-agent systemctl start otbr-web diff --git a/install/openthread-br-install.sh b/install/openthread-br-install.sh index 82c3fea45..779bb3951 100644 --- a/install/openthread-br-install.sh +++ b/install/openthread-br-install.sh @@ -67,6 +67,17 @@ msg_ok "Built OpenThread Border Router" msg_info "Configuring Network" cat </etc/sysctl.d/99-otbr.conf net.ipv6.conf.all.forwarding=1 +net.ipv6.conf.all.accept_ra=2 +net.ipv6.conf.all.accept_ra_rtr_pref=1 +net.ipv6.conf.all.accept_ra_rt_info_max_plen=64 +net.ipv6.conf.default.forwarding=1 +net.ipv6.conf.default.accept_ra=2 +net.ipv6.conf.default.accept_ra_rtr_pref=1 +net.ipv6.conf.default.accept_ra_rt_info_max_plen=64 +net.ipv6.conf.eth0.forwarding=1 +net.ipv6.conf.eth0.accept_ra=2 +net.ipv6.conf.eth0.accept_ra_rtr_pref=1 +net.ipv6.conf.eth0.accept_ra_rt_info_max_plen=64 net.ipv4.ip_forward=1 EOF $STD sysctl -p /etc/sysctl.d/99-otbr.conf