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

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