SECTION 1 – Setting Up a Static IP for the Server on the LAN Side

These instructions should be completed on the machine that will become the VPN server.


Open Network Preferences

media_1365280662765.png

Select Advanced

media_1365280675209.png

Copy the Mac Address

media_1365280721095.png

Open AirPort Utility

media_1365280516371.png
Click on your router, in my case it’s called White Dart.

Select Enter Router Password

media_1365280554220.png
Enter your password when prompted and click OK.

Select Edit

media_1365280584891.png

Select the Network Tab and Click the + Button

media_1365280882600.png

Paste in the Mac Address You Copied Earlier

media_1365280918919.png

Select Update

media_1365280952190.png

Select Continue

media_1365280961141.png
Quit Airport Utility when this operation completes.

SECTION 2 – Creating Account at No-IP.com

media_1365281321183.png
Navigate to http://www.noip.com and select Sign Up.

Create a Username and Password

media_1365281419227.png
Enter your Email address. Note the host name shown which is free, but if you want to pay you can get more options. Scroll down to the bottom of the page.

Select Sign Up

media_1365281428527.png

Email Confirmation Will be Sent

media_1365281518624.png

Click the Link in the Email

media_1365281542237.png

Download the Update Client

media_1365281570364.png
This client will run in the background and check to see if your IP address has changed, and if it has, will send it to no-ip.com

Download and Install the Client

media_1365282117739.png

Enter Your No-iP.com Account Info You Just Created

media_1365282485030.png
This menu should pop up automatically.

Click OK

media_1365282491538.png

Click on Hosts and Check the Box Next to the Host Name You Chose

media_1365282517357.png
It may take a few moments for the host name you selected at no-ip.com to show up. Make sure you note this name, you’ll need it later.

Select Update Now

media_1365282533083.png

Turn on the Daemon

media_1365282588526.png
I chose this rather than running the application in the background all the time.

SECTION 3 – Installing Xcode and Running Command Line Tools

Find Xcode in the Mac App Store

Install Xcode

media_1365282711107.png

Install Java

media_1365284749241.png
Xcode only installs the standalone Java, and it does NOT include the Java Web plugin that has been the subject of so many security vulnerabilities lately.

Select Install Next to Command Line Tools

media_1365285864062.png
Wait till the installation finishes and quit X-Code

Type xcodebuild -license to Open the License Agreement

media_1365287350119.png

Start Hitting the Space Bar to Scroll Through the EULA – A LOT of Times

media_1365287366580.png

Type Agree

media_1365287392448.png
Type agree

Joy of Agreement

media_1365287403891.png

SECTION 4 – Installing MacPorts

media_1365287788717.png
Navigate to https://distfiles.macports.org/MacPorts/ and scroll to the bottom to download the installer file for your OS.

Install MacPorts

media_1365288008992.png

Enter These Commands in the Terminal

media_1365288274692.png
To run the self update to Macports enter:
  source ~/.profile
then
  sudo port -v selfupdate

and enter your administrator password

Success

media_1365288401688.png

Open the VPN Software

media_1365288464077.png
Enter
  sudo port -v install openvpn2

and watch a lot of glop go by…

SECTION 5 – Installing Tuntap Drivers

media_1365288693615.png

Open the Package File (in the folder after tuntap expands)

media_1365288872704.png
Gatekeeper won’t let you just double click on the installer package (it will complain that it is from an unknown source), you have to right click on the installer package and choose “open”.

SECTION 6 – Donald’s Nifty Scripts of Doom

Download Donald’s scripts from: https://dl.dropbox.com/u/169813/openvpn-mac.tar.bz2

Type These Commands to Unarchive the Scripts

media_1365289258876.png
cd ~/Downloads
tar xvjf openvpn-mac.tar.bz2

Setting Up OpenVPN Server

media_1365290046566.png
We’re now going to run Donald’s scripts. Enter this command:
  cd openvpn-mac && sudo bash setup-openvpn-server

Name your Server (I’ve entered kyles-mac-vpn)
Enter the dynamic dns host name you noted back on no-ip.com (you DID note it, right?)

Keep Answering Questions

media_1365290326768.png
The first time through you need to answer these. These steps will be duplicated MANY times, but after this the answers will be there and you can simply hit Enter for each questions.

Hit Enter for All These Questions for an RSA Key

media_1365290494060.png

And Again for Some Reason

media_1365290461185.png

Keep Answering…

media_1365290595513.png

And Again

media_1365290809777.png

And Again…

media_1365290886144.png

Whew!

media_1365290948754.png
Enter passphrase and password as many times as they ask for it!

Finder Window Opens Showing config-files

media_1365291120916.png
Copy this file to Dropbox. It will be the first connection file you test. It would be good to name it something associated with the device on which you’ll use it (you’ll be creating one of these for each of your devices).

Create a New VPN Connection Document for Each Device You Have

In Terminal, enter:
  sudo setup-openvpn-client connection-name

where connection-name means something to you for each different device you’ll want to connect to the VPN server. Move each of these files to Dropbox to be picked up on your devices.

SECTION 7 – Opening up UDP Port 1194

media_1365291286486.png
Open Airport Utility again, select your Airport again, Select Edit again. Select the Network tab, and select the + under Port Settings

Enter Information As Shown

media_1365291365335.png

Select Update

media_1365291371431.png
Wait until your Airport updates.

SECTION 8 – Install VPN Software on iOS

IMG_5127.png
Download OpenVPN Connect from the iTunes App Store.

Open Dropbox

IMG_5128.png
Find the file you created and moved into Dropbox and tap on it.

Select the Open In Button in the Bottom Right

IMG_5129.png

Select Open in OpenVPN

IMG_5130.png

Click the Green Plus Button to Import the File

IMG_5131.png

Enter the Password

IMG_5133.png
Enter the Password you created in the creation of the file, and tap the Save switch to turn it on. Finally tap the Off Switch to Connect to the VPN.

Connected!

IMG_5134.png

SECTION 9 – Install VPN Software on OSX

media_1365292563757.png
Two options for a VPN application on the Mac. Donald recommended Viscosity from http://www.sparklabs.com/viscosity/download/ which is $9 per Mac.
After the show Dr. Matt suggested the free TunnelBlick from http://code.google.com/p/tunnelblick. I installed both and they both work well. This tutorial will be for Viscosity, but if you try Tunnelblick you have to do one thing to make it work. In the Settings, Configuration tab, select Advanced and then uncheck the box to use TunnelBlick’s tun/tap drivers.
Let’s keep going with Viscosity as our example.

Install Viscosity

media_1365292763152.png
Click on the icon for Viscosity in the menubar and choose Preferences.

In the Connection Tab Click on the Plus Button at the Bottom

media_1365292787379.png

Select Import Connection From File…

media_1365292806653.png

Navigate to the File You Created for This Device

media_1365292836675.png
In my case I called it alsmac so I could tell which one to open

Connection Imported

media_1365292845976.png

Connect Using Menu Bar App

media_1365293050152.png

Enter the Password You Created

media_1365293071771.png

Post a Comment

 
Top