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 = {
|
networking = {
|
||||||
hostName = "sanji";
|
hostName = "sanji";
|
||||||
firewall.enable = false;
|
firewall = {
|
||||||
firewall.allowedUDPPortRanges = [
|
enable = true;
|
||||||
|
allowedTCPPorts = [
|
||||||
|
80
|
||||||
|
4222
|
||||||
|
443
|
||||||
|
8081
|
||||||
|
];
|
||||||
|
allowedUDPPortRanges = [
|
||||||
{
|
{
|
||||||
from = 60000;
|
from = 60000;
|
||||||
to = 61000;
|
to = 61000;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
};
|
||||||
nat = {
|
nat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
internalIPs = [ "10.10.5.0/24" ];
|
internalIPs = [ "10.10.5.0/24" ];
|
||||||
|
|
Loading…
Reference in a new issue