From 6bc4007e60319efbc491b8f3cfce50529459f53e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 23 Dec 2013 21:32:13 +0100 Subject: [PATCH] nixos: don't white-list port 8200 in the firewall when minidlna is enabled If you want minidla to accept connections from the rest of the world, please add networking.firewall.allowedTCPPorts = [ 8200 ]; networking.firewall.allowedUDPPorts = [ 1900 ]; to /etc/nixos/configuration.nix. See for the discussion that lead to this. --- nixos/modules/services/networking/minidlna.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/nixos/modules/services/networking/minidlna.nix b/nixos/modules/services/networking/minidlna.nix index e31d77f13fed..73fcb1eeea8e 100644 --- a/nixos/modules/services/networking/minidlna.nix +++ b/nixos/modules/services/networking/minidlna.nix @@ -55,11 +55,6 @@ in config = mkIf cfg.enable { - # Running minidlna only makes sense for serving files to the - # outside, so open up the required ports by default. - networking.firewall.allowedTCPPorts = [ port ]; - networking.firewall.allowedUDPPorts = [ 1900 ]; # SSDP - services.minidlna.config = '' port=${toString port}