Cookies and privacy

Necessary cookies support the portal. External analytics and ad measurement start only with your consent. You can accept, reject optional tools or choose categories.

Tools: Google Analytics 4, Google Ads.

Privacy policy
Skip to content
Theme
Choose a plan
Guide

VPN on MikroTik RouterOS 7 - setup guide

Updated 3 November 2026 · Applies to: MikroTik RouterOS 7 · VPN

How to set up VPN on MikroTik RouterOS 7: required credentials, client settings and checking your VPNonline connection.

Before you start

  • An active service and access to your customer account.
  • The VPN username and connection password from your account - these may differ from your website sign-in.
  • The current server, profile and any PSK from the matching protocol section in your account. Do not copy example passwords or hosts from screenshots.

Open connection settings

Back up the configuration and choose a protocol

Back up the router configuration. Work from the LAN or a trusted management channel and use Safe Mode. Routing differs between RouterOS 7 and RouterOS 6: a separate routing table in v7 needs FIB enabled.

  1. Step 1: Check the profile and RouterOS version

    Download the chosen server’s OpenVPN profile from your account. Check that its parameters are supported by your RouterOS release. Historical screenshots are not a source of current hosts, PSKs, certificates or ciphers.

  2. Step 2: Add the VPN client

    On current RouterOS 7 releases, use the .ovpn profile import described by MikroTik when supported by your version. For manual setup, retain the downloaded profile’s parameters, server certificate verification and separate VPN credentials.

  3. Step 3: Choose which traffic uses the tunnel

    For selected devices, use a separate routing table and rules that direct only their traffic to the VPN. Keep a WAN route to reach the VPN server. Review the impact on management access before replacing the default route or firewall.

Router management

Keep Winbox, SSH and the web interface restricted to trusted source addresses and interfaces using the firewall. Port forwarding is not required to establish a VPN client connection.

RouterOS OpenVPN · Securing your router

Interface reference

Illustrative screenshots

Screenshots show an earlier interface, with Polish labels where no English original was provided. Use the current profile, not the example hosts or algorithms.

MikroTik RouterOS 7 - Przejdź do zakładki "PPP" (1) i dodaj (2) nowy interface "OpenVPN Client" (3)
MikroTik RouterOS 7 - W zakładce "General" (4) , w polu "Name" (5) wpisz nazwę interfejsu: pl01.vpnonline.eu
MikroTik RouterOS 7 - Aby zatwierdzić wprowadzone dane, kliknij "OK" (13)
MikroTik RouterOS 7 - W oknie "Firewall" wybierz zakładkę "NAT" (16) , następnie dodaj nową regułę (17)
MikroTik RouterOS 7 - W zakładce "General" (18) wybierz "Chain: srcnat" (19) i następnie "Out. Interface: pl01.vpnonline.eu" (20)
MikroTik RouterOS 7 - Kliknij "OK" (23)
MikroTik RouterOS 7 - W polu name wpisz np. vpnonline(27) i zaznacz FIB(28). Potwierdz przyciskiem OK(29)
MikroTik RouterOS 7 - Wróć do zakładki Firewall -> "Mangle" (30) i dodaj nową regułę (31)
MikroTik RouterOS 7 - W przykładzie, wpisany jest tylko jeden host, tylko on będzie przechodził przez VPN i tylko jego publiczny adres IP zmieni się na adres IP serwera VPN (np. Polski). Poz
MikroTik RouterOS 7 - Aby zatwierdzić zmiany, kliknij "OK" (38)
MikroTik RouterOS 7 - W oknie "Route List" , dodaj nową regułę (41)
MikroTik RouterOS 7 - Aby zatwierdzić zmiany, kliknij "OK" (46)

Check the connection

After the client connects, open the IP checker and compare the address and country with the selected server. Also test Internet access and DNS. A Connected status alone does not prove that all application traffic uses the tunnel.

If the connection fails

Authentication failed

Check the separate VPN username, connection password and service status in your account. Never include the password in a support request.

No Internet access or a certificate error

Download a fresh profile and check the device clock, DNS and routing. Keep certificate verification enabled. Include the device model, OS version and error message in a support request, with secrets removed.

Did this help?

We only store the answer, nothing about you.

Still not working?

Write to us. We will include this article's name, so we know what you already checked.

Write to us