l minecraft: use firewall syntax

This commit is contained in:
lassulus 2023-09-03 12:07:42 +02:00
parent 3ad3438066
commit 0b547853c4
1 changed files with 2 additions and 4 deletions

View File

@ -8,8 +8,6 @@ in {
eula = true;
package = unstable.minecraft-server;
};
krebs.iptables.tables.filter.INPUT.rules = [
{ predicate = "-p tcp --dport 25565"; target = "ACCEPT"; }
{ predicate = "-p udp --dport 25565"; target = "ACCEPT"; }
];
networking.firewall.allowedTCPPorts = [ 25565 ];
networking.firewall.allowedUDPPorts = [ 25565 ];
}