From 073c1cb38848ca2b234e9b9c24a7e3fe1ed14728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Wed, 26 Apr 2023 20:49:54 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20wireguard=20add=20ipv6,=20even=20th?= =?UTF-8?q?ough=20it=20does=20not=20seem=20to=20work?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/hydrogen/services/wireguard/default.nix | 6 +++--- hosts/neodymium/configuration.nix | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts/hydrogen/services/wireguard/default.nix b/hosts/hydrogen/services/wireguard/default.nix index ca88594..37d9bf9 100644 --- a/hosts/hydrogen/services/wireguard/default.nix +++ b/hosts/hydrogen/services/wireguard/default.nix @@ -10,17 +10,17 @@ wireguard.interfaces = { wg0 = { - ips = [ "10.0.0.1/24" ]; + ips = [ "10.0.0.1/24" "fd02:002:002::1/64" ]; listenPort = 5553; privateKeyFile = "/root/wg-private"; peers = [ { # pixel publicKey = "HS2q+PpPPwxqT1jCD7D4puqr4ZyaXV5TostavlYWBx0="; - allowedIPs = [ "10.0.0.2/32" ]; + allowedIPs = [ "10.0.0.2/32" "fd02:002:002::2/64" ]; } { # neodymium publicKey = "IFeRvelEilNRLkhWgFKL9HrJ9XYsm+r4yvv23CigETk="; - allowedIPs = [ "10.0.0.3/32" ]; + allowedIPs = [ "10.0.0.3/32" "fd02:002:002::3/64" ]; } ]; }; diff --git a/hosts/neodymium/configuration.nix b/hosts/neodymium/configuration.nix index 5529ae0..7cbc335 100644 --- a/hosts/neodymium/configuration.nix +++ b/hosts/neodymium/configuration.nix @@ -16,7 +16,7 @@ networking.wg-quick.interfaces = { wg0 = { privateKeyFile = "/root/wireguard-keys/private"; - address = [ "10.0.0.3/24" ]; + address = [ "10.0.0.3/24" "fd02:002:002::3/64" ]; dns = [ "10.0.0.1" ]; peers = [{ publicKey = "y36/EpLUerwM6NSGsVDCkb37Wj/Z3CI0mPFGatVa0Ws=";