Ubuntu 22.04
Sponsored Link

OpenVPN : Configure VPN Client2022/09/14

Configure VPN Client. This example is on Windows 10.
This example is based on the environment like follows.
By settings of OpenVPN Server/Client, [tun] interface will be configured automatically and when connecting with VPN from Client to Server, Client can access to the the local network of the Server.
On this example, it needs to set IP Masquerading on Router, too.
  | [  OpenVPN Server  ] |
  |    dlp.srv.world     +--------+
  |                      |tun     |
  +-----------+----------+        |
        enp1s0|          |
              |                   |
              |  Local Network    ||                   |
       +------+-----+             |
-------|   Router   |-------------|-----
       +------+-----+             |
              |                   |
              |  Internet         |
              |                   |
              |  Local Network    ||                   |
  +-----------+----------+        |
  |                      |tun     |
  |      VPN Client      +--------+
  |                      |192.168.100.x

Download OpenVPN client from the site below and install it.
⇒ https://openvpn.net/community-downloads/
[2] After installing OpenVPN client, copy the file [client.ovpn] which is under the [C:\Program Files\OpenVPN\sample-config] into [C:\Program Files\OpenVPN\config] and rename it to the name which you named when created client certificates on the VPN Server.
Furthermore, copy files [ca.crt], [client1.crt], [client1.key], [ta.key] which you created on the server to the same folder like follows.
[3] Open the file [client.ovpn] (the name is before renaming) with text editor like notepad and edit like follows.
# OK with default
# protocol which you specified in the server's config
;proto tcp
proto udp
# OpenVPN server's global IP and port (replace to your own environment)
remote 1194
# retry resolving
resolv-retry infinite
# no bind for local port
# enable persist options
# path to certificates
ca ca.crt
cert client1.crt
key client1.key
# path to TLS-Auth key
tls-auth ta.key 1
# log level
verb 3

[4] Start [OpenVPN GUI], then the icon of it will be shown in Taskbar, right-click it and select [Connect] like follows.
[5] After connecting successfully, the status will be [Connected].
[6] After connecting, TAP adapter is added like follows.
[7] It's possible to access to OpenVPN server with their local address.
Matched Content