]> code.communitydata.science - nu-vpn-proxy.git/blobdiff - openconnect_command-http.sh
Merge branch 'master' of code.communitydata.science:nu-vpn-proxy into cdsc
[nu-vpn-proxy.git] / openconnect_command-http.sh
diff --git a/openconnect_command-http.sh b/openconnect_command-http.sh
new file mode 100755 (executable)
index 0000000..0c519c6
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+LOG_FILE=/tmp/nu-globalprotect-saml.log
+PID_FILE=/tmp/nu-vpn-openconnect_http.pid
+
+exec > $LOG_FILE
+
+# change to the vpn file directory
+cd ~/bin/nu-vpn-proxy
+
+## do the authentication
+eval $( ./gp-saml-gui.py -v --clientos=Linux vpn-connect2.northwestern.edu ) 
+
+
+echo "$COOKIE" | /usr/sbin/openconnect --verbose --useragent="PAN GlobalConnect" --version-string='5.1.0-101' --protocol=gp -u "$USER" --os="$OS" --passwd-on-stdin "$HOST" --csd-wrapper="hipreport-modified.sh" --reconnect-timeout 60 --script-tun --script "ocproxy -D 8181 --keepalive 5 --verbose" -b --pid-file "${PID_FILE}"
+
+

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