summary refs log tree commit diff
path: root/nixos/tests/firewall.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2016-03-18 11:43:30 +0100
committerPeter Simons <simons@cryp.to>2016-03-18 11:44:07 +0100
commitc523aeffde74a1d7a085fdecf52250a96736051e (patch)
tree73624631aaf672487d5e09a9d88fd8bc3e65a964 /nixos/tests/firewall.nix
parent6c935046a75016e9f1e6b142ce23fa53cb5e31d4 (diff)
downloadnixpkgs-c523aeffde74a1d7a085fdecf52250a96736051e.tar
nixpkgs-c523aeffde74a1d7a085fdecf52250a96736051e.tar.gz
nixpkgs-c523aeffde74a1d7a085fdecf52250a96736051e.tar.bz2
nixpkgs-c523aeffde74a1d7a085fdecf52250a96736051e.tar.lz
nixpkgs-c523aeffde74a1d7a085fdecf52250a96736051e.tar.xz
nixpkgs-c523aeffde74a1d7a085fdecf52250a96736051e.tar.zst
nixpkgs-c523aeffde74a1d7a085fdecf52250a96736051e.zip
nixos/tests/firewall.nix: ping now succeeds in the firewall's default configuration
Diffstat (limited to 'nixos/tests/firewall.nix')
-rw-r--r--nixos/tests/firewall.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/firewall.nix b/nixos/tests/firewall.nix
index 9faf19f0359..8f2cb27b60f 100644
--- a/nixos/tests/firewall.nix
+++ b/nixos/tests/firewall.nix
@@ -35,9 +35,9 @@ import ./make-test.nix ( { pkgs, ... } : {
       # Local connections should still work.
       $walled->succeed("curl -v http://localhost/ >&2");
 
-      # Connections to the firewalled machine should fail.
+      # Connections to the firewalled machine should fail, but ping should succeed.
       $attacker->fail("curl --fail --connect-timeout 2 http://walled/ >&2");
-      $attacker->fail("ping -c 1 walled >&2");
+      $attacker->succeed("ping -c 1 walled >&2");
 
       # Outgoing connections/pings should still work.
       $walled->succeed("curl -v http://attacker/ >&2");