From 1183850134f63794ed74f1f76fe663731452bef0 Mon Sep 17 00:00:00 2001 From: Gray Liang Date: Sun, 14 Apr 2024 23:10:12 +0800 Subject: [PATCH 1/3] Set net.ipv6.conf.all.forwarding=1 for lan only --- control/control_plane_core.go | 1 + 1 file changed, 1 insertion(+) 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 From 7c11a86f625bf020147e371670e31904e9f42003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sumire=20=28=E8=8F=AB=29?= <151038614+sumire88@users.noreply.github.com> Date: Sun, 14 Apr 2024 09:11:57 +0800 Subject: [PATCH 2/3] docs(readme): remove unnecessary lines (#500) --- docs/zh/README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/zh/README.md b/docs/zh/README.md index ff43d501e..9410882cf 100644 --- a/docs/zh/README.md +++ b/docs/zh/README.md @@ -238,7 +238,3 @@ dns { ## 错误排查 详见 [Troubleshooting](../en/troubleshooting.md)。 - -## 大鹅宇宙 - -Telegram: From 23b8ad0edf0f63b5a62544c81a26de42a4cbb2d4 Mon Sep 17 00:00:00 2001 From: Gray Liang Date: Sun, 14 Apr 2024 23:16:49 +0800 Subject: [PATCH 3/3] doc: Update kernel-parameters.md --- docs/en/user-guide/kernel-parameters.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ```