]> code.communitydata.science - nu-vpn-proxy.git/blobdiff - ssh-vpn-proxy
don't run the openconnect script in the background
[nu-vpn-proxy.git] / ssh-vpn-proxy
index 3548b40ec1a01de31807ffc40195cc432de0d4b3..58f847a69eaa0fc52b76686bafc8565e66b1fef1 100755 (executable)
@@ -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
 
 SEARCH_PATTERN="ESP tunnel connected; exiting HTTPS mainloop."
 
 # connects to SSH through openconnect and VPN
 # for use with ProxyCommand in SSH
 
-
 # first run openconnect
 # 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
 sleep 2
 
 # kill connection on exit

Community Data Science Collective || Want to submit a patch?