Site icon ChrisWrites.com

Turn an old mac into your own Virtual Private Network (VPN) Server

Virtual private networks (VPNs) use data encryption and tunnelling to help keep you safe online.

Having your own VPN can be invaluable if you regularly use unsecured public networks such as Wi-Fi hotspots, as you can use the unsecured network to create a secure connection to your VPN. VPNs can also be handy for connecting to your home computer from anywhere in the world, providing you with remote access to all of your computer’s files and folders.

While you could sign up for a ready-made VPN service, trusting a third party with your online safety can be daunting, plus VPN providers typically operate on a subscription model, which means VPNs are often an ongoing expense.

So, why not setup your own VPN server?

In this article, I’m going to show how to turn a second hand Mac into a VPN server that you can access from anywhere in the world.

What you’ll need

In order to create your VPN server, you’ll need the following:

Setup Port Forwarding

The first step, is configuring your router to allow incoming connections on certain ports.

If you’re using an Apple AirPort router, then this process is largely automated:

If you’re using anything other than an AirPort, then you’ll need to setup port forwarding manually. Every router is different, so although I’m outlining the steps you’ll typically take, this process will vary between routers. If in doubt, consult the documentation for your specific router.

macOS Server requires four open ports, so create the following:

UDP 500.
UDP 1701.
TCP 1723.
UDP 4500.

Replace your IP with a static host name

Next, you’ll need to generate a host name so that you can access your server remotely. While you could use your IP address, this address changes over time, so for the best results you should create a host name, which never changes.

You can use any name you want, but to make your life easier you should choose something that’s easy to remember!

Enable the VPN

Now you’re ready to setup your VPN:

Using your Virtual Private Network

It’s time to put your VPN to the test, by connecting to it from another Mac:

Exit mobile version