diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-11 17:15:56 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-11 17:16:44 +0200 |
commit | 13185280fee4111dc07f794e528fa3a73f421f3a (patch) | |
tree | 40f813ae0cf436e9bbe3a8364b046c6f93ffc2fc /nixos/tests/bittorrent.nix | |
parent | 017408e048ae2419baf0adba424b51d85b063a30 (diff) | |
download | nixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.tar nixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.tar.gz nixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.tar.bz2 nixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.tar.lz nixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.tar.xz nixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.tar.zst nixpkgs-13185280fee4111dc07f794e528fa3a73f421f3a.zip |
Fix tests broken due to the firewall being enabled by default
Diffstat (limited to 'nixos/tests/bittorrent.nix')
-rw-r--r-- | nixos/tests/bittorrent.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/tests/bittorrent.nix b/nixos/tests/bittorrent.nix index 6e67edb0b82..f84b65699d3 100644 --- a/nixos/tests/bittorrent.nix +++ b/nixos/tests/bittorrent.nix @@ -33,6 +33,8 @@ in services.httpd.enable = true; services.httpd.adminAddr = "foo@example.org"; services.httpd.documentRoot = "/tmp"; + + networking.firewall.enable = false; # FIXME: figure out what ports we actually need }; router = @@ -50,11 +52,13 @@ in virtualisation.vlans = [ 2 ]; networking.defaultGateway = nodes.router.config.networking.interfaces.eth2.ipAddress; + networking.firewall.enable = false; }; client2 = { config, pkgs, ... }: { environment.systemPackages = [ pkgs.transmission ]; + networking.firewall.enable = false; }; }; @@ -66,8 +70,8 @@ in # Enable NAT on the router and start miniupnpd. $router->waitForUnit("nat"); $router->succeed( - "iptables -t nat -N MINIUPNPD", - "iptables -t nat -A PREROUTING -i eth1 -j MINIUPNPD", + "iptables -w -t nat -N MINIUPNPD", + "iptables -w -t nat -A PREROUTING -i eth1 -j MINIUPNPD", "echo 1 > /proc/sys/net/ipv4/ip_forward", "miniupnpd -f ${miniupnpdConf nodes}" ); |