Install OpenVPN on Your VPS

Peace, mercy and blessings of God
Today we going to Explain how to install OpenVPN server on your VPS to use as a personal VPN for you to change your IP and surf the Internet safely.
To be able to use it on your computer or mobile devices
First: The server must clean not use Apache before , to not cause a conflict between them
(They may work together at the same time, but this is not what we are going to explain today)
Works On these Systems
Ubuntu Debian Redhat Centos
open this page
https://openvpn.net/vpn-software-packages


select the system you need

OpenVPN-Suppored-Systems

for example I selected Centos 

openvpn-centos
Select your version

the command will be shown

 

yum -y install https://as-repository.openvpn.net/as-repo-centos8.rpm
yum -y install openvpn-as
do them on your server using ssh
after Installation this links will shown
Admin  UI: https://xx.xx.xxx.xxx:943/admin
Client UI: https://xx.xx.xxx.xxx:943

instead of x will be your server IP


Second: Setup openvpn Passwird

Use this command
passwd openvpn

it will ask you for password twice

third : go to Admin URL in your browser 
username is openvpn
password is what you wrote in the previous step

from the left menu select Management and User Permissions


select on Allow Auto-login at user openvpn


Press save settings
Update Running Server

after that login to the client page 
https://xx.xx.xxx.xxx:943
same user and password 
click on yourself autologin profile



this file can be used to connect to your server 

you can import it in the program at your pc or mobile and connect the vpn

Note: The free license from OpenVPN allows you to connect to it from two devices simultaneously only. It is not possible to connect to more than two devices unless you purchase their license.

Links of Client Program
Windows 64 bit
https://th3p.com/dl.php?type=d&id=1

Windows 32 bit
https://th3p.com/dl.php?type=d&id=2

Android
https://play.google.com/store/apps/details?id=net.openvpn.openvpn
IOS

https://apps.apple.com/us/app/openvpn-connect/id590379981
  • VPS, OpenVPN
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Install speedtest on Linux Server to test Internet Speed on it

Peace be upon you In this explanation, we show how to install speedtest on Linux servers,...