A command called vpn and foo for the cloudmesh shell
Project description
cms vpn
Windows
This requires installation of the Cisco AnyConnect Secure Mobility Client located at https://in.virginia.edu/vpn.
To connect to the UVA Anywhere VPN, run
cms vpn connect
To disconnect from UVA Anywhere, run
cms vpn disconnect
To see info regarding your connection, run
cms vpn info
Linux
Requirements
On Linux we use the comamnd openconnect
. To check if it is available please use
$ which openconnect
If it is not available, you can install it un Ubuntu with
$ sudo apt install openssl
$ sudo apt install openconnect
$ sudo apt install network-manager-openconnect
and in case you use gnoe also:
$ sudo apt install network-manager-gnome
$ sudo apt install network-manager-openconnect-gnome
Getting certificates
We have tested this tool only with University of Virginia, but it should be simple to adapt. Just follow the instructions to obtain the certificates from your provider.
At UVA you find the certificate and other documentation at
we place all certifcates into ~/.ssh/uva
mkdir -p You will receive a file ending in .p12. In this example we will assume it is named mst3k.p12.
cd ~/.ssh/uva
wget https://download.its.virginia.edu/local-auth/universal/usher.cer
To get a certificate for your device, go to
Fill it out and get the key. You will receive a file ending in .p12. In this example we will assume it is named mst3k.p12 and palce it into ~/.ssh/uva/user.p12
It is important for us to rename this key to user.p12 so we have a simplere way of identifying it and writing this documentation.
Now converte the keys and certificates with the following commands
cd ~/.ssh/uva
openssl pkcs12 -in mst3k.p12 -nocerts -nodes -out mst3k.key
openssl pkcs12 -in mst3k.p12 -clcerts -nokeys -out mst3k.crt
openssl x509 -inform DER -in usher.cer -out usher.crt
Now your UVA directory should have the following files in it.
ls ~/.ssh/uva/
user.crt user.key user.p12 usher.cer usher.crt
Install and using the command
You can now use the cloudmesh cms vpn command.
$ pip install cloudmesh-vpn
$ cms help
To connect use
$ cms vpn connect
To show the status use
$ cms vpn connect
To diconnect
$ cms vpn disconnect
Acknowledgments
This work was in part funded by the NSF CyberTraining: CIC: CyberTraining for Students and Technologies from Generation Z with the awadrd numbers 1829704 and 2200409.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cloudmesh_vpn-4.3.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f475adce2db3a613bf69e5fe0f4272c92c18f1bb1c226e5393cea000653a419 |
|
MD5 | ddc69511b2f548ee4d096282c55008f9 |
|
BLAKE2b-256 | 6fd63d694ed02e4f281f77b5b457607573d3ea68cfb242c7e56364f1ce4394d5 |