Test nat port forward

This commit is contained in:
Michael Hübner 2025-06-24 12:11:12 +02:00
parent d602732c3b
commit 6350d8f67e

View file

@ -38,10 +38,23 @@ in
};
};
networking.firewall = {
allowedTCPPortRanges = [
{ from = 8000; to = 8020; }
];
networking = {
firewall = {
allowedTCPPortRanges = [
{ from = 8000; to = 8020; }
];
};
nat = {
enable = true;
forwardPorts = [
{
destination = "localhost:8001";
proto = "tcp";
sourcePort = 8001;
}
];
}
};
services = {