]> code.communitydata.science - nu-vpn-proxy.git/blobdiff - ssh-vpn-proxy
updated the proxy code to make it work based on other bitrot
[nu-vpn-proxy.git] / ssh-vpn-proxy
index 819d175bd445fa57bab660263d6610db5fe7f44a..6f3644c4f4391cc525809d0d74e4ab336ed133fe 100755 (executable)
@@ -1,15 +1,15 @@
-#!/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
 
 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."
+# SEARCH_PATTERN="ESP tunnel connected; exiting HTTPS mainloop."
+SEARCH_PATTERN="Continuing in background; pid"
 
 # connects to SSH through openconnect and VPN
 # for use with ProxyCommand in SSH
 
 
 # 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?