From 0b547853c4dac101c691da4e4e79e745a90ef0f2 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 3 Sep 2023 12:07:42 +0200 Subject: l minecraft: use firewall syntax --- lass/2configs/minecraft.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lass') diff --git a/lass/2configs/minecraft.nix b/lass/2configs/minecraft.nix index 34da3047..285a4552 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 ]; } -- cgit v1.2.3