git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/tests/firewall.nix: ping now succeeds in the firewall's default configuration
commitc523aeffde74a1d7a085fdecf52250a96736051e authorPeter Simons <simons@cryp.to> dateFri 18 Mar 2016, 11:43 (11 years ago) parent6c93504
1 file changed+2−2
nixos/tests/firewall.nix+2−2
nixos/tests/firewall.nix+2−2
@@ -35,9 +35,9 @@ import ./make-test.nix ( { pkgs, ... } : {
3535 # Local connections should still work.
3636 $walled->succeed("curl -v http://localhost/ >&2");
3737
38− # Connections to the firewalled machine should fail.
38+ # Connections to the firewalled machine should fail, but ping should succeed.
3939 $attacker->fail("curl --fail --connect-timeout 2 http://walled/ >&2");
40− $attacker->fail("ping -c 1 walled >&2");
40+ $attacker->succeed("ping -c 1 walled >&2");
4141
4242 # Outgoing connections/pings should still work.
4343 $walled->succeed("curl -v http://attacker/ >&2");