Giter Club home page Giter Club logo

ciscovpnsetup's Introduction

CiscoVPNSetup

CiscoVPNSetup is the best automated way to connect to any VPN using Cisco VPN Anyconnect using Softoken generated PIN.

Getting Started

  1. Substitute "server.example.com" and "YOURPIN" with your VPN server and Softoken PIN.

  2. Save the modified code as "<any_name>.applescript" and store it anywhere and double click on it to launch Script Editor.

  3. Click the "compile" icon ๐Ÿ”จ and from the File menu, click Save and choose "Application" as the "File format". Make sure Save as at the top is "any_name.app" without the quotes and save it in /Applications.

  4. Open Security & Privacy in System Preferences, go to Privacy, Accessibility and Unlock the window. Click on + and add "Script Editor" & "any_name.app" (Or Just drag and drop your application to the window).

  5. To add custom icon right-click on .app file and select "Show Package Content". Go to Contents/Resources and replace "applet.icns" file with your custom one (name should remain the same).

  6. Launch the application from the /Applications and Run it again to Disconnect.

To use Anyconnect VPN with DUO

  1. Create a new generic password entry in Keychain Access called "cisco_vpn" (the name in Keychain access must match that in line 39 below) with your password for the Cisco AnyConnect VPN server. So this entry should have Name: cisco_vpn, and Account: cisco_vpn
  2. Change the username in line no #38 from "hapatel2" to
  3. Save the script as an Application if you want to use it permanently with some name and set it up on Dock to keep it handy.
  4. Open Security & Privacy System Preferences, go to Privacy, Accessibility and enable the above .app so it can access Accessibility
  5. Run the script to connect VPN automatically without clicking/typing anything.
  6. Run script again to close connection

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.