Add firewall module

Also: tmproot tweaks
This commit is contained in:
2022-02-12 01:53:57 +00:00
parent bb9a5b2536
commit 33c643f6d8
7 changed files with 233 additions and 24 deletions

View File

@@ -8,7 +8,22 @@
};
};
networking = {};
my = {
firewall = {
trustedInterfaces = [ "blah" ];
nat = {
externalInterface = "eth0";
forwardPorts = [
{
proto = "tcp";
sourcePort = 2222;
destination = "127.0.0.1:22";
}
];
};
};
server.enable = true;
};
}