OVPN Client Setup
OpenVPN (OVPN) provides flexible encrypted tunneling. MikroTik supports OVPN in TCP mode.
Before You Start
- You need a MikRouter remote account with an active subscription.
- Open Winbox and connect to your MikroTik router via MAC or IP address.
- Have the remote's
Connect To,PPP UsernameandPPP Passwordready — all three are on its page under your remotes in the dashboard.
The quickest way: paste one command
:do { /interface ovpn-client remove [find name="mikrouter-ovpn"] /interface ovpn-client add name=mikrouter-ovpn connect-to=test.mikrouter.com port=1194 mode=ip protocol=tcp user=user-ovpn password=pass-ovpn disabled=no :if ([:len [/interface ovpn-client find name="mikrouter-ovpn"]] > 0) do={ :put "MikRouter: OVPN client mikrouter-ovpn added successfully." } else={ :put "MikRouter: ERROR - OVPN client mikrouter-ovpn was not added." } } on-error={ :put "MikRouter: ERROR - could not add the OVPN client mikrouter-ovpn. Check that this RouterOS supports OVPN and try again." }
This script is only a sample — copy the real one from your Quick Setup section.
The terminal confirms it:
MMM MMM KKK TTTTTTTTTTT KKK MMMM MMMM KKK TTTTTTTTTTT KKK MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK MikroTik RouterOS 7.23.3 (c) 1999-2026 https://www.mikrotik.com/ Press F1 for help [admin@hEX] > MikRouter: OVPN client mikrouter-ovpn added successfully. [admin@hEX] >
Prefer to set it up by hand? The steps below do the same thing in Winbox — two tabs and Apply. The values in the pictures are examples; use the Connect To, User and Password from your own remote's page.
Open PPP and press New
Actions
PPP Scanner
Import .ovpn
PPPoE Scan
Configuration
PPTP Server
SSTP Server
L2TP Server
Name it on the General tab
Copy
Actions
Torch
Reset Traffic Counters
| Field | Value | Note |
|---|---|---|
| Name | mikrouter-ovpn | Any name you prefer |
Fill in the Dial Out tab
Copy
Actions
Torch
Reset Traffic Counters
| Field | Value | Note |
|---|---|---|
| Connect To | test.mikrouter.com | Server address from your remote details |
| User | user-ovpn | Your PPP username |
| Password | pass-ovpn | Your PPP password |
Press Apply and watch it connect
Copy
✕ Remove
Actions
Torch
Reset Traffic Counters
If the footer keeps cycling through connecting or shows an error instead, the settings are saved but the tunnel is not up — see the troubleshooting note at the end. OVPN takes a little longer than the other protocols because it negotiates over TCP.
Verify it in the interface list
R (Running) flag in the first column and a status of connected. That flag is the same fact as the RUNNING badge, seen from the other window — if it is missing, the tunnel is down whatever the dialog said a moment ago.Actions
PPP Scanner
Import .ovpn
PPPoE Scan
Configuration
PPTP Server
SSTP Server
L2TP Server
You can also confirm the address the server handed your router under IP›Addresses, on the interface you just named.
Confirm it in your dashboard
MikroTik hEX
4m22s
Remote is available
Expires on one week from today.
Live Connection
Caller IP
203.0.113.45
Location
🇵🇭 Manila, Philippines
ISP
Example Telecom
Organization
Example Telecom Inc.
VPN Credentials
Username
user-ovpn
Password
•••••
Connect To
test.mikrouter.com
Assigned Port
12345
Password shared or exposed? Issue a new one for free. You will need to update the VPN client on your MikroTik afterwards.
Rotate PasswordRemote URL
test.mikrouter.com:12345
Use this address to connect via Winbox, SSH, HTTP, or API.
Need a fresh port? Rotate to a new one for 2 credits. The current port stops working and is retired permanently.
Rotate PortIf it will not connect
tcp and Mode is ip; MikroTik does not support OVPN over UDP, and ethernet mode will not work against this server.