diff --git a/m/raccoon/wireguard.nix b/m/raccoon/wireguard.nix index 31f7d699..25650f8c 100644 --- a/m/raccoon/wireguard.nix +++ b/m/raccoon/wireguard.nix @@ -1,6 +1,13 @@ -{ config, ... }: +{ config, pkgs, ... }: { + networking.nat = { + enable = true; + enableIPv6 = false; + externalInterface = "eno0"; + internalInterfaces = [ "wg0" ]; + }; + networking.firewall = { allowedUDPPorts = [ 666 ]; }; @@ -25,8 +32,9 @@ { name = "apex"; publicKey = "VwhcN8vSOzdJEotQTpmPHBC52x3Hbv1lkFIyKubrnUA="; - allowedIPs = [ "10.106.0.30/32" ]; + allowedIPs = [ "10.106.0.30/32" "192.168.0.0/24" ]; endpoint = "ssfhead.bsc.es:666"; + persistentKeepalive = 25; } ]; };