summary refs log tree commit diff
path: root/nixos/tests/nat.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-11 17:15:56 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-11 17:16:44 +0200
commit13185280fee4111dc07f794e528fa3a73f421f3a (patch)
tree40f813ae0cf436e9bbe3a8364b046c6f93ffc2fc /nixos/tests/nat.nix
parent017408e048ae2419baf0adba424b51d85b063a30 (diff)
downloadnixpkgs-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/nat.nix')
-rw-r--r--nixos/tests/nat.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/tests/nat.nix b/nixos/tests/nat.nix
index a13714d60a9..259ab99d301 100644
--- a/nixos/tests/nat.nix
+++ b/nixos/tests/nat.nix
@@ -12,6 +12,7 @@
     { client =
         { config, pkgs, nodes, ... }:
         { virtualisation.vlans = [ 1 ];
+          networking.firewall.allowPing = true;
           networking.defaultGateway =
             nodes.router.config.networking.interfaces.eth2.ipAddress;
         };
@@ -19,6 +20,7 @@
       router =
         { config, pkgs, ... }:
         { virtualisation.vlans = [ 2 1 ];
+          networking.firewall.allowPing = true;
           networking.nat.enable = true;
           networking.nat.internalIPs = [ "192.168.1.0/24" ];
           networking.nat.externalInterface = "eth1";
@@ -27,6 +29,7 @@
       server =
         { config, pkgs, ... }:
         { virtualisation.vlans = [ 2 ];
+          networking.firewall.enable = false;
           services.httpd.enable = true;
           services.httpd.adminAddr = "foo@example.org";
           services.vsftpd.enable = true;