Skip to content

Instantly share code, notes, and snippets.

@gijzelaerr
Last active May 19, 2020 13:48
Show Gist options
  • Save gijzelaerr/e4b9f43b1e05304feb7c947d4bb1b712 to your computer and use it in GitHub Desktop.
Save gijzelaerr/e4b9f43b1e05304feb7c947d4bb1b712 to your computer and use it in GitHub Desktop.
$ eduvpn interactive
- starts interactive mode, lists all servers and the user can select one.
- Browser will open if required
- User needs to select profile if mutiple available
- User needs to select of configuration is added to Network Manager or written to .OVPN file
$ eduvpn search SURFnet
- non-interactive search server list, match search string and always exits after
$ eduvpn configure <description match> [<profile>]
non-interactive configure a server
for example:
$ eduvpn configure "Demo" "Internet"
Set up configuration for the server matching the string. Need to supply a profile also when multiple profiles are available.
Another example:
$ eduvpn configure "SURFnet BV"
if matching string starts with https:// this is used as a base URL:
$ eduvpn configure https://eva-saml-idp.eduroam.nl/simplesamlphp/saml2/idp/metadata.php
Add a flag for -nm "add to Network Managed (default)" or -s "Save to .OVPN"
$ eduvpn refresh
- Refreshes active configuration, refreshes tokens and updates certificate if expires
- non-interactive, but blocks when browser action is required. Not sure if this is a good idea if started from cron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment