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

Veronika Shmatko
Hetman Software Video
2 min readNov 23, 2019

👍 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.

In our channel, you can already find a video on how to create a VPN server with standard Windows tools and how to connect to such server from another PC. You will find the link in the description: https://www.youtube.com/watch?v=YH2nmDOYoz0

Accidental deleting of files, formatting the hard disk, a virus attack, an operating system failure or file system failure — these are only a few problems that can be solved with programs by Hetman Software: https://hetmanrecovery.com/

OpenVPN official website: https://openvpn.net/community-downloads/

How to Run Command Prompt as Administrator in Windows 10, 8 or 7 — https://www.youtube.com/watch?v=E-9uRvsMQmk

How to Display and Change File Extensions in Windows 7, 8 and 10 — https://www.youtube.com/watch?v=8Az0qyyZTJs

How to Setup Port Forwarding — https://www.youtube.com/watch?v=YH2nmDOYoz0

How to reserv an IP address to a computer — https://www.youtube.com/watch?v=2-gFrpI0GxU

Configuration file for server:

proto tcp4-server

dev tun

tls-server

tls-auth “C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ta.key” 0

tun-mtu 1500

tun-mtu-extra 32

mssfix 1450

ca “C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt”

cert “C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ServerVPN.crt”

key “C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ServerVPN.key”

dh “C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\dh4096.pem”

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

tls-auth “C:\\Program Files\\OpenVPN\\config\\ta.key”1

remote-cert-tls server

tun-mtu 1500

tun-mtu-extra 32

mssfix 1450

ca “C:\\Program Files\\OpenVPN\\config\\ca.crt”

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.

--

--