mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
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:
parent
7bb7ea52e9
commit
6bc4007e60
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user