Sofia
Bulgaria 1000
8835.1001289.0363
sales@linuxssdvps.com
support@linuxssdvps.com

How To Setup an OpenVPN Server on VPS using CentOS 6

Besides of using 3rd party VPN providers, we will show you how to turn your VPS to VPN server for free.What is VPS? You are renting some of the resources on a dedicated server run by a VPS provider company, which provides a closed environment that acts as if it was normal dedicated server. You can install any operating system on a VPS (we currently support only Linux OS) , and basically treat the VPS as your own personal remote server.

In Part 1 (basics) of this guide we will demonstrate you how to install OpenVPN Access Server software on an VPS running CentOS 6, and how to connect to it using the OpenVPN Connect client.

Benefits of VPN on a VPS

Acts as an proxy-server, so ideal for accessing georestricted services as long the VPS is positioned in the country you wish to access the services from
The VPS provides a private IP address, so the IP address will not be blocked by services such as Hulu, or by most firewalls. This makes it a great anti-censorship option (and will work against IP blocks in China, although will not defend against other censorship measures such as packet sniffing)
All bandwidth (traffic) between your pc and the VPS goes through an encrypted VPN tunnel. For as long as the VPS is located outside an adversary’s area of influence (for example if someone in Iran wishes to evade government censorship and so sets up a VPS server located in Europe) it will provide a high degree of privacy
VPN on VPS also provides protection against hackers when using public WiFi hotspots
Can be cheaper than VPN.
Disadvantages

Due to the fact the VPS provides a static IP address that belongs to you, a international adversary (such as the NSA or police forces with an worldwide reach) can quickly trace internet activity back to you
Unsuitable for copyright piracy – copyright holders will send DMCA notices (and similar) to your VPS provider. Unlike VPN providers who often keep no logs and use shared IPs to shield customers from these, VPS providers almost all take very dim view of piracy, and will likely shut down your account (and very possibly pass on your details to the copyright holder ). Here is time to inform you that we are NOT keeping any logs of our clients! Linux SSD VPS is 100% Offshore Hosting Provider.

Not for the technically fainthearted – we believe to make the setup process as smooth as possible with these guides, but it does require a reasonable degree of technical know-how, and will require getting our hands dirty with a command line.

What you will need

A VPS server with CentOS 6 (32- or 64-bit) installed, and a minimum of 218MB RAM.
-Order your VPS from us – Click here to view our plans
An SSH client – OSX and Linux users have one already, in the form of Terminal. Windows users can download the excellent PuTTY (which we use for this demo).

Installing OpenVPN on the VPS

Open your SSH client and connect to your VPS server using the IP address supplied by us.

Terminal users have to enter ssh -l user ip.address and enter your details when you get the response:

ip.address/
/username/

2. Login as root and enter the password you were given. Note that in PuTTY the typed password remains hidden, so just type it and hit <enter>.

3. Before proceeding you should check that tap/tun is enabled. Enter cat /dev/net/tun (in PuTTY you can paste by right-clicking).

If tap/tun is enabled you should receive the response: cat: /dev/net/tun: File descriptor in bad state

(Our VPS servers come with TAP/TUN enabled by default)

4. Then we have to download the OpenVPN Server Access package. Enter:

wget http://swupdate.openvpn.org/as/openvpn-as-1.8.5-CentOS6.i386.rpm (CentOS 6 32-bit) or

wget http://swupdate.openvpn.org/as/openvpn-as-1.8.5-CentOS6.x86_64.rpm (CentOS 6 64-bit)

5. We now have to set up the package using the ‘rpm’ command. Check the line that says ‘Saving to’ to verify package name, and enter:

rpm -i <package name>

e.g. rpm -i openvpnas-1.8.5-1.centos6 x86_64.rpm

Create a note of the Admin UI address and Client UI addresses – you will need them in a minute!

6. Add a password. Enter passwd openvpn, and whatever password you want at the prompt (and again to confirm it).

7. Paste the Admin UI address in to your web browser (from step 5 above), and enter Username: ‘openvpn’ and whatever password you selected into the Admin Login (you may need to ‘Agree to end User License Agreement’ the first time you login).

8. You should now see the OpenVPN Access Server configuration page.

Congratulations, you have installed OpenVPN Server Access on your VPS!


Leave a Reply

Your email address will not be published.

Themetf