mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-06 08:22:38 +07:00
fix: auto_config_kernel_parameter sets net.ipv6.conf.all.forwarding=1 when binding lan interfaces (#499)
Co-authored-by: Sumire (菫) <151038614+sumire88@users.noreply.github.com> Co-authored-by: dae-prow[bot] <136105375+dae-prow[bot]@users.noreply.github.com>
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user