This commit is contained in:
iFargle 2023-10-08 12:09:31 +09:00
parent 25f9674207
commit 83cd94d9d6

View file

@ -35,9 +35,6 @@
sopsFile = ../../../secrets/wireguard.yaml;
};
networking.nat.enable = true;
networking.nat.externalInterface = "eno3";
networking.nat.internalInterfaces = [ "wireguard0" ];
# Wireguard Forwarder
boot.kernel.sysctl = { "net.ipv4.ip_forward" = true; };
networking.firewall.allowPing = true;
@ -71,4 +68,17 @@
};
};
};
networking.nat = {
enable = true;
externalInterface = "eno3";
internalInterface = "wireguard0";
forwardPorts = [
{
destination = "10.100.0.2:80";
proto = "tcp";
sourcePort = 80;
}
];
};
}