Knowledgebase
Orbitalunderground [HD] Productions > Orbitalunderground [HD] Productions - Help Desk > Knowledgebase

Search help:


Install OpenVPN FAST & SECURE(UPDATED SEPT 2018)

Solution

QUESTION: 

Where do I get a VPS to run this on?

ANSWER:

YOU SIMPLY CANNOT GET A BETTER UNMANAGED VPS FOR YOUR MONEY THAN RIGHT HERE (YEAH, CLICK!)

ON WITH THE INSTALL: 

First, get the script and make it executable :

wget https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh

Then run it :

./openvpn-install.sh

You need to run the script as root and have the TUN module enabled.

The first time you run it, you'll have to follow the assistant and answer a few questions to setup your VPN server.

When OpenVPN is installed, you can run the script again, and you will get the choice to :

  • Add a client
  • Remove a client
  • Uninstall OpenVPN

In your home directory, you will have .ovpn files. These are the client configuration files. Download them from your server and connect using your prefered OpenVPN client.

 

HUGE THANKS TO Stanislas Angristan

 

 

 

------OLD (PRE-SEPTEMBER 2018) WAY-------

change your root password, and update your packages:

apt-get update

apt-get upgrade

Download It:

Debian 7 32/64-bit:

64 bit:

wget http://swupdate.openvpn.org/as/openvpn-as-2.1.12-Debian7.amd_64.deb

32 bit:

wget http://swupdate.openvpn.org/as/openvpn-as-2.1.12-Debian7.i386.deb 

Ubuntu 14 32/64-bit:

64 bit:

wget http://swupdate.openvpn.org/as/openvpn-as-2.1.12-Ubuntu14.amd_64.deb

32 bit:

wget http://swupdate.openvpn.org/as/openvpn-as-2.1.12-Ubuntu14.i386.deb 

CentOS 6 32/64-bit:

64 bit:

http://swupdate.openvpn.org/as/openvpn-as-2.1.12-CentOS6.x86_64.rpm

32 bit:

http://swupdate.openvpn.org/as/openvpn-as-2.1.12-CentOS6.i386.rpm

Install it:

Debian 7 32/64-bit:

64 bit:

dpkg -i openvpn-as-2.1.12-Debian7.amd_64.deb  

32 bit:

dpkg -i openvpn-as-2.1.12-Debian7.i386.deb   

Ubuntu 14 32/64-bit:

64 bit:

dpkg -i openvpn-as-2.1.12-Ubuntu14.amd_64.deb  

32 bit:

dpkg -i openvpn-as-2.1.12-Ubuntu14.i386.deb

 

When finished, you should see the link to access your OpenVPN admin panel. Something like this:

https://xxx.xxx.xxx.xxx:943/admin

before continuing, change the password for the openvpn user.

Type:

passwd openvpn  

and choose a new password. You will need this for access to the admin panel.

Next navigate to the link given above for the admin panel, login and accept the license agreement.

You should now see your servers status overview page.

To download the client for your computer, access the link above without "/admin". (ie: https://xxx.xxx.xxx.xxx:943/ )

And that is it... now you can enjoy a fast and secure connection with OpenVPN-AS while using minimal resources.

----------------------------------------------------------------------------------------------

Additional Notes:

It is important to keep your Linux server up to date with security updates, Linux Distributions like Ubuntu and Debian release updates daily, here is an option to install security updates automatically.

1) Install the unattended-upgrades package with apt.

sudo apt-get install unattended-upgrades

2) To enable the unattended-upgrades function, run:

sudo dpkg-reconfigure --priority=low unattended-upgrades

Choose "Yes" here and press enter. 

This will create a new file /etc/apt/apt.conf.d/20auto-upgrades which activates the auto update function.

3) Adjust the update options in the file /etc/apt/apt.conf.d/50unattended-upgrades

nano /etc/apt/apt.conf.d/50unattended-upgrades

The default setup, which should work fine in most cases, will be this:

Unattended-Upgrade::Allowed-Origins {

 "${distro_id}:${distro_codename}-security";

// "${distro_id}:${distro_codename}-updates";

// "${distro_id}:${distro_codename}-proposed";

// "${distro_id}:${distro_codename}-backports";

};

This means that only security updates will be installed automatically.

This is the safest option as security updates should never break the existing server setup. 

If you like to install normal updates automatically as well, then remove the // in front of the "${distro_id}:${distro_codename}-updates" line.

Article details
Article ID: 1
Category: Knowledgebase

 
« Go back