Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/corneliusroemer/autovpn
Automatically connect to Cisco Anyconnect VPN from CLI
https://github.com/corneliusroemer/autovpn
Last synced: 24 days ago
JSON representation
Automatically connect to Cisco Anyconnect VPN from CLI
- Host: GitHub
- URL: https://github.com/corneliusroemer/autovpn
- Owner: corneliusroemer
- License: mit
- Created: 2021-07-23T20:42:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-09T14:00:29.000Z (about 3 years ago)
- Last Synced: 2024-09-23T09:19:42.289Z (about 2 months ago)
- Language: Python
- Size: 18.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Autovpn: CLI tool for CISCO Anyconnect VPN
## Installation
```
pip install autovpn
```## Usage
```
Usage: autovpn [OPTIONS] COMMAND [ARGS]...Options:
--help Show this message and exit.Commands:
configure Configure VPN
connect Connect to VPN
disconnect Disconnect from VPN
state Show VPN state
```## Configuration
In order to let `autovpn` know about your VPN server and credentials, you need to configure it once. You can do so in two ways: Either by running `autovpn configure` or by adding a config file `~/.autovpnconfig` to your home directory with the following content:
```
# Path to Cisco Anyconnect VPN binary
vpnpath = "/opt/cisco/anyconnect/bin/vpn"# Server to connect to
server = "vpn.mobile.unibas.ch"# Username to connect with
username = "USERNAME"# Password to connect with
password = "PASSWORD"
```The command `autovpn configure` automatically creates the config file if it doesn't exist and overwrites any existing one.