Notes from setting up my MikroTik Chateau 5G R17 AX (board S53UG+5HaxD2HaxD&RG650E-EU, Quectel RG650E-EU modem, RouterOS 7.19.5) as a home router with 5G failover, remote access, and a dedicated corporate-VPN SSID. Everything here is based on what I actually ran; lessons are from rakes I stepped on.
Hardware snapshot
| Parameter | Value |
|---|---|
| Model | MikroTik Chateau 5G R17 AX |
| Board | S53UG+5HaxD2HaxD&RG650E-EU |
| Modem | Quectel RG650E-EU |
| RouterOS | 7.19.5 |
| Primary WAN | ether1 (DHCP from upstream) |
| Backup WAN | lte1 + eSIM LTE plan |
| LAN subnet | 192.168.50.0/24 (changed from default) |
| APN | internet |
| Operator | <LTE ISP> |
Goals for the setup
- Primary internet via cable on
ether1 - Automatic switchover to eSIM (5G) when
ether1fails - Automatic return to
ether1when it recovers - Remote access to the home network even when the router sits behind CGNAT
- A separate SSID that tunnels everything through corporate GlobalProtect, so I don't have to launch GP on each device
The companion posts
- Base MikroTik setup — first boot, LAN subnet, WAN on ether1, LTE plan eSIM, failover ether1 ↔ LTE, NAT, WiFi 2.4 / 5 GHz and the DFS trap, backup / restore.
- Back To Home VPN (MikroTik cloud) — free built-in WireGuard-based remote access that works through CGNAT. Enable, add peers, generate QR for the iOS / Android app.
- Hardening + extensions — security, WAN-flap alerting via Telegram, power-loss behavior, DNS over HTTPS, RouterOS upgrade strategy.
Lessons learned the hard way
All the rakes from this project in one place. If I come back to any of it later, I start here.
- SIM-slot selection is NOT
/interface lte set lte1 sim-slot=.... Use/interface lte settings set sim-slot=esim. Values aresim/esim, notup/down/auto. - The eSIM
provisioncommand takes separate params, not a whole LPA string. SplitLPA:1$smdp.XXX$MATCHING-IDintosm-dp-plus=smdp.XXXandmatching-id=MATCHING-ID. - Don't use
\$in double quotes for LPA strings. Use single quotes, or no quotes (value has no spaces). - WinBox terminal truncates long strings on paste. Use SSH (
ssh admin@<router>) from git bash. provisionneeds a working internet connection. Without it →resolving error.- Subnet conflicts silently break everything. Default Chateau LAN is
192.168.88.0/24— if your upstream is on the same subnet, routing breaks. First move: change the LAN subnet. - Tab-Tab in the terminal lists available commands and parameters. Use it instead of guessing.
- LTE plan eSIM is obtained through the phone app (
<your operator app> → add new SIM → eSIM → data-only → Router). MultiSIM is free, number of extras depends on plan. - The Chateau ships with MikroTik Connectivity test eSIMs — don't accidentally activate them; check UICCID before pressing activate.
- Recursive routing beats check-gateway against the ISP gateway for failover. Ping
1.1.1.1through the ISP gateway — failover fires even if the gateway is alive but the ISP's internet is down. - WinBox MAC connection doesn't drop when IPs change. Connect via MAC first; then safely edit addresses.
- 5 GHz DFS channels trap.
monitorsaysstate: runningbut clients can't see the SSID. Force a non-DFS channel (36 / 5180 MHz) until you know what you're doing. - Back To Home VPN lives under
/ip cloudas a property, not a submenu. Users live under/ip cloud back-to-home-user(singular). Don't mix/and spaces in command paths. - Openconnect +
--background+expect= SIGHUP death a few seconds after auth. Run openconnect in the foreground undersystemd Type=simple. - Palo Alto IP pools differ by client OS.
--os=mac-intelcan get you out of an ACL block that bites--os=linux. Not HIP spoofing — just the OS fingerprint. - UID-based
ip rulepolicy routing breaks Node.js DNS (c-ares). Usednsmasq server=IP@interfaceinstead to steer specific queries. chattr +i /etc/resolv.confis how you stopvpnc-scriptfrom trashing the Pi's own DNS on every reconnect.
Useful external links
- Chateau 5G R17 ax — official manual
- LTE / 5G — RouterOS documentation
- MikroTik forum: activating an eSIM from any mobile operator
- Back To Home — MikroTik Docs
- LTE plan — eSIM
- openconnect — open-source GlobalProtect client
RouterOS: 7.19.5 · Hardware: Chateau 5G R17 AX (S53UG+5HaxD2HaxD&RG650E-EU)
