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 <http://lists.science.uu.nl/pipermail/nix-dev/2013-November/011997.html>
for the discussion that lead to this.
This commit is contained in:
Peter Simons 2013-12-23 21:32:13 +01:00
parent 7bb7ea52e9
commit 6bc4007e60

View file

@ -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}