🧱 move natting to wireguard file

This commit is contained in:
Laureηt 2023-04-26 21:05:19 +02:00
parent 073c1cb388
commit 1b1d862f10
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
2 changed files with 6 additions and 3 deletions

View file

@ -23,8 +23,6 @@
maxretry = 5; maxretry = 5;
}; };
networking.nat.enable = true;
users.mutableUsers = false; users.mutableUsers = false;
users.users.root.openssh.authorizedKeys.keys = [ users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINTvwXCT99s1EwOCeGQ28jyCAH/RBoLZza9k5I7wWdEu" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINTvwXCT99s1EwOCeGQ28jyCAH/RBoLZza9k5I7wWdEu"

View file

@ -6,7 +6,12 @@
]; ];
}; };
nat.internalInterfaces = [ "wg0" ]; nat = {
enable = true;
enableIPv6 = true;
externalInterface = "ens3";
internalInterfaces = [ "wg0" ];
};
wireguard.interfaces = { wireguard.interfaces = {
wg0 = { wg0 = {