From 3728338d4039a925c1c131a4f305d32c04cc3657 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 25 Jul 2023 08:19:43 +0200 Subject: nixos/sslh: refactor for RFC42 --- nixos/tests/sslh.nix | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'nixos/tests') diff --git a/nixos/tests/sslh.nix b/nixos/tests/sslh.nix index 17094606e8e..30ffd389d44 100644 --- a/nixos/tests/sslh.nix +++ b/nixos/tests/sslh.nix @@ -10,21 +10,13 @@ import ./make-test-python.nix { prefixLength = 64; } ]; - # sslh is really slow when reverse dns does not work - networking.hosts = { - "fe00:aa:bb:cc::2" = [ "server" ]; - "fe00:aa:bb:cc::1" = [ "client" ]; - }; services.sslh = { enable = true; - transparent = true; - appendConfig = '' - protocols: - ( - { name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; probe: "builtin"; }, - { name: "http"; host: "localhost"; port: "80"; probe: "builtin"; }, - ); - ''; + settings.transparent = true; + settings.protocols = [ + { name = "ssh"; service = "ssh"; host = "localhost"; port = "22"; probe = "builtin"; } + { name = "http"; host = "localhost"; port = "80"; probe = "builtin"; } + ]; }; services.openssh.enable = true; users.users.root.openssh.authorizedKeys.keyFiles = [ ./initrd-network-ssh/id_ed25519.pub ]; -- cgit 1.4.1