How to Set Up OpenVPN on MikroTik Routers with VPNUK

Setting up an OpenVPN connection on a MikroTik router

This guide will walk you through configuring an OpenVPN connection on a MikroTik router using VPNUK’s secure VPN service. Unlike traditional MikroTik OpenVPN setups, which require separate .crt, .key, and .ovpn files, VPNUK provides a single .ovpn configuration file, making setup faster and easier.

Unlike other VPN protocols, OpenVPN on MikroTik only supports TCP. If you require UDP for better performance, consider using WireGuard or L2TP/IPSec.

1. Download Your VPNUK OpenVPN Configuration File

  1. Click Here to open our OpenVPN configuration file downloader.
  2. Log in with your VPNUK account credentials.
  3. Download the OpenVPN TCP configuration file (.ovpn)
  4. Save the TCP configuration file to your computer.

2. Upload OpenVPN Configuration File to Your MikroTik Router

  1. Log in to your MikroTik router using WinBox or SSH.
  2. Go to Files in the MikroTik RouterOS interface.
  3. Click Upload and select the VPNUK TCP .ovpn file you downloaded earlier.
  4. The file should now appear in the Files section.

3. Configure OpenVPN Client on MikroTik

  1. Go to PPP > Interface.
  2. Click Add (+) > OVPN Client.
  3. Enter the following settings:
    • Connect To: (Enter your VPNUK OpenVPN server address from your Members area or Welcome to VPNUK email)
    • Port: 1194
    • Mode: IP
    • User: (Enter your VPNUK username)
    • Password: (Enter your VPNUK password)
    • Profile: default-encryption
    • Certificate: (Leave blank, as it is handled within the .ovpn file)
    • Auth: SHA1
    • Cipher: AES-256-CBC
  4. Click OK to save.

4. Configure OpenVPN Client on MikroTik

  1. Go to IP > Firewall > NAT.
  2. Click Add (+) and set:
    • Chain: srcnat
    • Out Interface: ovpn-out1
    • Action: masquerade
  3. Click OK.
  4. Go to IP > Routes.
  5. Add a new route:
    • Dst. Address: 0.0.0.0/0
    • Gateway: ovpn-out1
  6. Click OK.

5. Connect & Verify VPN Status

  1. Go to PPP > Interface.
  2. Select ovpn-out1 and click Enable.
  3. Go to Log to check the connection status.

To verify your VPNUK connection is working, check your VPNUK IP address at: https://www.ipaddress.com/

Enjoy Secure VPN Access with VPNUK & OpenVPN on your MikroTik router!

Did this guide help? Please provide us with feedback here or share it with others looking for a secure VPN setup on MikroTik routers!

Troubleshooting Common Issues

Cannot connect to VPNUK servers?
Ensure your OpenVPN server address is correct.
Ensure you are using the TCP configuration file.
Restart your MikroTik router and try again.
Check if your ISP is blocking OpenVPN traffic.

VPN is connected, but no internet?
Go to Firewall NAT rules and ensure masquerade is enabled.
Check IP Routes to confirm ovpn-out1 is set as the default gateway.

Final Thoughts & Security Notes

  • OpenVPN on MikroTik provides strong encryption, ensuring secure and private internet access.
  • If you experience performance issues, consider using WireGuard or L2TP/IPSec, which offer better speed and compatibility.
  • Keep your MikroTik firmware updated for the best performance and security.
  • If you have any problems with the connection please contact our 24/7 support team.