Setting up Mac OS X Server as VPN Endpoint – Mavricks Server 10.9

General

Here is the nitty gritty.

DNS Setup

  • setup DNS either outside your network (advanced) or
    • or you have to setup DNS on the server to point to itself and then the router and/or external DNS – you can use google 8.8.8.8
    • if you don’t do this – the command changeip -checkhostname will give diff Current HostName and DNS Hostnames – this is not good
    • you should see

[csharp][/csharp]

bash-3.2# changeip -checkhostname

Primary address     = 192.168.2.2

Current HostName    = machinename.subdomain.mydomainthatibought.com
DNS HostName        = machinename.subdomain.mydomainthatibought.com

The names match. There is nothing to change.
dirserv:success = “success”

[/csharp

  • if the DNS HostName is not what it should be – set up DNS – because the computer is traversing DNS servers and it finds someone has stored the wrong name somewhere. So if it is your router and you can clear it, great – otherwise you have to work around this- well setting up your own DNS server is best. Follow this advice http://labs.hoffmanlabs.com/node/1436
  • Current HostName  off? Change it in the main server Settings or run the advice given by the changeip command above.
    • /Applications/Server.app/Contents/ServerRoot/usr/sbin/changeip 192.168.1.2 192.168.1.2 wrong.name.com  right.name.com

Configure Sharing

  • we setup a vpn group and added users to it
  • configure that group to have access to a file share on the mac (System Prefs -> Sharing ->File Sharing and add that user as Read/Write to that group

This gets PPTP working. Using WIndows you can set up an FTP config and use it with all default settings.

On a mac – there are lots of articles that tell how to do this.

Other Links: