VPNs on OS X

Are really easy to setup! No really:

  1. Open Internet Connect
  2. Choose “New VPN Connection” from the file menu
  3. Enter your VPN server, user name and password details
  4. Hit connect

This gave me a connection, but it also jiggered my routing table so that I couldn’t see the internet. route made short work of this problem however:

  1. route delete default
  2. route add default $ROUTER_IP
  3. route add $FOREIGN_NETWORK $VPN_IP

Luckily the network I’m connecting to uses a different class C IP range, so the routes were easy to add. If there had been an address space clash I would have had to specify routes for the individual hosts in their network I guess.

Now that’s all set up, time to load nmap :-)