enable forwarding on vpn

This commit is contained in:
Tim Schubert 2022-04-27 19:30:58 +02:00
parent d415aa10be
commit b8f2c5c531
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 27 additions and 14 deletions

View file

@ -134,6 +134,11 @@ in
networking.interfaces.ens3.useDHCP = true;
networking.interfaces.ens7.useDHCP = false;
boot.kernel.sysctl = {
# Enable forwarding for VPN
"net.ipv6.conf.ens3.forwarding" = true;
};
fileSystems."/mnt/storage" = {
device = "/dev/disk/by-uuid/a34e36fc-d7dd-4ceb-93c4-48f9c2727cb7";
mountPoint = "/mnt/storage";