1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

fritzbox VPN

This commit is contained in:
2024-09-23 19:19:14 +02:00
parent 2067944151
commit 3bdf71425b
7 changed files with 38 additions and 1 deletions

View File

@@ -246,6 +246,7 @@ in {
./nix.nix
./newsboat.nix
./flameshot.nix
./fritzbox.nix
./packages.nix
./picom.nix
./stardict.nix

18
configs/fritzbox.nix Normal file
View File

@@ -0,0 +1,18 @@
{ config, ... }:
{
networking.firewall.allowedUDPPorts = [ 51820 ];
networking.wg-quick.interfaces.aether = {
dns = ["192.168.178.1" "fritz.box"];
listenPort = 51820;
privateKeyFile = config.age.secrets.wireguard-aether-key.path;
peers = [
{
allowedIPs = ["192.168.178.0/24" "0.0.0.0/0"];
endpoint = "lng5gx2rmssv8ge1.myfritz.net:58997";
persistentKeepalive = 25;
presharedKeyFile = config.age.secrets.wireguard-aether-psk.path;
publicKey = "8Rr7BueC0CGmycBQFS7YM7VF7Adkdc1ZcLFy8YXyOQk=";
}
];
};
}