16 lines
558 B
Bash
Executable File
16 lines
558 B
Bash
Executable File
#!/bin/bash
|
|
|
|
OS="linux"
|
|
LOG_FILE=/tmp/nu-globalprotect-saml.log
|
|
PID_FILE=/tmp/nu-vpn-openconnect.pid
|
|
|
|
exec > $LOG_FILE
|
|
|
|
# change to the vpn file directory
|
|
cd ~/bin/nu-vpn-proxy
|
|
|
|
## do the authentication
|
|
eval $( ./gp-saml-gui.py -v --gateway --clientos=Linux vpn-connect2.northwestern.edu )
|
|
|
|
echo "${COOKIE}" | sudo /usr/sbin/openconnect --protocol=gp '--useragent=PAN GlobalConnect' --user="${USER}" --os="${OS}" --usergroup=gatway:prelogin-cookie --passwd-on-stdin vpn-connect2.northwestern.edu --csd-wrapper="hipreport-modified.sh" --reconnect-timeout 60
|