💻↔️🖥️ Setting Up an OpenVPN Connection (Configuring Server & Client) in 2021

preview_player
Показать описание
👍 Watch how to set up an OpenVPN server for Windows and configure an OpenVPN client, and how to organize data exchange channels between remote offices. Sometimes people need to establish a link between remote computers without spending extra money on equipment and software. In doing that, a well-known free program OpenVPN can help a lot, as it provides free implementation of the VPN - virtual private network technology.

Content:
0:00 - Intro;
1:31 - OpenVPN setup
2:25 - Run command line
7:29 - Formation of client keys
8:55 - Creating a server and client configuration file
13:07 - Create file without extension
16:41 - Enabling Routing and Remote Access Service
17:27 - Configuring firewalls and antiviruses on the client and on the server for the smooth passage of packets

Configuration file for server:
proto tcp4-server
dev tun
tls-server
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ServerVPN.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ServerVPN.key"
server 10.10.10.0 255.255.255.0
client-to-client
keepalive 10 120
cipher AES-128-CBC
comp-lzo
persist-key
persist-tun
client-config-dir "C:\\Program Files\\OpenVPN\\config"
verb 3
route-delay 5
route-method exe
push "route 192.168.0.0 255.255.255.0"
route 192.168.182.0 255.255.255.0

Additional configuration file for server:
ifconfig-push 10.10.10.5 10.10.10.6
iroute 192.168.182.0 255.255.255.0
# disable

Configuration file for client:
remote 176.122.115.66
client
port 12345
proto tcp4-client
dev tun
tls-client
remote-cert-tls server
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450

cert "C:\\Program Files\\OpenVPN\\config\\ClientVPN.crt"
key "C:\\Program Files\\OpenVPN\\config\\ClientVPN.key"

cipher AES-128-CBC
comp-lzo
persist-key
persist-tun
verb 3
mute 20

That’s all. As you can see, a VPN connection with OpenVPN is created. Computers can access each other in both directions.
Hit the Like button and subscribe to Hetman Software channel. Ask questions in your comments. Thank you for watching. Good luck.

Other videos: #Windows10, #VPN, #Server, #Client, #OpenVPN.

Рекомендации по теме
Комментарии
Автор

Content:
1:31 - OpenVPN setup
2:25 - Run command line
7:29 - Formation of client keys
8:55 - Creating a server and client configuration file
13:07 - Create file without extension
16:41 - Enabling Routing and Remote Access Service
17:27 - Configuring firewalls and antiviruses on the client and on the server for the smooth passage of packets
17:58 - Launch OpenVPN Gui or Client.ovpn.

Watch how to set up an OpenVPN server for Windows and configure an OpenVPN client, and how to organize data exchange channels between remote offices. We will be glad to answer any questions in comments.

HetmanRecovery
Автор

clear enough to be followed... much easier to understand than the notes on openVPN website... tq so much!

KurayamiJenkin
Автор

I understood nothing, but i see that it works lmao

nightmarenova
Автор

Hi!, good tutorial thanks!, i´ve a question, this is config one server many clients?, or is only one server -to-one Client?, im asking this because 14:02 you are configuring 2 ips only, or it is a range that can be from 10.10.10.5 to 10.10.10.254 for example?. Regards!.

leonardobaini
Автор

Great tutorial. just one question regarding the subnets in the server/client config. Is the 192.168.0.0 255.255.0.0 represent the local subnet on which the Server is connected ? i.e what I would get from an ipconfig. Not clear where the 192.168.182.0 came from is it the subnet we allow the client to have access behind the server?

maxcasseus
Автор

tnx my friend for this video its very helpful but i have a question : it is working on windows 7 ?

OssamaAouinty
Автор

Cool, will have to try this but there is a new version now. The init-config.bat isn't there😔.
What is in this file and is it important?

mickwolf
Автор

Excellent your video tutorial, my helped a lot, thank you! Forgive my English I am not fluent and I used Google Translator ... I am from Brazil and only with your video tutorial that I managed to make openVPN work ... maybe you have some material that teaches server-to-serve using Linux would be very thankful!

rjdiniz
Автор

This tutorial is the best! Thank you very much, you helped me after a few days of trouble.

KDFOXSCI
Автор

Where is the CONFIG folder? Created one placed my .ovpn file in there and all other places possible! Reboot OpenVPN many times! Connect still Grayed

Popart-xhfd
Автор

It is outdated. Can you update video for EasyRSA 3 ?

ugurtoprak
Автор

Worked exactly as presented. Thanks a lot.

antoniogerardo
Автор

Great tutorial, thanks !!
Only one question... does the "ta.key" file should be generated for every different client, just like ClientVPN* files does ?

MarioDanielCarugno
Автор

Such a Magic Tutorial!! Thanks a lot, this kind of High Quality content is so much appreciated!! Thank You !! :)

rubendleonb
Автор

C:\Program
'init-config.bat' is not recognized as an internal or external command,
operable program or batch file.

RahimPashaKhajei
Автор

init-conif not is not recognized as an internal or external command,
operable program or batch file.

techsupport
Автор

Every single time that I need to config a OpenVPN server, I separate like 4 hours, prepare coffee. and try to be focused... 99% of all this editing an generating, could be do by the installer. There is some "easy scripts" for linux too. I guess the keep this super complicated just to justify a "network engineer" title. Thanks for the guide, I never installed on windows

koryyyy
Автор

Hey bro! Nice tutorial man!
But, how do I get configuration files for iphone or android cleints?

IjazAhmedShariff
Автор

Also, can you explain how to forward DHCP from the server router rather than the 10.10.10.0 subnet

derekgreig
Автор

May I know what is the configuration for multiple client? Do I need to generate a new client key and assign a range of ip available for multiple clients to use?

fanwahchen