← Back to Setup Guides
⚙️

Router Setup

MikroTik Router WireGuard Setup

Step-by-step guide to configure WireGuard VPN on MikroTik RouterOS v7+ using Winbox.

WireGuardRouterMikroTikRouterOS v7+

WireGuard Connection Details

Server
auto.velavpn.com
Port
51820
Protocol
WireGuard
ℹ️ WireGuard is built into RouterOS v7.1+ natively. If you are running RouterOS v6, upgrade to v7 first via System → Packages → Check for updates.
Step-by-Step Setup via Winbox
  1. Log in to velavpn.com/account, find your server in the server list, and click Download Config to get the .conf file. Open it in a text editor to note the private key, server public key, endpoint, and tunnel address.

  2. Open Winbox and connect to your MikroTik router.

  3. Go to WireGuard → + (Add). In the Name field enter wg-vela. Paste your Private Key from the Vela config. Click OK.

  4. Go to WireGuard → Peers → + (Add). Set: Interface = wg-vela, Public Key = server public key from config, Endpoint = auto.velavpn.com:51820, Allowed Address = 0.0.0.0/0, Persistent Keepalive = 25. Click OK.

  5. Go to IP → Addresses → + (Add). Set Address to the tunnel IP from your Vela config (e.g., 10.x.x.x/32) and Interface to wg-vela.

  6. Go to IP → Routes → + (Add). Set Dst. Address = 0.0.0.0/0, Gateway = wg-vela. This routes all internet traffic through Vela.

  7. Go to IP → Firewall → NAT → + (Add). Set Chain = srcnat, Out. Interface = wg-vela, Action = masquerade. Click OK.

  8. Test connectivity from a LAN client. The WireGuard peer status in Winbox should show a recent Last Handshake timestamp.

🖼️

MikroTik Winbox — WireGuard interface and peer configured

💡 Use WinBox → WireGuard → select wg-vela → Status to check the Last Handshake time. It should refresh every ~25 seconds when connected.
⚠️ MikroTik RouterOS v6 does NOT support WireGuard natively. You must upgrade to v7. Back up your configuration before upgrading.
Get the App