Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How can I host a VPN from my Mac?

Hi there,


I was just wondering if anyone can tell me how I can use my Macbook Pro to host a VPN from which I can connect my iPhone when I am either out or abroad? I would prefer if it was quite easy to configure users and turn on and off with a GUI being the preferable option, however if I need to run terminal commands then that would not be a problem.


Any help would be appreciated!


Many Thanks!

MacBook Pro with Retina display, OS X Mountain Lion (10.8.4)

Posted on Jul 23, 2013 6:51 AM

Reply
Question marked as Best reply

Posted on Jul 23, 2013 7:52 PM

You need to be an advanced user to do this.


Install OS X Server from the App Store and activate the VPN service.


To run a public VPN server, you need to do the following:

1. Give the gateway either a static external address or a dynamic DNS name. The latter must be a DNS record on a public DNS registrar, not on the server itself. Also in the latter case, you must run a background process to keep the DNS record up to date when your IP address changes.

2. Give the VPN server a static address on the local network.

3. Forward external UDP ports 500, 1701, and 4500 (for L2TP) and TCP port 1723 (for PPTP) to the corresponding ports on the VPN server.

4. Configure any firewall in use to pass this traffic.

5 replies
Question marked as Best reply

Jul 23, 2013 7:52 PM in response to Rdev123

You need to be an advanced user to do this.


Install OS X Server from the App Store and activate the VPN service.


To run a public VPN server, you need to do the following:

1. Give the gateway either a static external address or a dynamic DNS name. The latter must be a DNS record on a public DNS registrar, not on the server itself. Also in the latter case, you must run a background process to keep the DNS record up to date when your IP address changes.

2. Give the VPN server a static address on the local network.

3. Forward external UDP ports 500, 1701, and 4500 (for L2TP) and TCP port 1723 (for PPTP) to the corresponding ports on the VPN server.

4. Configure any firewall in use to pass this traffic.

Aug 10, 2013 4:14 PM in response to Linc Davis

How about instructions for a very long time Mac user (started with a PB 160) who does not get under the hood hardly at all anymore? I understand how to do lots of things, but I would appreciate some between the lines, step by step instructions including definition of terms. Ex: Does gateway mean my router? Does server mean my MacBook Pro? For me these are not self explanatory terms and everything I have found so far is just confusing. Do step-by-step instructions come with OS X Server? If not where can I find more expansive directions. I have a 2012 MacBook Pro running Lion. BTW almost all instructions I have come across say to ask the network administrator for appropriate setup data. Well, I am the administrator...I don't work for or at an organizaiton with an IT department. There does not seem to be clear help out there for us lone rangers. Thanks

How can I host a VPN from my Mac?

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