How do I set up a VPN (openVPN) on my VDS?
Posted: Thu May 29, 2014 12:34 am
Setting up a VPN on your VDS can be a challenging task. Fortunately a 3rd-party script exists for Debian-based installs [this includes Ubuntu] which can take care of setting this up for you.
- Log in to your VDS using SSH using software such as PuTTY. The login information is listed on the "Server control" page in your NFOservers control panel.
- Use the script. The script has a GitHub page. Use these commands to download it, make it executable, and run it:
Code: Select all
cd; wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh
- The script will ask you a series of questions and walk you through setting up your VDS as a VPN server. Using the default answers for these should work on most basic configs. You may need to specify the desired IP if you are using more than one on your VDS.
- The script generates a file named something similar to client.ovpn. That file contains all the necessary config files and certificates for connecting to your VPN. Download it and set your VPN client to use these.
Specifically, on Windows, you can set up your client by:
- Open your preferred browser navigate to a site such as http://whatsmyip.org/. It should show that your IP now matches that of your VDS.