X-Git-Url: https://code.communitydata.science/nu-vpn-proxy.git/blobdiff_plain/3a52ba3fb9302536282c22fc2ac06a67859e6043..4b02c05b544927f4669c6d98fac1124080c93df2:/ssh-vpn-proxy?ds=sidebyside diff --git a/ssh-vpn-proxy b/ssh-vpn-proxy index 3548b40..819d175 100755 --- a/ssh-vpn-proxy +++ b/ssh-vpn-proxy @@ -1,5 +1,7 @@ #!/bin/bash +export OPENSSL_CONF="${HOME}/bin/nu-vpn-proxy/openssl.conf" +# this allows for legacy renegotation which seems to be required now SEARCH_PATTERN="ESP tunnel connected; exiting HTTPS mainloop." # connects to SSH through openconnect and VPN @@ -7,7 +9,7 @@ SEARCH_PATTERN="ESP tunnel connected; exiting HTTPS mainloop." # 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