Workers signifying build your own vpn server

Build your own VPN server.

With the myriad of VPN providers out there, it can be hard to make a choice. Even using a guide to help with the decision of buying a VPN service can sometimes be of little help in buying a VPN service. If your needs are very specific or very general you might want to consider what it would take to build your own VPN server.

By using a little technical skill and a very little money you can build your own OpenVPN server. I’ll show you how using a Linux VPN server at Luna Node and the popular open source OpenVPN software. Once you have your server running, you can use OpenVPN clients on your mobile devices or computers to connect.

1: Buy a VPS to build your own VPN server on

You can use any server you’d like, but I have been running an OpenVPN server on Luna Node for a while now without issues. Therefore I am going to recommend that you use a Luna Node virtual private server to build your own VPN server, but your selection is up to you. I have written a complete step-by-step post on buying and provisioning a Luna Node VPS titled “Using a Luna Node VPS for a VPN Server” here.

This tutorial will take you all the way up to installing and updating your Linux installation in preparation for the installation of OpenVPN.

2: Install OpenVPN

Update the following values to anything you’d like. If you’re the only one that is going to use this VPN you can have some fun with it:

Save the file with Control-X then press Y to save.

This will ask you for the same information you completed in the vars file edit above. It will present what you entered into the vars file as the default answer so you can just hit enter all the way through.

This will begin with the same values as above, but then also ask you for some more information:

I left those blank and it proceeded like this:

I had to answer Y to the signing and commit questions. Done!

That step can take a long time depending on the power of your processor.

This processes looks identical to the server key process described above. You can click through the defaults, leave the last two questions blank, and then press Y twice to sign and commit.

Make the following changes to the server.conf file:

Save those changes, then open the sysctl.conf file:

Save the file and start the OpenVPN Server!

That’s it! You have now learned bow to build your own VPN server!

3: Install a client and connect

There are OpenVPN clients for every platform. Here are links to the major ones:

I use my VPN primarily on my phone and use my phone as a hotspot when away from home. Therefore, I installed the OpenVPN client for Android and created the following profile.ovpn file to import into it:

This file must have an .ovpn extension. Copy it to your Android device, then select the “Import Profile from SD Card’ option in the OpenVPN client. Navigate to this file, press Select and it will import. Then you should be able to simply press the ‘Connect’ button and be on your way!