Skip to content

Commit

Permalink
fix: auto_config_kernel_parameter sets net.ipv6.conf.all.forwarding=1…
Browse files Browse the repository at this point in the history
… when binding lan interfaces (#499)

Co-authored-by: Sumire (菫) <[email protected]>
Co-authored-by: dae-prow[bot] <136105375+dae-prow[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 15, 2024
1 parent 21f6203 commit c091694
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions control/control_plane_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/en/user-guide/kernel-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit c091694

Please sign in to comment.