Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ableinc/anyconnectvpncli
A developer work from home tool for connecting to your company's VPN using Cisco's AnyConnect Tool
https://github.com/ableinc/anyconnectvpncli
cisco-anyconnect cli-tool developer-tool vpn vpn-client work-from-home
Last synced: 1 day ago
JSON representation
A developer work from home tool for connecting to your company's VPN using Cisco's AnyConnect Tool
- Host: GitHub
- URL: https://github.com/ableinc/anyconnectvpncli
- Owner: ableinc
- Created: 2022-06-17T15:13:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-22T12:51:52.000Z (over 2 years ago)
- Last Synced: 2024-12-09T11:51:03.104Z (about 2 months ago)
- Topics: cisco-anyconnect, cli-tool, developer-tool, vpn, vpn-client, work-from-home
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cisco's AnyConnect VPN CLI Tool
**Developer Work From Home Tool!**
AnyConnect is a VPN tool that many organizations use for their work computers. If you're like me and hate the process of waiting for the application to open, grabbing a security code (not required for everyone), waiting for the network to establish and blah blah blah, this tool can do all that from the command line.
## How it works
Using a bash script with your credentials pre-filled, it will use AnyConnect's built-in CLI tool to connect to your company's VPN. You can modify this as you please.
## Configuration (PLEASE READ FIRST)
If you do not want your password stored on your machine:
1. Please uncomment lines 4 & 5, then comment line 7 & 8.
If you do not require a security code to login:
1. Please comment out lines 3 & 9 and uncomment line 10.
Make sure to change "[YOUR-VPN-HOST-NO-BRACKETS]" to your VPN host on line 10.
## How To Use
Run in your terminal:
```bash
sh vpn.sh
```That's it!
## Not sure you VPN host?
Run this command in your terminal:
```bash
sh vpn.sh
```Then type "hosts" when prompted. From there you'll get a list of available hosts. Please refer to the Configuration section above for implementation.
## Changelog
***v1.0.2***
Your password must now be base64 encoded. This is done for security reasons, so that your password isn't sitting on your system in plain text. You can determine your the base64 string for your password by running this on your linux/unix system:
```bash
echo 'YOUR-PASSWORD-HERE' | base64
```***v1.0.1***
Issue: Variable strings with "%" character.
Reason: printf is a shell built into Bash, similar to C printf(). printf uses special characters for string formatting. When a string contains a "%", that is not being used for formatting purposes, the printf command does not know how to handle it. Thus, requiring a specific format to instantiate the variable string.
Fix: Use the printf FORMAT [ARGUMENT] structure. i.e print "%s" $variable
***v1.0.0***
Initial release.
## Add script to your PATH?
This Stackoverflow post will guide you step by step: [Add bash script to PATH](https://stackoverflow.com/questions/20054538/add-a-bash-script-to-path)
## Want to collaborate?
If you want to collaborate on a code project, please [send me an email (click me)](mailto:[email protected])