Flashing a Used ZTE MF286D to OpenWrt 25.12.6 and a Native Tailscale Exit Node Without Opening the Case

I picked up a used ZTE MF286D and wanted a standalone OpenWrt 25.12.6 cellular router and cross-border Tailscale Exit Node without opening the shell, soldering UART, or renting an extra VPS. Here is what actually broke along the way and how it ended up performing.

Flashing a Used ZTE MF286D to OpenWrt 25.12.6 and a Native Tailscale Exit Node Without Opening the Case

I picked up a secondhand carrier-branded ZTE MF286D recently. The goal was straightforward: drop a SIM card in, run it as an independent 4G router without renting another VPS, and use native Tailscale for cross-border remote management and occasional Exit Node routing.

I set a few constraints before starting. No opening the case and no UART soldering—Ethernet only. Do not touch the factory IMEI, MAC addresses, or Wi-Fi calibration (ART). And the router had to stay fully independent: if my Debian 13 controller laptop is powered off, the router still needs to run on its own.

For secondhand hardware, the MF286D specs are solid: a quad-core Qualcomm IPQ4019, 256 MB RAM, 128 MB SLC NAND, four Gigabit ports, dual-band Wi-Fi, and an internal MDM9650 Cat.12 3CA LTE module. Before changing anything, I ran a stock baseline on the same SIM and desk spot (RSRP -96 dBm): 22.64 Mbps down, 20.50 Mbps up, and 38 ms average ping. Having a real baseline makes it easy to tell later whether you actually improved anything.

I assumed flashing OpenWrt would take an hour or two. It ended up catching me on several specific issues, so I am writing the sequence down here.

Flashing OpenWrt 25.12.6 Over Ethernet

Feeding an OpenWrt transition image directly into ZTE_Sales_Update_Framework.exe against carrier stock fails immediately with Invalid selected version!. You have to bridge through Nordic B11 first (about six minutes over Ethernet), then flash the OpenWrt 22.03 transition build.

During that second flash, the progress bar stops at 99%, status says Reset CPE, please, and the Windows app refuses to close (updating, can not exit). It looks alarming the first time, though it is expected: OpenWrt does not respond to ZTE’s post-flash handshake. Power-cycling the router and moving the Ethernet cable to LAN2 brings up OpenWrt SSH.

Redacted real screenshot of ZTE Software Update Framework stopping at 99 percent with Reset CPE please

Before touching sysupgrade, I dumped all 20 raw MTD partitions (mtd0 through mtd19, 136 MB total, including mtd1_ART, mtd2_mac, and SPI-NOR boot partitions) over SSH and checked SHA256 on every file. With a complete backup on disk, I verified the GPG signature on official OpenWrt 25.12.6 (Linux 6.12.112) and ran sysupgrade -n.

Fitting Tailscale into 29 MiB of Flash

Right after installing 25.12.6, I ran apk add tailscale out of habit. /overlay hit 100% with zero bytes free.

Even though the board has 128 MB of NAND, OpenWrt’s rootfs partition (mtd9) is only 29 MiB. Tailscale is a ~28 MiB Go binary; installed into writable UBIFS /overlay with light LZO compression, it consumes over 13 MiB on its own.

Instead of adding a USB drive or hunting for stripped binaries, I used the official OpenWrt Firmware Selector (sysupgrade.openwrt.org) to bake the packages into the read-only XZ-compressed SquashFS /rom:

luci luci-proto-qmi luci-ssl kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi picocom watchcat luci-app-watchcat curl kmod-tun tailscale

All 169 packages fit into 12.5 MiB of /rom (28.8% compression ratio). After flashing, /overlay sits at 84 KiB used (1%) with 6.3 MiB free and zero bad NAND eraseblocks.

Diagram comparing the Ethernet flashing stages and apk overlay bloat versus XZ SquashFS

Why Speed Dropped to 0.12 Mbps After Flashing

Once QMI came up, the first speed test was terrible: 0.12 Mbps down and 237 ms ping, stuck on 2G EDGE. Two separate issues were stacked on top of each other.

First, the initial bridge flash had reset the internal MDM9650 modem back to a 2019 B02 build that frequently timed out on QMI. I stepped it through 7 official signed FOTA deltas inside OpenWrt (B02 → B05 → B06 → B08 → B09 → B10 → B11 → B12), each passing the modem’s own RSA check, confirmed BD_TELIAMF286DV1.0.0B12 (SVN: 12) via ATI, and removed temporary adb.

Second, even on B12, 4G still refused to attach. Querying /dev/ttyUSB1 with AT+CGCONTRDP and AT+CEER showed why: this carrier requires Profile 1 to stay empty for its internal LTE attach bearer, while actual data traffic has to go through Profile 2 with PAP authentication (none works on 2G but fails on 4G with ESM Cause #27).

OpenWrt 25.12.6’s /lib/netifd/proto/qmi.sh (line 339) hardcodes --modify-profile "3gpp,1" even when UCI specifies option profile '2', overwriting Profile 1 on every dial. Changing that single line and listing /lib/netifd/proto/qmi.sh in /etc/sysupgrade.conf fixed it:

- uqmi -s -d "$device" --modify-profile "3gpp,1" --apn "$apn" ...
+ uqmi -s -d "$device" --modify-profile "3gpp,${profile:-1}" --apn "$apn" ...

On the next dial, 3CA LTE-A came right up (Band 3 20 MHz + Band 7 20 MHz + Band 20 10 MHz, 50 MHz total). From the same desk spot (RSRP -95 to -97 dBm), direct router tests hit 47.05 Mbps down, 26.25 Mbps up, and 17.5–26.5 ms ping—faster than stock. A wired Gigabit client measured 43.57 Mbps down and 15.26 Mbps up. I bridged all four Gigabit ports into br-lan since cellular is the permanent WAN.

Measured speed and latency across stock firmware, 2G EDGE failure, OpenWrt 25.12.6 with B12 3CA, and Tailscale Exit Node

Losing Tailscale After WAN Reconnects, and Unidirectional Access

When I tested a simulated cellular drop (ifdown wan followed by ifup wan), LTE recovered in 26 seconds, but SSH over Tailscale stopped responding. The logs showed tailscale0 had dropped to DOWN and routing table 52 was empty.

The cause was an old pattern I had copied into /etc/config/network: defining an unmanaged tailscale (proto='none') interface for the firewall. Every netifd reload triggered by a WAN change tore down tailscale0 and wiped table 52. Removing network.tailscale and binding firewall.ts_zone directly with option device 'tailscale0' fixed it cleanly. Re-running the drop test gave 25.8 s LTE recovery and 3.9 s Tailscale SSH recovery.

I also tightened both ends of the management link so traffic only flows one way:

Firewall topology showing unidirectional SSH from controller host and least-privilege Exit Node forwarding

My Debian 13 controller holds a dedicated Ed25519 key (never copied off the machine), a Host zte alias with StrictHostKeyChecking yes pinned from the initial wired session, and agent/X11/TCP forwarding disabled. On the router, Dropbear password auth is off, input_tailscale allows TCP 22 and 443 exclusively from the controller, public WAN is default-deny with zero port forwards or UPnP, and dnsmasq listens only on LAN and loopback. In the reverse direction, both ZTE’s output_tailscale and a persistent nftables rule (priority -25) on the controller reject any new connection initiated by the router.

To avoid wearing out the NAND flash on unattended cellular operation, I added a small RAM-only cron script (/usr/local/sbin/lte-watchdog.sh) storing state in /tmp and logs in memory logd. If ping works but local DNS fails, it restarts only dnsmasq. On real LTE outages it escalates through interface redial, modem AT reset with a cooldown, and reboot only after 30 minutes of uptime, while also watching tailscale0 and table 52.

Why the Approved Exit Node Did Not Show Up on Clients

Router-side Exit Node setup was straightforward: kernel forwarding is already enabled in /etc/sysctl.d/10-default.conf, fw4 gets a single tailscale → wan forwarding rule (reusing WAN masquerade and MSS clamping for 1280 MTU), preceded by an explicit REJECT on IPv6 tailscale → wan so the IPv4-only cellular link neither hangs dual-stack clients nor leaks local IPv6. There is no tailscale → lan forwarding and no Subnet Router.

After running tailscale set --advertise-exit-node --accept-dns=false and approving Use as exit node in the Tailscale admin console, ZTE reported Self.ExitNodeOption: True, yet clients still returned no exit nodes found. Tailnet Lock was off. The missing piece was Tailscale’s custom grants policy: once you replace the default allow-all policy with custom grants, you also need an explicit autogroup:internet rule:

{
  "src": ["autogroup:owner"],
  "dst": ["autogroup:internet"],
  "ip":  ["*"]
}

Scoping it to autogroup:owner kept external shared peers unaffected, and the Exit Node appeared immediately.

Measured Results

Testing from a separate authorized client (without altering the controller’s routing, and restoring tailscale set --exit-node= after each run):

Check Observed Result
Public IPv4 egress match Matched ZTE’s cellular egress initially, after a forced LTE IP rotation, and after a cold reboot
DNS & IPv6 leak checks edns.ip-api.com resolved through the cellular carrier’s DNS; IPv6-only probe failed with no local leak, dual-stack fell back to IPv4
Exit Node speed & latency 10.00 Mbps down, 3.24 Mbps up, 150 ms avg ping (0% loss)
ZTE resources under load CPU load 0.06–0.44, 67.6–70.3 MiB RAM available, /overlay at 84 KiB (1%)
Client isolation SSH :22, HTTPS LuCI :443, and HTTP :80 all refused before and after reboot
Recovery 25.8 s after forced LTE disconnect; ~1 minute unattended recovery after cold reboot

The 10 Mbps / 150 ms Exit Node result was measured from a Wi-Fi network that blocked UDP (UDP: false), forcing traffic through a DERP relay. ZTE’s cellular uplink itself reports UDP: true and endpoint-independent NAT, so clients on UDP-friendly networks can negotiate direct P2P tunnels with lower latency. I left Flow Offloading off since quad-core IPQ4019 handles ~47 Mbps NAT easily without risking conflicts with nftables and Tailscale routing.

The router is now unplugged from Ethernet and running standalone. The only piece still pending is a full 24-hour continuous run—if anything turns up after a few days of real use, I will add a note here.