Git Product home page Git Product logo

anyconnect-vpn-helper's Introduction

anyconnect-vpn-helper

Simple Cisco AnyConnect VPN CLI tool.

Setup

Step one: Get the VPN bash script from the github repo (curl command below)

curl -o ./vpn https://raw.githubusercontent.com/amoskyler/anyconnect-vpn-helper/master/bin/vpn && chmod 700 ./vpn && mv ./vpn /usr/local/bin

This will do three things:

  1. Download the vpn CLI script from the github repository and store it in a file at your current directory named vpn
  2. Give the vpn script read, write, and execute permissions for only the current user
  3. and move the file vpn to the path usr/local/bin

Step two: Substitute in your own VPN credentials

  1. subl /usr/local/bin/vpn
  2. Now modify the following values to your VPN credentials - __VPN_ADDRESS // URL to vpn - __CLIENT // path to the Cisco AnyConnect vpn binary - __GROUP // VPN group (0 for two factor) - __USERNAME - __PASSWORD - __SECOND_PASSWORD // DUO method (e.g. PUSH)

Step three: If you're using bash change the first line to read #!/bin/bash (or to whatever shell you're using)

Usage

vpn connect

  • Type vpn connect to start the connection process...Complete the process by completing the two factor step

vpn disconnect

  • Type vpn disconnect to disconnect from the vpn
  • This is sometimes necessary if the VPN has disconnected automatically

vpn status

  • Type vpn status to check if the vpn is currently connected

-v (verbose)

  • type -v as the second command argument to enable verbose output (e.g. vpn connect -v)
  • notice: This will output your vpn authentication information.

Known Issues

  • Disconnects unexpectedly due to 'inactivity'
  • The VPN will not connect (but will also not throw an obvious error due to output suppression) if another vpn client is open
  • Verbose flag only support -v but not alternate forms (i.e. --verbose, -verbose)

anyconnect-vpn-helper's People

Contributors

amoskyler avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

phadaphunk

anyconnect-vpn-helper's Issues

Integrate with K8S

Looks good !
Any idea if it could be integrated somehow with a Kubernetes cluster ?
i.e: Can a K8S cluster have connectivity through openconnect VPN ?
Thanks !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.