From ce4c719159dd659f20e70f95842bbbbad0be23bc Mon Sep 17 00:00:00 2001 From: Leonardo Date: Wed, 18 Mar 2026 18:19:43 +0100 Subject: vpn di wireguard aggiornata --- systems/afrodite/networking.nix | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'systems/afrodite') diff --git a/systems/afrodite/networking.nix b/systems/afrodite/networking.nix index 5065ce4..02a128e 100644 --- a/systems/afrodite/networking.nix +++ b/systems/afrodite/networking.nix @@ -15,10 +15,33 @@ networkmanager.enable = true; wg-quick.interfaces."home" = { - privateKeyFile = "/home/leo/.wireguard/private.key"; + privateKeyFile = "/home/leo/.wireguard/home"; address = [ "10.69.0.1/24" ]; - peers = []; + listenPort = 51820; + + peers = [ + #{ + # publicKey = ""; + # allowedIPs = [ "10.69.0.2/32" ]; + # persistentKeepalive = 25; + #} + { + publicKey = "99XBoIZ55yradB45bDZ94fc1IQGkNp9argWaT2otRBU="; + allowedIPs = [ "10.69.0.3/32" ]; + persistentKeepalive = 25; + } + #{ + # publicKey = ""; + # allowedIPs = [ "10.69.0.4/32" ]; + # persistentKeepalive = 25; + #} + { + publicKey = "bMgACe4Pp2VQ0lpMb0Q2RVw/n5KIIg20xT90eesxcEw="; + allowedIPs = [ "10.69.0.5/32" ]; + persistentKeepalive = 25; + } + ]; }; }; } -- cgit v1.3