Server rentals :: NFOservers.com

Forums
It is currently Sat Feb 06, 2016 3:21 am

All times are UTC-08:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu May 29, 2014 12:34 am 
Offline
This is my homepage
This is my homepage
User avatar

Joined: Wed Dec 28, 2011 4:59 pm
Posts: 849
Location: Knoxville, TN
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.

  1. 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.
  2. Use the script. The script has a GitHub page. Use these commands to download it, make it executable, and run it:
    Code:
    cd;
    wget http://git.io/vpn --no-check-certificate -O openvpn-install.sh;
    chmod +x openvpn-install.sh;
    ./openvpn-install.sh;

  3. 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.
  4. The script generates a tar.gz file named something similar to ovpn-client.tar.gz. 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:

    1. Downloading and installing the OpenVPN software (you only need the client component of this).
    2. Downloading the .tar.gz file to your desktop through a software such as WinSCP.
    3. Extracting the files from this archive using software such as 7-zip and changing the extension of the .conf file to .ovpn.
    4. Right-clicking the .ovpn file and selecting "Start OpenVPN on this config file" to connect to your new VPN.

  5. 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.


Top
   
PostPosted: Sat Jan 16, 2016 12:30 pm 
Offline
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 11058
Location: Seattle
Another way to go is to use the OpenVPN Access Server. This is a special OpenVPN package that comes with a UI and easy pre-configured client downloads. The main limitation of OpenVPN AS is that it requires the purchase of licenses if more than two users need to connect at once -- so, we recommend it mostly for personal VPNs.

To get up and running with OpenVPN AS:

  1. Visit https://openvpn.net/index.php/access-se ... as-sw.html
  2. Select the OS that you have installed on your service (we recommend defaulting to Debian, if you haven't chosen already).
  3. On the next page, right-click on the OS version that you installed and choose "Copy link location" or the equivalent in your browser.
  4. Open an SSH window to your service using PuTTY.
  5. Type "wget " and then right-click in the window to paste in the link that you copied. It should now download the file.
  6. Use your package manager to install the package that it downloaded. For instance, in Debian, type "dpkg -i openvpn" and then press the tab key to complete the rest of the filename, before pressing enter.
  7. It will show you some brief notes, including the URLs to web UIs. Save these to a text document somewhere so that you'll always have them (you can copy to the clipboard by highlighting the lines in PuTTY).
  8. Set a password for your new openvpn user using the passwd openvpn command. Linux will ask you twice what to use. Make sure to use a good-quality password to prevent others from using your VPN!
  9. Visit the "Client UI" link that the package gave you when you installed it. Your browser should warn you that the certificate has a problem. Tell it to add an exception for this site. (Your browser is just warning you that the certificate is self-signed, but it's OK for it to be self-signed.)
  10. The page will show a "click here to continue" link which allows you to download the client through your browser. Download this and install it.
  11. After the install finishes, run the "OpenVPN Connect" application. It will ask you if you want to connect to the server and ask you for your username and password. The username is "openvpn" and the password is the one you chose previously.
  12. The connection should succeed. You can then visit a site like https://www.google.com/#q=what+is+my+ip to check your public IP address. It should show the IP address of the VDS and not your real client IP address. (Note any connections that you already have open will continue to use your old address, however.)

OpenVPN Connect also has a client available for Android and IOS that you can find through the store for each device.

OpenVPN Connect has an admin interface that it links you to, where you can change a variety of advanced settings.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC-08:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited