Skip to content

supaflysnooka/vpnc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

#Install vpnc on Mac OSX El Capitan

####Install via Homebrew

  1. Press Command+Space and type Terminal and press enter/return key.
  2. Run in Terminal app: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null and press enter/return key. Wait for the command to finish.
  3. Run: brew install vpnc
  4. Jump down to 'configure vpnc' section below

####Alternate method using MacPorts (Note: You may want to do this anyway as these tools are very handy)

  1. Install the Apple Xcode development system either through the app store or through Apple developer download page (search for xcode as well as the Command Line Tools). At the time of this writing, 7.2 was available: XCode 7.2 image and Command Line Tools image Download and Install MacPorts. The easiest method is to download the .pkg file from macports.org: MacPorts Download Install macports (via command line) using the following command: sudo installer -pkg /path/to/package.pkg -target / Run port install vpnc which, at the time of this writing, will install vpnc 0.5.3
  2. Configure vpnc Create a backup of the current default.conf file (typically located in): /opt/local/etc/vpnc/ or /usr/local/etc/vpnc Edit the file (using vi/nano/emacs) to **include the following:
IPSec gateway xx.xx.xx.xx
IPSec ID youridhere
IPSec secret yourpasswordhere
Xauth username firstname.lastname #replace with your personal ID
DPD idle timeout (our side) 0

**PLEASE NOTE: You will receive an error if there are any spaces or special characters at the beginning or end of the lines in each entry. In vi, you can display these characters by typing :set list use :set nolist to turn this option off.

####(Optional) Import the VPN SSL certificate (attached) to your mac

  1. When connecting to your SSL VPN, a message may show regarding the cert not being in the chain may appear. You may install the certificate to your mac so that it is implicitly trusted.

  2. Pull the certificate down utilizing the openssl command (e.g. openssl s_client -connect vpn.xxx.com:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >/Users/xxxxx/Downloads/vpn.xxx.com.pem)

  3. Open the Keychain Access App (Through Finder > Utilities > System > Certificates)

  4. Import the certificate (File > Import Items)

  5. Start vpnc Simply type vpnc at the command line. For debug information (without showing password information in the logs) use vpnc --debug 3

  6. Use vpnc.sh script to stop/start (tested on Mac OSX El Capitan). Feel free to rename this file to whatever you prefer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages