How to setup a Mac Mini Server for VPN using server.app

Hello all,


I have browsed the internet for the past few days trying to find an answer to my question - unable to have any luck so far. Most likely because my knowledge lacks in this department.


I have a Mac Mini server set up that I have successfully configured to be a VPN. A few details which may indeed be my problem but I am here looking for assistance.


1) The VPN is set up and I am able to connect ONLY locally - that is within my network.

2) I do not have a static IP for my server set up(I don't believe so anyways...)

3) I am using a time capsule as my router

4) I can only connect to the VPN using the local IP provided by the time capsule (IE: 10.0.x.x)


So, with this problem in mind - does anybody have some recommended reading or any assistance they can provide? My ultimate goal is to be able to remote access the files on this server.


Thanks!

Posted on Apr 1, 2013 12:38 PM

Reply
1 reply

Apr 1, 2013 4:26 PM in response to PatG9234

You're off to a good start, assuming you can truly connect to your server within your private network.


To get VPN working over a public network, you'll need to do the following:


1. Change your server from an automatically acquired IP address from DHCP, to a manual one. In one of the steps below, you will forward VPN ports from your router at the firewall to your server's private IP address. If your server's address gets changed by your DHCP server, then the forwarding won't work. You can take the automatically assigned address it has now, and convert it to a manual one, keeping the same address.

1a. At your DHCP server (time capsule, for you), configure to reserver the IP address that is assigned to your server, so it can't dynamically assign some other device to that address by accident.


2. At your router/firewall (time capsule for you), manually forward the Ports used for VPN services to the intrnal IP address of your server. I think apple's airport config utility makes this pretty self explanatory.


3. If you suspect there's any chance that your external IP address changes occassionally (many IPS's do this), then sign up for a service like DYN-DNS (free). Once you have an account with them, you run the DYNDNS daemon on your server. It will ascertain the external IP address of your network, and forward this info to the DYNDNS server. when you try to connect to <youraccountname>.dyndns.org, it will automatically redirect you to the public IP address of your server.


Once you do step 2 above, the public will begin probing your server. It's remarkable how quickly it begins. Use good passwords on your server. Use a good shared secret for VPN. Dont turn on any server services (ex., SSH) that aren't absolutely essential, and if you do, mae sure they have good passwords, and use RSA certificates for them if possible (turning off SSH password access completely).

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to setup a Mac Mini Server for VPN using server.app

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.