+44 151 528 8706 [email protected]

How to setup OpenVPN access server

OpenVPN is a virtual private network system that implements techniques to create secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. It implements both client and server applications.

But why do we need a VPN?

The main purpose of a VPN is to hide your online activity. VPNs are often used to guard against hackers and snoops on public networks, but they’re also useful for hiding your IP address, browsing activity, and personal data on any Wi-Fi network — even at home.

Lets take the security of you and your organization to another level.

System requirements
OS: Ubuntu: 20.04 LTS, 18.04 LTS, 16.04 LTS.
Debian: 9, 10.
Red Hat Enterprise Linux: 7, 8.
CentOS: 7, 8.
Cores: 2
Ram: At a minimum, you must start with 1GB of memory, and add approximately 1GB for each 150 connected devices (we recommend starting with 2GB).
Disk: Minimum 16GB of free space, but we recommend 20GB as a minimum.

Installation process:
1.Connect to SSH as root.
2. Update your server.
3.  Execute the following script:

Ubuntu:

apt update && apt -y install ca-certificates wget net-tools gnupg
wget -qO - https://as-repository.openvpn.net/as-repo-public.gpg | apt-key add -
echo "deb http://as-repository.openvpn.net/as/debian focal main">/etc/apt/sources.list.d/openvpn-as-repo.list
apt update && apt -y install openvpn-as

 Debian 9 and 10.

apt update && apt -y install ca-certificates wget net-tools gnupg
wget -qO - https://as-repository.openvpn.net/as-repo-public.gpg | apt-key add -
echo "deb http://as-repository.openvpn.net/as/debian buster main">/etc/apt/sources.list.d/openvpn-as-repo.list
apt update && apt -y install openvpn-as

 

Redhat
yum -y install https://as-repository.openvpn.net/as-repo-centos8.rpm
yum -y install openvpn-as

CentOS
yum -y install https://as-repository.openvpn.net/as-repo-centos8.rpm
yum -y install openvpn-as

After the installation is done, you can visit the GUI, https://yourserver’sIPhere:943/admin

However, you need to login to ssh again and reset the user’s “openvpn” password.
To do so type the following command passwd openvpn 
With the password you type you can now access the administrative part of open VPN.
After logging in there is one settings we need to make sure is activated.
To check that navigate to configuration>VPN settings.

Activate the following option Should client Internet traffic be routed through the VPN? It should be set to Yes.
Hit Save and then press update running server.
Now logout and navigate to
https://yourserver’sIPhere:943
Use the same logins for the administrator to login.
After logging you will be prompted a pop up, it will ask you which OS you use, choose your OS and the OpenVPN client will start downloading, install the client and you’re ready to go.
To test if your traffic is being routed through the VPN, type what is my IP on your browser and if the outcome is your server’s IP, you’re good to go.

Would you like a private VPN setup by a IT professional? [Contact US]

How to start a web hosting business?

A web hosting service is a type of Internet hosting service that hosts websites for clients, i.e. it offers the facilities required for them to create and maintain...

How to install Plesk on CentOS

Plesk is a commercial web hosting and server data center automation software with a control panel developed for Linux and Windows-based retail hosting...

Plesk vs cPanel

When choosing between web hosting control panels, it’s often a toss-up between Plesk or cPanel. Between them, they dominate the market for users looking for account and server...

We're Here To Help!

15 + 1 =

Head Office

Ukshin Kovaçica, 10,000 Pristina, Republic of Kosovo

Call Us

+44 151 528 8706