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 /systems/afrodite/networking.nix | |
| parent | e31279811e553e1b59eaace42ec0f0bcd78236f0 (diff) | |
| download | nixos-ce4c719159dd659f20e70f95842bbbbad0be23bc.tar.gz nixos-ce4c719159dd659f20e70f95842bbbbad0be23bc.zip | |
vpn di wireguard aggiornata
Diffstat (limited to 'systems/afrodite/networking.nix')
| -rw-r--r-- | systems/afrodite/networking.nix | 27 |
1 files changed, 25 insertions, 2 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; + } + ]; }; }; } |
