l minecraft: use firewall syntax
This commit is contained in:
parent
3ad3438066
commit
0b547853c4
@ -8,8 +8,6 @@ in {
|
|||||||
eula = true;
|
eula = true;
|
||||||
package = unstable.minecraft-server;
|
package = unstable.minecraft-server;
|
||||||
};
|
};
|
||||||
krebs.iptables.tables.filter.INPUT.rules = [
|
networking.firewall.allowedTCPPorts = [ 25565 ];
|
||||||
{ predicate = "-p tcp --dport 25565"; target = "ACCEPT"; }
|
networking.firewall.allowedUDPPorts = [ 25565 ];
|
||||||
{ predicate = "-p udp --dport 25565"; target = "ACCEPT"; }
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user