Hello friend
Welcome to my video
In this video I will show you how to connect your computer from internet using openvpn
Go to openvpn official website and download openvpn last installer
Openvpn is a very powerful VPN which has several advantages
It is free
Compatible with most operating systems
As we want to install openvpn-as server we will choose customize
We enable OpenVPN Service in order to make it work at boot
And we install EasyRsa in order to be able to create server and clients certificates
First
Server configuration
Open a command prompt as administrator
Next
Setting up certificate Authority and generating certificates and keys for server and clients
Here we will set up a pki to be able to create our server and clients certificates
And type the following commands to enter inside EasyRSA shell
Remove existing configuration
Initialize pki
And type yes to confirm
Build certificate Authority
Build server certificate and key
Generate diffie-hellman parameters
Generating client certificates
Copy the server configuration file to Server folder
Copy the client configuration file to client folder
Create a notepad file with the content as above
You can get this file in the description of this video
Then save it with name server.ovpn
Next copy the server configuration file to config folder
Next
Copy the server configuration file to configure-auto folder
Next, set a static IP address on Windows
We need to open 1194 udp port to allow OpenVPN clients connections
Click on advanced settings
Now click on “Inbound Rules”. Next click on the “Actions” menu and then click on “New Rule…”
select the “Port” option
Select “UDP”. In the “Specific remote ports” space, enter 1194
Now select “Allow the connection”. Apply the rule to everyone
In the Name fields, enter anything you want
If your server is behind a router,
you will need to forward the port chosen for OpenVPN to the server
This is my public ip address,
I will use this for the next step
Then
Restart the openvpn service
Open run and type "services.msc"
Find the openvpn service and restart it
Now, Client configuration
We will download the same package as the server and here install with default parameters
Create a notepad file with the content as above
Enter the public ip address you got from the previous step. You can get this file in the description of this video
Then save it with name client.ovpn
With the client configuration files we get from the server,
we will client configuration
Next copy the client configuration files to config folder
Click connect to establish the openvpn connection to the VPN server
You can now connect your computer from internet
As always
If you found this post useful
and subscribe to my YouTube channel