MikroTik WireGuard VPN for Phone and Laptop (Remote Access)
Let staff reach the office network from a phone or laptop with WireGuard on RouterOS v7: server interface, one peer per device, client app settings and firewall.
Problem
You need secure access to the office network (file server, NVR, router) from a phone or laptop while travelling.
Symptoms
- The WireGuard app shows "connected" but nothing opens.
- It works on Wi-Fi but not on mobile data, or the reverse.
Likely causes
Each device must be a separate peer with its own key and tunnel address. The router must accept the UDP port, and the client's AllowedIPs decide which traffic goes into the tunnel.
Prerequisites
- RouterOS v7, a public IP or a DDNS name (IP > Cloud).
- The WireGuard app on the phone or laptop.
- Example: office LAN
192.168.88.0/24, VPN subnet10.88.0.0/24.
Solution (WinBox / CLI)
1. Server interface and address:
/interface wireguard add name=wg-remote listen-port=13232
/ip address add address=10.88.0.1/24 interface=wg-remote
/interface list member add list=LAN interface=wg-remote
/ip firewall filter add chain=input protocol=udp dst-port=13232 action=accept comment="WireGuard remote" place-before=0
/interface wireguard printCopy the router's public key from the last command.
2. In the app on the phone, create a new tunnel and copy its public key. Set:
- Interface address:
10.88.0.2/32 - DNS:
192.168.88.1 - Peer public key: the router's public key
- Endpoint: your public IP or DDNS name, port
13232 - Allowed IPs:
192.168.88.0/24(office only) or0.0.0.0/0(all traffic through the office)
3. Add the phone as a peer on the router:
/interface wireguard peers add interface=wg-remote public-key="PHONE_PUBLIC_KEY" allowed-address=10.88.0.2/32 comment="Staff phone 1"Repeat with 10.88.0.3/32, 10.88.0.4/32 and so on for each device.
Verification
- In the app, the handshake time updates and data counters increase.
- On the router:
/interface wireguard peers print detailshowslast-handshakefor that peer. - Open
192.168.88.1in the phone's browser on mobile data.
Common errors
- Two devices with the same tunnel address or key: only one works at a time.
0.0.0.0/0on the phone but no masquerade for10.88.0.0/24: no internet while connected. A masquerade rule on the WAN interface list covers it.- The office is behind ISP CGNAT: there is no public IP to connect to. Ask the ISP for a public IP.
Rollback
/interface wireguard peers disable [find comment="Staff phone 1"]Disable one peer to cut access for a lost phone without affecting others.
This topic is covered hands-on in MTCSE — MikroTik Certified Security Engineer.
View MTCSE