How Can We Help?
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
- Click Here to open our OpenVPN configuration file downloader.
- Log in with your VPNUK account credentials.
- Download the OpenVPN TCP configuration file (
.ovpn
) - Save the TCP configuration file to your computer.
2. Upload OpenVPN Configuration File to Your MikroTik Router
- Log in to your MikroTik router using WinBox or SSH.
- Go to Files in the MikroTik RouterOS interface.
- Click Upload and select the VPNUK TCP
.ovpn
file you downloaded earlier. - The file should now appear in the Files section.
3. Configure OpenVPN Client on MikroTik
- Go to PPP > Interface.
- Click Add (+) > OVPN Client.
- 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
- Click OK to save.
4. Configure OpenVPN Client on MikroTik
- Go to IP > Firewall > NAT.
- Click Add (+) and set:
- Chain:
srcnat
- Out Interface:
ovpn-out1
- Action:
masquerade
- Chain:
- Click OK.
- Go to IP > Routes.
- Add a new route:
- Dst. Address:
0.0.0.0/0
- Gateway:
ovpn-out1
- Dst. Address:
- Click OK.
5. Connect & Verify VPN Status
- Go to PPP > Interface.
- Select ovpn-out1 and click Enable.
- 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/