diff --git a/control/control_plane_core.go b/control/control_plane_core.go index ab84170c4..6be9ad80f 100644 --- a/control/control_plane_core.go +++ b/control/control_plane_core.go @@ -247,6 +247,7 @@ func (c *controlPlaneCore) bindLan(ifname string, autoConfigKernelParameter bool if autoConfigKernelParameter { SetSendRedirects(ifname, "0") SetForwarding(ifname, "1") + setForwarding("all", consts.IpVersionStr_6, "1") } if err := c._bindLan(ifname); err != nil { var notFoundErr netlink.LinkNotFoundError diff --git a/docs/en/user-guide/kernel-parameters.md b/docs/en/user-guide/kernel-parameters.md index 8c3b44442..353bc31a5 100644 --- a/docs/en/user-guide/kernel-parameters.md +++ b/docs/en/user-guide/kernel-parameters.md @@ -18,10 +18,11 @@ EOF sudo sysctl --system ``` -It is also recommended to enable IPv4 forward to avoid weird situations: +It is also recommended to enable IPv4 and IPv6 forward to avoid weird situations: ```shell echo "net.ipv4.ip_forward = 1" | sudo tee /etc/sysctl.d/60-ip-forward.conf +echo "net.ipv6.conf.all.forwarding = 1" | sudo tee /etc/sysctl.d/60-ip-forward.conf sudo sysctl --system ```