From 0b6ace2da35c3d568738e80b712b6ac25a2dd626 Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Thu, 6 Jul 2023 17:55:59 -0700 Subject: [PATCH 1/1] don't run the openconnect script in the background --- ssh-vpn-proxy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ssh-vpn-proxy b/ssh-vpn-proxy index 819d175..58f847a 100755 --- a/ssh-vpn-proxy +++ b/ssh-vpn-proxy @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash export OPENSSL_CONF="${HOME}/bin/nu-vpn-proxy/openssl.conf" # this allows for legacy renegotation which seems to be required now @@ -7,9 +7,8 @@ SEARCH_PATTERN="ESP tunnel connected; exiting HTTPS mainloop." # connects to SSH through openconnect and VPN # for use with ProxyCommand in SSH - # first run openconnect -/sbin/start-stop-daemon --pidfile /tmp/nu-vpn-openconnect.pid -S --startas "${HOME}/bin/nu-vpn-proxy/openconnect_command-ssh.sh" & +/sbin/start-stop-daemon --pidfile /tmp/nu-vpn-openconnect.pid -S --startas "${HOME}/bin/nu-vpn-proxy/openconnect_command-ssh.sh" sleep 2 # kill connection on exit -- 2.39.5