feat(sanji): use firewall and open ports
This commit is contained in:
parent
a1460d2ca3
commit
b5a256472c
1 changed files with 15 additions and 7 deletions
|
@ -51,13 +51,21 @@
|
|||
|
||||
networking = {
|
||||
hostName = "sanji";
|
||||
firewall.enable = false;
|
||||
firewall.allowedUDPPortRanges = [
|
||||
{
|
||||
from = 60000;
|
||||
to = 61000;
|
||||
}
|
||||
];
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [
|
||||
80
|
||||
4222
|
||||
443
|
||||
8081
|
||||
];
|
||||
allowedUDPPortRanges = [
|
||||
{
|
||||
from = 60000;
|
||||
to = 61000;
|
||||
}
|
||||
];
|
||||
};
|
||||
nat = {
|
||||
enable = true;
|
||||
internalIPs = [ "10.10.5.0/24" ];
|
||||
|
|
Loading…
Reference in a new issue