summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-09-03 12:07:42 +0200
committerlassulus <git@lassul.us>2023-09-03 12:07:42 +0200
commit0b547853c4dac101c691da4e4e79e745a90ef0f2 (patch)
tree4ef50f5a9431af77ce129355378ba2510cdd0991
parent3ad34380669da711fb857a8dcc971d3abd5975a0 (diff)
l minecraft: use firewall syntax
-rw-r--r--lass/2configs/minecraft.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/lass/2configs/minecraft.nix b/lass/2configs/minecraft.nix
index 34da3047e..285a4552c 100644
--- a/lass/2configs/minecraft.nix
+++ b/lass/2configs/minecraft.nix
@@ -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 ];
}