From 29c5c4913157445c467cd9b6d525830bdbb15116 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 5 Sep 2015 11:56:49 +0200 Subject: lass 2 steam: move config to new firewall --- lass/2configs/steam.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'lass/2configs/steam.nix') diff --git a/lass/2configs/steam.nix b/lass/2configs/steam.nix index 7d088fc6..bd895e15 100644 --- a/lass/2configs/steam.nix +++ b/lass/2configs/steam.nix @@ -16,15 +16,14 @@ environment.systemPackages = with pkgs; [ steam ]; - networking.firewall = { - allowedUDPPorts = [ - 27031 - 27036 - ]; - allowedTCPPorts = [ - 27036 - 27037 - ]; + lass.iptables = { + tables = { + filter.INPUT.rules = [ + { predicate = "-p tcp --dport 27031"; target = "ACCEPT"; } + { predicate = "-p tcp --dport 27036"; target = "ACCEPT"; } + { predicate = "-p udp --dport 27031"; target = "ACCEPT"; } + { predicate = "-p udp --dport 27036"; target = "ACCEPT"; } + ]; + }; }; - } -- cgit v1.2.3