MikroTik OpenVPN Setup With Windows Client
MikroTik OpenVPN Setup With Windows Client
Client
April 2, 2018 Abu Sayeed MikroTik Router, VPN Configuration
VPN (Virtual Private Network) technology provides a secure and encrypted tunnel across a
public network. So, a private network user can send and receive data to any remote private
network through VPN tunnel as if his/her network device was directly connected to that private
network.
MikroTik OpenVPN Server provides a secure and encrypted tunnel across public network for
transporting IP traffic using PPP. OpenVPN uses SSL Certificates. So, OpenVPN Tunnel is a
trusted tunnel to send and receive data across public network. MikroTik OpenVPN Server can be
applied in two methods.
Connecting remote workstation/client: In this method, OpenVPN client software installed
any operating system such as Windows can communicate with MikroTik OpenVPN server
through OpenVPN tunnel whenever required and can access remote private network as if it
was directly connected to the remote private network.
Site to Site OpenVPN: This method is also known as VPN between routers. In this method,
an OpenVPN client supported router always establishes an OpenVPN tunnel with MikroTik
OpenVPN Server. So, private networks of these routers can communicate with each other as
if they were directly connected to the same router.
The goal of this article is to connect a remote client using OpenVPN Tunnel across public
network. So, in this article I will only show how to configure MikroTik OpenVPN Server for
connecting a remote workstation/client (Windows Client).
Network Diagram
To configure a MikroTik OpenVPN Tunnel for connecting a remote workstation/client, I am
following a network diagram like below image.
In this network, MikroTik Router (RouterOS v6.38.1) is connected to internet through ether1
interface having IP address 192.168.30.2/30. In your real network, this IP address should be
replaced with public IP address. MikroTik Router’s ether2 interface is connected to local
network having IP network 10.10.11.0/24. We will configure OpenVPN server in this router and
after OpenVPN configuration the router will create a virtual interface (OpenVPN Tunnel) across
public network whose IP address will be 10.10.11.1. On the other hand, a remote laptop
(workstation/client) is connected to internet and wants to connect to our OpenVPN server for
accessing local network resources. We will configure OpenVPN client in this laptop and after
establishing an OpenVPN Tunnel across public network, this laptop will get a MikroTik Router’s
local IP 10.10.11.10 and will be able to access MikroTik Router’s private network.
Click mouse right button on this icon and then click Connect option. OpenVPN Connection
window will appear and it will ask to put your client certificate password that you have
entered at the time of client certificate exportation.
If you put correct password and if everything is OK, your OpenVPN client will be connected and
an OpenVPN tunnel will be created between OpenVPN client and server.To check your
configuration, do a ping request to any remote network workstation or server. If everything is
OK, your ping request will be success.