This repo contains a script to connect to the WWU-VPN. Also, a GUI is available which is built with Python.
Note: This script is not affiliated with the WWU
Note: This repo originates from a gist and has been turned into a repo, because additional contributors joined.
Before you run this script, install:
- openconnect
- oathtool
Use the install.sh
script to install the tools.
With brew:
brew install oath-toolkit; brew install openconnect
At the top of the script, change the values accordingly:
USER=mmuster1
PASSWORD=verysecurepassword
OTP_CODE=$(oathtool --totp 100000000000000000005224)
The Keimwert is displayed in the WWU-IT-Portal when you create your OTP profile. It is the "Keimwert im Base16-Format"
To run this script, use sh wwu-vpn.sh
When you are prompted for a password, enter the password which you use to login to your computer.
To disconnect, run the script again. It should disconnect you automatically.
To manually disconnect, run: sudo killall openconnect
Get KeySmith.
Recreate this Shortcut:
It is also possible to wrap the execution of the script or parts of it in own commands - keyword "alias".
All commands may require the computer password.
The command wwu-vpn-check
produces no output if the VPN is not active and returns the ID of the process if the VPN is active.
Change File ~/.zshrc
:
alias wwu-vpn-connect="sh ~/Documents/scripts/wwu-vpn.sh" // depending on where the script is located
alias wwu-vpn-disconnect="sudo killall openconnect"
alias wwu-vpn-check="sudo pgrep openconnect"
Change file ~/.config/fish/config.fish
alias wwu-vpn-connect "sh ~/Documents/scripts/wwu-vpn.sh" // depending on where the script is located
alias wwu-vpn-disconnect "sudo killall openconnect"
alias wwu-vpn-check "sudo pgrep openconnect"
Feedback and Questions are appreciated. Please open an issue.