From 1a9c1f4913968547becd73b833fde7baf60f462c Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 22 Sep 2024 12:06:16 +0900 Subject: [PATCH] :wrench: add wireguard device --- machines/orbi/network-wireguard.nix | 5 +++++ scripts/wireguard-client.sh | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/machines/orbi/network-wireguard.nix b/machines/orbi/network-wireguard.nix index 231df40..09a9710 100644 --- a/machines/orbi/network-wireguard.nix +++ b/machines/orbi/network-wireguard.nix @@ -65,6 +65,11 @@ in publicKey = "8f8fYGymH3Tq8d14B2+ijMiHwocEbUIXSZji3U29IhA="; allowedIPs = [ "10.100.0.103/32" ]; } + { + # ipad tina + publicKey = "kuzUJn+lROh7ttA0qMc2p1abpfxjDGeYA+Ryzm88+AE="; + allowedIPs = [ "10.100.0.104/32" ]; + } ]; }; }; diff --git a/scripts/wireguard-client.sh b/scripts/wireguard-client.sh index ea05836..79d798a 100644 --- a/scripts/wireguard-client.sh +++ b/scripts/wireguard-client.sh @@ -2,8 +2,8 @@ # # Create a new wireguard client -client_name="iphone tina" -client_ip=10.100.0.103 +client_name="ipad tina" +client_ip=10.100.0.104 private_key=$(wg genkey) public_key=$(echo "$private_key" | wg pubkey)