1 import ./make-test-python.nix (
3 domain = "whatever.example.com";
4 password = "false;foo;exit;withspecialcharacters";
13 networking.firewall = {
14 allowedUDPPorts = [ 53 ];
15 trustedInterfaces = [ "dns0" ];
17 boot.kernel.sysctl = {
18 "net.ipv4.ip_forward" = 1;
19 "net.ipv6.ip_forward" = 1;
22 services.iodine.server = {
25 passwordFile = "${builtins.toFile "password" password}";
29 # test resource: accessible only via tunnel
38 services.iodine.clients.testClient = {
39 # test that ProtectHome is "read-only"
40 passwordFile = "/root/pw";
44 systemd.tmpfiles.rules = [
45 "f /root/pw 0666 root root - ${password}"
47 environment.systemPackages = [
48 pkgs.nagiosPluginsOfficial
57 server.wait_for_unit("sshd")
58 server.wait_for_unit("iodined")
59 client.wait_for_unit("iodine-testClient")
61 client.succeed("check_ssh -H 10.53.53.1")