From fbda8b064378a45ebd74791f2543947d2bd1afc4 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 14 Mar 2021 17:02:09 +0800 Subject: [PATCH] nixbld: disable IPv6 DAD dnsmasq silently stops sending RAs on interfaces where DAD has kicked in, which creates very annoying obscure network problems for everyone (e.g. IPv6 default route deleted 30min after boot) when an address conflict has occured, even after the address conflict is no longer present. nixbld should have authority on LAN IP addresses anyway. --- nixbld-etc-nixos/configuration.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 8930fef1..067306a8 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -111,6 +111,8 @@ in }; boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = "1"; boot.kernel.sysctl."net.ipv6.conf.default.forwarding" = "1"; + boot.kernel.sysctl."net.ipv6.conf.all.accept_dad" = "0"; + boot.kernel.sysctl."net.ipv6.conf.default.accept_dad" = "0"; services.unbound = { enable = true;