How to Connect a MikroTik Router to Your Doprax V2Ray/WireGuard Server
This guide connects a MikroTik router to a VPN server running on a Doprax ProVM. Once configured, all traffic from devices on your local network routes through the Doprax VPN — no client apps needed on individual devices. Two setups are covered: WireGuard (simpler, built into RouterOS 7+) and V2Ray via VLESS (requires an additional step).
Prerequisites
- A Doprax ProVM (1 vCPU / 1 GB minimum) with a clean public IP
- A MikroTik router running RouterOS 7.x or later
- Admin access to your MikroTik via WinBox or WebFig
- For V2Ray: a working 3x-ui or X-UI panel on your ProVM
Option A: WireGuard (recommended)
WireGuard is natively supported in RouterOS 7+. This is the simplest path.
Step 1: Set up WireGuard on your Doprax ProVM
SSH into your ProVM and install WireGuard:
sudo apt update && sudo apt install wireguard -y