MacOS – How to use VPN with OS X Server

macosNetworkosx-servervpnwifi

I have recently set up a server on my Mac mini with the OS X Mountain Lion Server app. I would like to have remote access (from outside of my home's wifi network) to the files and folders in my home folder and shared locations (on the Mac mini), and I understand that to do this I need a VPN connection. I'm not familiar with these kinds of things, and I've been trying to set this up but I can't get it to work.

It's worth mentioning that I don't actually have a registered domain name – the host name is server.example.private (I've replaced "example" with something else). From any computer connected to my home's wifi network I can access the server's wiki by entering "192.168.0.(some number)" into the address box, but I cannot access it by using "server.example.private" (even from the wifi network) – this might indicate what the problem is. Furthermore, I can access my home folder and shared locations using Finder from a Macbook Air (I can only do this when connected to my home's wifi network) by connecting to my Mac mini and logging in – I would like to be able to do this remotely.

I'm probably just doing something really stupid, like not configuring some setting (or perhaps not setting up DNS properly…). Could anyone please explain the steps required to set up VPN (and maybe different aspects relating to/depending upon this)? All the tutorials I've seen so far ask me to register a domain name, and I'm not quite ready to do that yet (I hope that's not the problem). Please let me know if you need any more details.

Thanks.

Best Answer

OSX Server does have several VPN servers in it. You can configure these using Server.app however, if your internal name resolution is broken this is likely to be more trouble.

You'll also need to make sure your Mac Mini's VPN port is available to the internet on a static IP (or dynamic host name).

As an interim step I suggest looking at 'Back To My Mac' which is free as part of iCloud. Technically it uses adhoc ipsec vpn tunnels and gives you an DNS name for each mac set up, effectively bypassing the current internal name resolution issue. e.g. server.12345678.members.btmm.icloud.com Services that you run e.g. web and ssh will accessible.

They're btmm DNS address are not internet routable and don't, generally, require any port forward or static IP addresses. For a couple more technical details check here: https://apple.stackexchange.com/a/53776/46039