From e970b4b18b42d87807959cab60b7b22f54472263 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 14 Apr 2025 19:21:23 +0200 Subject: [PATCH] Route IPv6 traffic via Wireguard --- modules/networking.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/modules/networking.nix b/modules/networking.nix index c30a281..9710ce4 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -87,8 +87,11 @@ in wireguardPeers = [ { PublicKey = "GN8lqPBZYOulh6xD4GhkoEWI65HMMCpSxJSH5871YnU="; - AllowedIPs = [ "0.0.0.0/0" ]; - Endpoint = "coolneng.duckdns.org:1194"; + AllowedIPs = [ + "0.0.0.0/0" + "::0" + ]; + Endpoint = "psydnd.org:1194"; } ]; }; @@ -96,8 +99,14 @@ in matchConfig.Name = "wg0"; linkConfig.ActivationPolicy = "manual"; networkConfig = { - Address = "10.8.0.2/32"; - DNS = "10.8.0.1"; + Address = [ + "10.8.0.2/32" + "fd00::2/128" + ]; + DNS = [ + "10.8.0.1" + "fd00::2" + ]; DNSDefaultRoute = true; }; routingPolicyRules = [