X-Git-Url: https://code.communitydata.science/nu-vpn-proxy.git/blobdiff_plain/7e13b54cde944b15e2c48759b9e18e82d172b40f..refs/heads/master:/ssh-vpn-proxy diff --git a/ssh-vpn-proxy b/ssh-vpn-proxy index 3548b40..58f847a 100755 --- a/ssh-vpn-proxy +++ b/ssh-vpn-proxy @@ -1,13 +1,14 @@ -#!/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 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