adding script for general VPN connection
This commit is contained in:
parent
5d3f84ef20
commit
5297e4b9f3
15
openconnect_command-general.sh
Executable file
15
openconnect_command-general.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Loading…
Reference in New Issue
Block a user