summaryrefslogtreecommitdiffstats
path: root/nixos/tests
diff options
context:
space:
mode:
authorAntoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com>2020-07-20 08:47:16 +0200
committerAntoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>2020-10-08 08:59:49 +0200
commit3248506a002a668f8697d4752f1db211501c2823 (patch)
tree53843a3e3aa6d4e4737292015e4a12b75952f01a /nixos/tests
parent9fdd11c6a82f1480bcd6285e55623a60ebd3e0e5 (diff)
mediatomb/gerbera: Improve firewall rules and open firewall option
This changes the default behavior which opened by default the firewall rules. The users now need to declare explicitely they want to open the firewall.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/mediatomb.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/nixos/tests/mediatomb.nix b/nixos/tests/mediatomb.nix
index f07e453aadc2..b7a126a01ad5 100644
--- a/nixos/tests/mediatomb.nix
+++ b/nixos/tests/mediatomb.nix
@@ -14,15 +14,12 @@ import ./make-test-python.nix ({ pkgs, ... }:
serverName = "Gerbera";
package = pkgs.gerbera;
interface = "eth1"; # accessible from test
+ openFirewall = true;
mediaDirectories = [
{ path = "/var/lib/gerbera/pictures"; recursive = false; hidden-files = false; }
{ path = "/var/lib/gerbera/audio"; recursive = true; hidden-files = false; }
];
};
- networking.firewall = {
- allowedUDPPorts = [ 1900 port ];
- allowedTCPPorts = [ port ];
- };
};
serverMediatomb =
@@ -41,7 +38,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
{ path = "/var/lib/mediatomb/audio"; recursive = true; hidden-files = false; }
];
};
- networking.firewall = {
+ networking.firewall.interfaces.eth1 = {
allowedUDPPorts = [ 1900 port ];
allowedTCPPorts = [ port ];
};