]> code.communitydata.science - nu-vpn-proxy.git/blob - openconnect_command-ssh.sh
updated to new version fo gp-saml-gui and new api
[nu-vpn-proxy.git] / openconnect_command-ssh.sh
1 #!/bin/bash -x
2
3 OS="linux"
4 LOG_FILE=/tmp/nu-globalprotect-saml.log
5 PID_FILE=/tmp/nu-vpn-openconnect.pid
6
7 exec > $LOG_FILE
8
9 # change to the vpn file directory
10 cd ~/bin/nu-vpn-proxy
11
12 ## do the authentication
13 eval $( ./gp-saml-gui.py -v --gateway --clientos=Linux vpn-connect2.northwestern.edu ) 
14
15 echo "$COOKIE" | /usr/sbin/openconnect --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 9052" -b --pid-file "${PID_FILE}"
16

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