-
-
Save ronen/7d486adbde5d6bfd2472 to your computer and use it in GitHub Desktop.
convenient wrapper around openconnect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Moved to https://github.com/ronen/vpn |
very cool. thanks for sharing this
Glad you like it. FYI the new revision dispenses with the directory-search thing, and instead just looks in ~/.vpn -- but now that file can have multiple entries for multiple sites. So the yaml looks like this:
mycompany:
server: vpn.mycompany.com
usergroup: OTP
user: ronen
other:
server: remote.othercorp.com
...etc...
(Not backwards compatible: even if you have only one you need to give it a name and indent the settings.)
By default it will connect to the first one in the file; otherwise use vpn up <site>
.
It also now hides the vpn password when you type it
Ok, seemed like it may as well be a proper repo rather than updating a gist. Moved it over to https://github.com/ronen/vpn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wrapper around openconnect that lets you do
Looks for a file named
.vpn
starting in your current directory and moving up the tree..vpn
should be a yaml file that must contain "server"; other things are arguments to openconnect. e.g.Suggestions for improvement welcome!