First of all, if you don’t know about VPN and how it works. please watch this video:

http://https://www.youtube.com/watch?v=NWT4jW9kKow

now that you know about VPN and how it works, we can start our tutorial.

 

STEPS:
in this tutorial, we will need to port forward. if you haven’t read our previous posts yet, you won’t be able to understand anything. READ_HERE

step.1

download the requirements:

  1. OpenVPN
  2. easyrsa
apt-get install openvpn easy-rsa

3.ngrok-   how-to-use-perform-port-forwarding

step.2

download this script and make it executable

git clone https://github.com/angristan/openvpn-install
chmod +x openvpn-install.sh

step.3

before running the script we will forward the 1194 port using ngrok. why don’t you do it yourself? because it is not that hard. READ_HERE for ngrok tutorial. if you are not able to do it, comment to us, we will help you.

NOTE- don’t forward an HTTP port.

by the way, if you are rich you can use Digital-ocean. then, you don’t need to forward any port.

 

step.4

now run the script. it will ask you some questions

the remote IP address – the ngrok IP that you get during port forwarding.

the port – default 1194

the client name – choose whatever you want.

protocol – use TCP because the port you have forwarded is a TCP port.

now it will  create an ovpn file and you can be connected to your VPN using  that file

use this command to use a VPN in another pc

openvpn --config <ovpn-file-name>

 

 

Thanks For Visiting.

LEAVE A REPLY

Please enter your comment!
Please enter your name here