mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-15 15:22:30 +02:00
fix(openthread-br): use correct ipv6 configuration (#14829)
This commit is contained in:
@@ -70,6 +70,27 @@ function update_script() {
|
|||||||
$STD ninja install
|
$STD ninja install
|
||||||
msg_ok "Rebuilt OpenThread Border Router"
|
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 <<EOF >/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"
|
msg_info "Starting Services"
|
||||||
systemctl start otbr-agent
|
systemctl start otbr-agent
|
||||||
systemctl start otbr-web
|
systemctl start otbr-web
|
||||||
|
|||||||
@@ -67,6 +67,17 @@ msg_ok "Built OpenThread Border Router"
|
|||||||
msg_info "Configuring Network"
|
msg_info "Configuring Network"
|
||||||
cat <<EOF >/etc/sysctl.d/99-otbr.conf
|
cat <<EOF >/etc/sysctl.d/99-otbr.conf
|
||||||
net.ipv6.conf.all.forwarding=1
|
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
|
net.ipv4.ip_forward=1
|
||||||
EOF
|
EOF
|
||||||
$STD sysctl -p /etc/sysctl.d/99-otbr.conf
|
$STD sysctl -p /etc/sysctl.d/99-otbr.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user