diff options
| author | Leonardo <noreply@leoflo.me> | 2026-03-18 18:19:43 +0100 |
|---|---|---|
| committer | Leonardo <noreply@leoflo.me> | 2026-03-18 18:19:43 +0100 |
| commit | ce4c719159dd659f20e70f95842bbbbad0be23bc (patch) | |
| tree | e07ae7a9a5887cb9303b9a7aec3f87012e46e89f | |
| parent | e31279811e553e1b59eaace42ec0f0bcd78236f0 (diff) | |
| download | nixos-ce4c719159dd659f20e70f95842bbbbad0be23bc.tar.gz nixos-ce4c719159dd659f20e70f95842bbbbad0be23bc.zip | |
vpn di wireguard aggiornata
| -rw-r--r-- | systems/afrodite/networking.nix | 27 | ||||
| -rw-r--r-- | systems/odino/networking.nix | 4 |
2 files changed, 27 insertions, 4 deletions
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; + } + ]; }; }; } diff --git a/systems/odino/networking.nix b/systems/odino/networking.nix index f68fb87..11490ad 100644 --- a/systems/odino/networking.nix +++ b/systems/odino/networking.nix @@ -15,12 +15,12 @@ networkmanager.enable = true; wg-quick.interfaces."home" = { - privateKeyFile = "/home/leo/.wireguard/private.key"; + privateKeyFile = "/home/leo/.wireguard/home"; address = [ "10.69.0.2/24" ]; peers = [ { - publicKey = "rwUMCdhjQbQt9uGjljfdABj4DSJFgL62bzT13sg8LmU="; + publicKey = "629xLQgbpcfGJotfD79p3dNbpiwmp2FQtkUMd/S+M2M="; allowedIPs = [ "10.69.0.0/24" ]; endpoint = "leoflo.me:51820"; persistentKeepalive = 25; |
