From: Benjamin Mako Hill Date: Wed, 19 Apr 2023 17:05:30 +0000 (-0700) Subject: Merge branch 'master' of code.communitydata.science:nu-vpn-proxy into cdsc X-Git-Url: https://code.communitydata.science/nu-vpn-proxy.git/commitdiff_plain/bd194355a4608d6b74c22e6f06e39827de3be384?hp=94e337f5c2293a2c96762f0d071c42357b4482bc Merge branch 'master' of code.communitydata.science:nu-vpn-proxy into cdsc --- diff --git a/openssl.conf b/openssl.conf new file mode 100644 index 0000000..9a6b314 --- /dev/null +++ b/openssl.conf @@ -0,0 +1,11 @@ +openssl_conf = openssl_init + +[openssl_init] +ssl_conf = ssl_sect + +[ssl_sect] +system_default = system_default_sect + +[system_default_sect] +Options = UnsafeLegacyRenegotiation + 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