GithubHelp home page GithubHelp logo

vpnsplit2's Introduction

vpnsplit2

Install Instructions:

  1. Make sure you have the LATEST version of Anyconnect installed (currently 4.2), WITH the posture option! You might need to google to find this :)
  2. Install the most recent XCode for your platform by running xcode-select --install. They may already be installed, in which case continue with the next stop. If you can't figure this out, ask for help from someone, it only gets harder from here.
  3. Install homebrew with this command: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  4. Use homebrew to install openconnect: brew update && brew install openconnect
  5. Get the latest wrapper scripts from my github: cd ~ && git clone http://github.com/eddiepavkovic/vpnsplit2.git .vpn
  6. Everything is installed!

Usage

To connect to the VPN:

sudo ~/.vpn/vpn.sh C NT-USERNAME [south|west|east]

  • 'C' stands for connect, your username should be obvious.
  • Select 'south', 'west', or 'east' to choose which endpoint you connect to.

You'll get some output that looks like the following:

Checking for openconnect binary...
Checking for cstub binary...
Running openconnect
<snip>
Runnning cstub binary...with CLI:
-url "https://scl02-01i11-vn01.emc.com/CACHE/sdesktop/install/result.htm" -ticket "0FEA06596BF0DAA068CEC7A3" -stub "0" -certhash "3D1F7128B9A4E8CD063D8FCB23FA3401:"
<snip>
cstub complete
<snip>
Please enter your username and password.
PASSCODE:
[2016-01-05 14:30:03] POST https://scl02-01i11-vn01.emc.com/+webvpn+/index.html
[2016-01-05 14:30:07] Got CONNECT response: HTTP/1.1 200 OK
[2016-01-05 14:30:07] CSTP connected. DPD 90, Keepalive 30
[2016-01-05 14:30:07] Connected utun1 as 10.13.38.90, using SSL
[2016-01-05 14:30:07] Continuing in background; pid 26621
Checking connection functionality
[2016-01-05 14:30:07] Established DTLS connection (using GnuTLS). Ciphersuite (DTLS0.9)-(RSA)-(AES-256-CBC)-(SHA1).
PING 10.5.132.1 (10.5.132.1): 56 data bytes
64 bytes from 10.5.132.1: icmp_seq=0 ttl=244 time=85.623 ms

--- 10.5.132.1 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 85.623/85.623/85.623/0.000 ms

YOU ARE CONNECTED

And the script will exit and you are connected, per the note above. All standard resources are available via the VPN, but the tunnel is now a split include (meaning only certain address spaces are routed through the VPN, and all others around it). Split-DNS is also enabled, meaning that the DNS server pushed by the VPN server is used only for the pushed domains, and all lookups happen against your standard DNS server.

To disconnect

sudo ~/.vpn/vpn.sh D

The openconnect process will be killed and all your routes and DNS are put back.

vpnsplit2's People

Contributors

mcowger avatar eddiepavkovic avatar

Watchers

 avatar

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.