17
0
nu-vpn-proxy/README-CDSC

71 lines
1.9 KiB
Plaintext

===========================
== INSTALLATION ===========
===========================
1.
Install prerequisites. This will include:
sudo apt install python3-gi gir1.2-gtk-3.0 gir1.2-webkit2-4.0 openconnect ocproxy
Also, note that you'll need at least version 8 of openconnect but NOT a version that is greater 8.2 or less than 9.0. If you're not sure what you've got, run:
openconnect --version
These scripts did not seem to work at all due a bug in openconnectversion 8.2+. The bug does appear to have been fixed in openconnect version 9. Consult https://wiki.communitydata.science/CommunityData:Northwestern_VPN for more details.
2.
Install this directory into: ~/bin/nu-vpn-proxy
3.
Change your System UUID in the script. You can get this with the command:
sudo dmidecode|grep UUID
You should see a line like:
UUID: deadbeef-dead-beef-dead-beefdeadbeef
Edit the file hipreport-modified.sh to change the variable HOSTID so that it is
equal to this number. Change the line that says
"deadbeef-dead-beef-dead-beefdeadbeaf" so that it lists your UUID.
4. [optional]
Change bmh1867 to your username and add the following stanza text to your
~/.ssh/config:
Host kibo kibo.soc.northwestern.edu
Hostname kibo.soc.northwestern.edu
User bmh1867
ProxyCommand ~/bin/nu-vpn-proxy/ssh-vpn-proxy %h %p
ForwardAgent yes
ServerAliveInterval 120
===========================
== USAGE ==================
===========================
There are two ways to use this.
1. *Only* for SSH connections to kibo.
This should be just as simple as running:
ssh kibo
You can run the command mulptiple time and it should work. When you close the
first connection though, it will disconnect all of your connections.
2. Your entire connection.
Run the following command:
~/bin/nu-vpn-proxy/openconnect_command-general.sh
While this command is running, you should be connected through the VPN. Run
Ctrl-C to disconnect.