From f0fa05faecbec2de9ee2219ca899c5bbef5c9e53 Mon Sep 17 00:00:00 2001 From: fruchti Date: Tue, 19 Nov 2024 08:52:46 +0100 Subject: [PATCH] Tunnelled burp: Add more logging --- hosts/Emitter.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/Emitter.nix b/hosts/Emitter.nix index fac76c3..6ec357e 100644 --- a/hosts/Emitter.nix +++ b/hosts/Emitter.nix @@ -98,9 +98,12 @@ cat > $out/sbin/burp <<-EOF #!/${pkgs.bash}/bin/bash set -e + echo "Ensuring rupert.gvfr.de is up." ${pkgs.dig}/bin/nslookup rupert.gvfr.de ${pkgs.unixtools.ping}/bin/ping -c1 rupert.gvfr.de >/dev/null + echo "Opening SSH tunnel." ${pkgs.openssh}/bin/ssh -i /secrets/id_burp_remote -o IdentitiesOnly=yes -o ExitOnForwardFailure=yes -L 4971:localhost:4971 burp-remote@rupert.gvfr.de -f true + echo "Beginning backup operation." $out/sbin/burp-untunneled \$@ EOF chmod +x $out/sbin/burp