Xiaomi AX3000T OpenWrt Guide: HomeProxy Traffic Splitting and WireGuard Remote Management

Scope: Xiaomi AX3000T, focusing on hardware model RD03 and the installation route that retains the stock Xiaomi Bootloader. The examples use OpenWrt 25.12.6. This article provides a reusable decision process; it is not an unconditional universal flashing script for all AX3000T hardware versions, all stock firmware, and all Bootloaders.
Nature of this article: A reusable tutorial compiled from a real deployment record. It retains the verified main workflow and representative failures, while removing private information such as personal servers, home network details, device public keys, subscription tokens, and usernames. The
VPS_PUBLIC_IP,<...>, and WireGuard10.77.0.0/24subnets in the examples are for demonstration only; replace them yourself.Risk warning: Flashing involves writing to NAND flash and modifying NVRAM boot parameters. Writing the wrong MTD partition may make the device unbootable. Before executing
ubiformatornvram set, you must confirm the device model, stock boot partition, image type, and backup and recovery conditions yourself. Do not combine commands from different boot states in this article and execute them directly.
I. What You Can Ultimately Achieve
After completion, you will have the following structure:
Internet │ 上级光猫 / 路由器 │ AX3000T WAN │ ┌───────────────────┐ │ Xiaomi AX3000T │ │ OpenWrt / LuCI │ │ HomeProxy │ │ sing-box │ │ WireGuard client │ └───────────────────┘ │ │ LAN / Wi-Fi │ 加密 UDP 隧道 │ ▼ 家中设备 公网 VPS (WireGuard Hub) ▲ │ 手机蜂窝网络 WireGuardThe three goals are separated here to prevent them from interfering with each other:
- OpenWrt base system: Routing, Wi-Fi, DNS, LuCI, and package management work normally.
- HomeProxy + sing-box: Decide whether to connect directly or use an existing proxy node based on rules; the focus is resolving rule, DNS, and kernel compatibility issues.
- WireGuard remote management: A phone securely accesses the router management address through a VPS, without exposing the home LAN by default and without forwarding all home internet traffic to the VPS.
The latter two parts are optional modules: readers who only need OpenWrt can stop after completing the basic configuration.
II. Environment and Preparation
| Item | Example in This Article | Description |
|---|---|---|
| Target device | Xiaomi AX3000T (RD03) | Subject to the device nameplate and device detection results |
| Stock firmware | Example 1.0.64 | Whether SSH unlocking applies depends on the actual version and vulnerability status |
| Chip platform | MediaTek MT7981 / Filogic | Not equivalent to every product called AX3000T |
| OpenWrt | 25.12.6 | This version uses the APK package manager |
| Bootloader route | Retain the stock Bootloader | The firmware file name must not contain ubootmod |
| Operating computer | macOS / Linux | Windows can use equivalent SSH and SCP tools |
| Flashing helper | XMiR-Patcher | Use only versions from trusted project repositories |
| Management connection | Ethernet cable or temporary wired AP | OpenWrt Wi-Fi is usually disabled on first boot |
| Remote access | VPS with publicly reachable UDP | Required only when enabling the WireGuard module |
It is recommended to prepare in advance: a stable power supply, a reliable LAN management channel, at least one complete stock MTD backup, another disk that can store the backup independently, and accessible OpenWrt device documentation. A Mac without an RJ45 Ethernet port can connect to the router through a LAN↔LAN auxiliary AP, but you must disable the auxiliary AP's DHCP service in advance and avoid management IP conflicts.
192.168.31.1 (Xiaomi stock) and 192.168.1.1 (OpenWrt) in the following sections are common default management addresses. If your device has been modified, replace them with the actual addresses; these private addresses are not the author's real network topology.
III. Confirm the Model and Obtain Stock SSH Access
3.1 Check in the Stock Management Interface
- Log in to the Xiaomi stock management backend and check the current firmware version.
- Check the chassis label and hardware model, and confirm it is RD03.
- Do not blindly update to an unknown version just for flashing; different stock versions may affect the SSH unlock path.
- Confirm that the computer can access the router's stock management address.
3.2 Install XMiR-Patcher
Run in the computer's terminal:
git clone https://github.com/openwrt-xiaomi/xmir-patcher.gitcd xmir-patcher
python3 -m venv .venvsource .venv/bin/activatepython3 -m pip install -r requirements.txtpython3 menu.pyRefer to the tool's current interface. Some versions can obtain SSH through a menu function similar to the following:
Connect to device (install exploit)Read full device infoCreate full backupConnect and attempt to unlock first, then read the full device information. If the tool indicates that the current version is not supported, stop here; do not force-apply exploits or flashing methods for other models.
Stock SSH sometimes requires compatibility with older SSH host key algorithms. Only when the target is indeed a stock router that you manage yourself and you have verified the target host identity may you use the following for this connection only:
ssh -o HostKeyAlgorithms=+ssh-rsa \ -o PubkeyAcceptedAlgorithms=+ssh-rsa \ root@192.168.31.1This is a compatibility measure for a specific legacy system and should not globally disable SSH security verification. When a host fingerprint prompt appears on the first connection, verify it before accepting; if stock unlocking uses a temporary default password, set a new OpenWrt root password immediately after flashing is complete.
3.3 Read Key Device Status
After successfully entering stock system SSH, run the read-only commands:
cat /proc/cmdlinecat /proc/mtduname -aPay special attention to:
- Whether it is the expected
mediatek/filogicand RD03 hardware. firmware=0orfirmware=1in/proc/cmdline.- Whether
mtd8is namedubi, whethermtd9is namedubi1, and whether the capacity matches the device documentation. - Whether these commands are being run in the stock system rather than an already-flashed OpenWrt.
Key principle: This installation process first writes to the currently inactive UBI partition, then switches the boot parameters. Do not assume that your device should also write /dev/mtd8 just because someone else's device wrote /dev/mtd8.
IV. Fully Back Up Stock Partitions
XMiR-Patcher usually provides the Create full backup function. Before flashing, back up the entire Flash / all MTD partitions, not just save the configuration file exported from the router's web page.
Check the backup in the project directory:
find backups -maxdepth 1 -type f -name 'mtd*.bin' -exec ls -lh {} \;It is recommended to confirm at least the following:
- Backup of the entire Flash and partitions such as BL2, FIP, Factory, Nvram, Bdata, ubi, and ubi1 have been generated.
- The file size matches the partition size shown in
/proc/mtd. - Generate a SHA-256 manifest to make it easier to check later whether the backup files are corrupted.
cd backupsshasum -a 256 mtd*.bin > SHA256SUMS.localcd ..Note: Backups may contain Wi-Fi calibration information, MAC addresses, serial numbers, stock configuration, or other unique device data. Do not upload
backups/,full_info.txt, or raw partition images to blogs, Git repositories, or public cloud drives. A second copy on the same machine is not off-site backup; preferably place it on another medium and save it encrypted.
V. Download and Verify the OpenWrt Image
This article demonstrates the route of retaining the stock Bootloader. Taking OpenWrt 25.12.6 as an example, the target platform is mediatek/filogic.
Two files need to be distinguished:
| File Type | Purpose | Do Not Confuse |
|---|---|---|
*-initramfs-factory.ubi |
Boot image written for the first time from the stock system | Not the final sysupgrade file |
*-squashfs-sysupgrade.bin |
Install the official system after entering the temporary OpenWrt environment | Should not be used directly as the stock UBI first-flash image |
Example download commands (run in the computer terminal):
VERSION=25.12.6BASE="https://downloads.openwrt.org/releases/${VERSION}/targets/mediatek/filogic"PREFIX="openwrt-${VERSION}-mediatek-filogic-xiaomi_mi-router-ax3000t"
mkdir -p firmwarecd firmware
curl -fL --retry 3 -O "${BASE}/${PREFIX}-initramfs-factory.ubi"curl -fL --retry 3 -O "${BASE}/${PREFIX}-squashfs-sysupgrade.bin"curl -fL --retry 3 -O "${BASE}/sha256sums"
# View the checksum values for the two matching items in the official list# Note: verify the items whose filenames match exactly, not the ubootmod itemsgrep -F "${PREFIX}-initramfs-factory.ubi" sha256sumsgrep -F "${PREFIX}-squashfs-sysupgrade.bin" sha256sums
# Compare the actual SHA-256 of the local fileshasum -a 256 "${PREFIX}-initramfs-factory.ubi"shasum -a 256 "${PREFIX}-squashfs-sysupgrade.bin"
# Extract the two exact matches from the official sha256sums and compare them automaticallyawk -v a="${PREFIX}-initramfs-factory.ubi" \ -v b="${PREFIX}-squashfs-sysupgrade.bin" \ '$2 == "*" a || $2 == a || $2 == "*" b || $2 == b { print }' sha256sums > SHA256SUMS.selected
# Two entries must be extracted, and each item must pass verificationif [ "$(wc -l < SHA256SUMS.selected | tr -d ' ')" -ne 2 ]; then echo '文件名与校验清单不匹配,停止操作' >&2 exit 1fishasum -a 256 -c SHA256SUMS.selected || exit 1
# Return to the xmir-patcher project directory and use the relative path firmware/ for subsequent operationscd ..As an official verification example for the specific 25.12.6 version, this article verified:
initramfs-factory.ubi4ec4eb9d5d9e03cf437c0942d9389343e3b70536fbe3a84827db04fcb8482c2f
squashfs-sysupgrade.bin286dbbaf16588c22daeaf6dbc8ca02573a1c30fbeb8592e3ba58b865c8726043These two values correspond only to the exact file names and version above and are not universal checksums for other OpenWrt versions. When updating the version, re-download the official sha256sums. **Continue only when both items are OK. If SHA256SUMS.selected is empty, it means the file name or manifest format does not match, and you must not continue flashing.
Official image directory: https://downloads.openwrt.org/releases/25.12.6/targets/mediatek/filogic/
VI. Initial Flash: From the Stock System to OpenWrt
This part is the riskiest operation in the entire guide. If any check does not match the table below, stop flashing.
6.1 Upload the Initial Flash Image
Run this on the computer to transfer the file to the router's temporary memory directory /tmp:
scp -O \ -o HostKeyAlgorithms=+ssh-rsa \ -o PubkeyAcceptedAlgorithms=+ssh-rsa \ "firmware/openwrt-25.12.6-mediatek-filogic-xiaomi_mi-router-ax3000t-initramfs-factory.ubi" \ root@192.168.31.1:/tmp/ax3000t-initramfs.ubiUploading itself does not write to NAND. You can use sha256sum to verify the remote file; if the stripped-down stock system lacks this command, you can transfer it back over SSH and use the local cmp to perform a byte-for-byte comparison:
ssh -o HostKeyAlgorithms=+ssh-rsa \ -o PubkeyAcceptedAlgorithms=+ssh-rsa \ root@192.168.31.1 \ 'cat /tmp/ax3000t-initramfs.ubi' \ | cmp - 'firmware/openwrt-25.12.6-mediatek-filogic-xiaomi_mi-router-ax3000t-initramfs-factory.ubi' \ && echo '传输文件逐字节一致'Only when you see "transferred files are byte-for-byte identical" does this comparison succeed; if SSH fails or cmp reports a difference, do not continue flashing.
6.2 Confirm the Boot Partition and Choose the Only Correct Branch
Run the following again under the stock SSH:
cat /proc/cmdlinegrep -E '^mtd(8|9):' /proc/mtdcommand -v ubiformatCompare against the official OpenWrt AX3000T installation instructions:
| Stock boot marker | Currently running partition (must be confirmed on site) | Initial flash target (inactive partition) | Key NVRAM values |
|---|---|---|---|
firmware=1 |
mtd=ubi1 |
/dev/mtd8 (ubi) |
flag_boot_rootfs=0, flag_last_success=0 |
firmware=0 |
mtd=ubi |
/dev/mtd9 (ubi1) |
flag_boot_rootfs=1, flag_last_success=1 |
Only when the actual /proc/cmdline, the partition table, and the official documentation all match may you choose the corresponding branch. The following commands are all run in the stock router SSH, and only one of the groups may be executed.
Branch A: Confirm firmware=1 mtd=ubi1
ubiformat /dev/mtd8 -y -f /tmp/ax3000t-initramfs.ubi
nvram set boot_wait=onnvram set uart_en=1nvram set flag_boot_rootfs=0nvram set flag_last_success=0nvram set flag_boot_success=1nvram set flag_try_sys1_failed=0nvram set flag_try_sys2_failed=0nvram commitBranch B: Confirm firmware=0 mtd=ubi
ubiformat /dev/mtd9 -y -f /tmp/ax3000t-initramfs.ubi
nvram set boot_wait=onnvram set uart_en=1nvram set flag_boot_rootfs=1nvram set flag_last_success=1nvram set flag_boot_success=1nvram set flag_try_sys1_failed=0nvram set flag_try_sys2_failed=0nvram commitAfter execution, read back and confirm using nvram get flag_boot_rootfs, nvram get flag_last_success, etc.; you may reboot only after the flash command returns normally without errors:
reboot6.3 Enter the OpenWrt Temporary System for the First Time
After rebooting:
- Connect the management device to the AX3000T's OpenWrt LAN port. For this model, the official instructions specifically recommend using the middle LAN port on the chassis to avoid differences between the stock dynamic WAN/LAN assignment and OpenWrt's fixed port positions.
- Set the computer to obtain an IP automatically via DHCP. When using an auxiliary AP, ensure the AP is operating in transparent bridge mode and DHCP is disabled.
- Try opening
http://192.168.1.1and check the device name and OpenWrt version. - If the page shows
System running in recovery (initramfs) mode, it means you have entered the temporary boot environment. This only means the first stage succeeded; it does not mean the formal installation is complete.
If you cannot connect, first check the network port, Ethernet cable, DHCP address, and gateway; do not immediately write to flash again.
6.4 Install the Formal sysupgrade Image
In the LuCI interface of the temporary OpenWrt, go to:
System → Backup / Flash Firmware → Flash new firmware imageSelect ...-squashfs-sysupgrade.bin on the computer and verify the uploaded SHA-256. For the first installation from initramfs, uncheck Keep settings (retain configuration) to perform a clean install; then confirm the flash and wait for the reboot.
Alternatively, you can use SSH to copy the formal image to /tmp/ in the temporary environment and then execute sysupgrade -n <path-to-image>; but the prerequisite is still that the device and Bootloader layout match exactly.
After the formal system reboots successfully, check:
ubus call system boardmountdf -h /overlayVerify that initramfs has been exited, Overlay is writable, and LuCI works normally, then immediately set a strong root management password.
VII. Basic Network Configuration for OpenWrt
7.1 WAN, LAN, Wi-Fi
It is recommended to first achieve a minimal working setup:
- Configure WAN using DHCP, PPPoE, or a static address as required by the actual network.
- Keep an available management subnet for LAN and confirm it does not conflict with the upstream LAN.
- Enable 2.4 GHz and 5 GHz wireless, set the SSID and a strong password for each; choose WPA2/WPA3 according to device and client capabilities.
- Set the Wi-Fi country/region code according to the device's physical location, regardless of the region where the proxy node is located.
- First verify local Wi-Fi, LuCI, and basic internet access, then install traffic splitting, themes, or VPN.
7.2 How to Troubleshoot Package Download Failures
OpenWrt 25.12 and later versions use apk; do not copy the old opkg install commands verbatim.
apk updateapk search luci-i18n-base-zh-cnIf the update fails, troubleshoot in the following order:
ip -4 route show defaultifstatus wanping -c 3 1.1.1.1nslookup downloads.openwrt.orgdate -u- WAN has no IPv4/gateway: Check upstream address assignment and interface configuration.
- IP is reachable, but domain name resolution fails: Check the DNS distributed by WAN DHCP, LAN DNS forwarding, and resolver, rather than repeatedly reinstalling the firmware.
- DNS is normal, but HTTPS/package downloads are interrupted: Continue checking IPv4/IPv6, routing, time, MTU, certificates, and specific downloader errors.
- Kernel module installation fails: Check the exact current kernel version and
kmodssource; do not force-install.kofrom another version.
Some LuCI pages mark WAN in red as a firewall zone; this does not equal a link failure; rely on the actual interface status and network tests.
7.3 Installing LuCI Simplified Chinese
apk updateapk add luci-i18n-base-zh-cnThen select Simplified Chinese in System → System → Language and Style. If the router itself has unstable downloads, you can download the official APK for the corresponding version and architecture on your computer, verify the source, and then transfer it to /tmp via SCP.
apk add --allow-untrusted /tmp/xxx.apk bypasses the signature trust verification for that local package; do not use it as the default solution for all download failures. Consider using it only after you have truly verified a trusted source, the package contents, and the risks.
8. Optional Module: HomeProxy + sing-box Traffic Splitting
This module is for legally managing proxy nodes and networks that you own or are authorized to use. HomeProxy is the LuCI management layer, and sing-box is the actual traffic processing core; subscription format, proxy core, rule sets, and DNS are four parts that need to be verified separately.
8.1 Why You Cannot Enable It Just by Importing a Subscription
Subscription content may be just a node list, or it may include global mode and empty rules. Having nodes does not mean having a correct routing traffic-splitting policy.
To achieve "direct connection for specific domestic traffic and proxying for other traffic that matches the rules," you should at least complete:
- Trusted node import and connectivity checks (for example, Hysteria2, VLESS).
- Primary TCP/UDP node selection and fallback policy.
- Target traffic-splitting rules, rule set updates, and exceptions for LAN and reserved addresses.
- DNS splitting and hijacking policy; evaluate the situation with UDP, IPv6, and client-built-in DoH.
- Network recovery and locally available management entry points when the service is abnormal.
"Bypass mainland China" is a type of rule policy, and it does not guarantee that every domestic address, CDN, domain, and application will be routed as expected. Do not use the fact that a single website opens to prove that the full traffic splitting is correct.
8.2 Check System Resources and Package Compatibility
ubus call system boarddf -h /overlayfree -mapk updateapk search sing-boxChoose sing-box or sing-box-tiny according to your core needs; it is not recommended to install two conflicting variants at the same time; first read the build features of the current repository and confirm that the required QUIC/HY2, VLESS, DNS, and transparent proxy functions are actually available.
Dry run before installation:
apk add --simulate sing-box-tiny firewall4 kmod-nft-tproxy ucode-mod-digestA dry run showing successful dependency resolution does not mean the actual installation is complete; after installation, you also need to check available RAM, Overlay, and runtime logs.
The HomeProxy management package should be obtained from a trusted maintenance project, and you should verify the OpenWrt/ImmortalWrt distribution, 25.12 APK format, CPU architecture, and sing-box version. A LuCI all.apk from one distribution may happen to run on another distribution, but this is not an official compatibility guarantee. Prioritize versions and build methods explicitly supported by the maintainer; do not mix an entire third-party package source into official OpenWrt and then perform bulk upgrades.
Reference: https://github.com/immortalwrt/homeproxy
8.3 Recommended Configuration Order
- Install the proxy core and confirm that
sing-box versionis available. - Install the HomeProxy page and confirm that the LuCI menu can be opened.
- Import nodes (do not paste sensitive subscription URLs or UUIDs into logs, screenshots, or public repositories).
- Set a primary node that definitely exists and the necessary UDP nodes; verify the routing mode, DNS, and rule set.
- First perform configuration checks with transparent proxy disabled:
# Only for the version where HomeProxy actually generates this pathsing-box check --config /var/run/homeproxy/sing-box-c.json- Keep the LAN SSH management channel available; start it for a short test first, and only then consider persistence and auto-start on boot.
- Separately verify whether basic access, the proxy egress, and the domestic egress meet expectations, and record how to restore direct connection if they fail.
8.4 Two Typical Compatibility Failures
Fault A: The configuration generator reports an empty object or null value.
For example: attempt to set property on null value. This may be because the primary node ID saved by HomeProxy is invalid, or because the generation script does not match the configuration structure. You should first check whether the primary node reference actually exists, rather than deleting all subscriptions and reinstalling:
id="$(uci -q get homeproxy.config.main_node)"[ -n "$id" ] && uci -q get "homeproxy.$id" || echo '主节点未配置或引用失效'If it is confirmed invalid, select a node that actually exists in LuCI again and save it, then regenerate and check the configuration.
Fault B: sing-box 1.13 rejects legacy sniff inbound fields.
Some older HomeProxy builds still generate inbound configuration fields that have already been removed, such as sniff / sniff_override_destination; in this case, sing-box check will fail. The official sing-box migration approach is to use, in route.rules, rule actions such as action: sniff to replace the old fields. Prioritize upgrading to a HomeProxy version compatible with the current sing-box; if you must patch the generator yourself, back up the original file first, check the differences, and then perform an offline generation check. Simply deleting the old fields may change the traffic-splitting semantics and is not suitable as a general “one-click fix command”.
Reference: https://sing-box.sagernet.org/migration/
8.5 How to Validate, Rather Than Only Checking “Service Running”
pidof sing-box/etc/init.d/homeproxy enabled; echo "exit=$?"df -h /overlayfree -mEnsure the test terminal actually accesses the internet through the AX3000T and has no additional local VPN, then test HTTPS responses to multiple targets and the egress IP before and after starting/stopping the proxy. Do not record real public IPs in test logs; you may record only CHANGED, UNCHANGED, and HTTP status. You should also confirm that the router can restore direct connection after the proxy is turned off.
curl --noproxy '*' -4 -sS -o /dev/null \ -w 'status=%{http_code} duration=%{time_total}s\n' \ --max-time 15 https://www.example.com
example.comis only used as an ordinary HTTPS connectivity example and does not serve as a “domestic/international” traffic-splitting determination. Real traffic-splitting validation requires independently selected, available test sites that are mutually independent, and cross-checking DNS, gateway, and egress addresses.
9. Optional Module: Glass Theme (Decoupled from Network Functions)
The theme only changes the presentation layer of LuCI and is not responsible for networking, DNS, proxy, or VPN. In this practice, Argon was tried first, and finally switched to Glass; the initial installation anomaly came from a repository/download issue, not an OpenWrt routing function failure.
The Glass maintainer has published an APK package repository for OpenWrt 25.12+. The following example applies only when you have verified and trust this third-party project and the repository still uses the corresponding release method:
# Run it over OpenWrt SSH; before actual execution, you can check the maintainer's latest READMEmkdir -p /etc/apk/keys /etc/apk/repositories.dwget -O /etc/apk/keys/glass-apk.rsa.pub \ https://raw.githubusercontent.com/rchen14b/luci-theme-glass/main/root/etc/apk/keys/glass-apk.rsa.pub
FEED='https://rchen14b.github.io/luci-theme-glass/apk/packages.adb'touch /etc/apk/repositories.d/customfeeds.listgrep -qxF "$FEED" /etc/apk/repositories.d/customfeeds.list || \ printf '%s\n' "$FEED" >> /etc/apk/repositories.d/customfeeds.list
apk updateapk add luci-theme-glassIf you do not trust the third-party repository, cannot verify the source of the public key, or encounter signature anomalies, stop; do not globally disable verification just to install a theme. After installation, select Glass in System → System → Language and Style of LuCI.
If the theme causes the page to be inoperable, but you can still log in via LAN SSH, you can roll back to the default Bootstrap:
uci set luci.main.mediaurlbase='/luci-static/bootstrap'uci commit luci/etc/init.d/uhttpd restartThis operation only switches the theme and does not modify HomeProxy, WireGuard, or WAN. Reference project: https://github.com/rchen14b/luci-theme-glass.
10. Optional Module: Securely Managing the Router from the Internet with WireGuard
Here we use a structure with a public VPS as a relay Hub, suitable for scenarios where the home WAN is behind NAT and cannot be accessed directly from the public internet. Unlike a typical full-tunnel VPN, this tutorial uses a split tunnel and only forwards the WireGuard management subnet.
10.1 Planning Addresses and Least Privilege
All addresses below are examples, not actual deployment information:
| Device | WireGuard Virtual Address | Purpose |
|---|---|---|
| VPS | 10.77.0.1/24 |
WireGuard Hub |
| AX3000T | 10.77.0.2/32 |
Accepts authorized management connections |
| Phone | 10.77.0.3/32 |
Remote management client |
Expected access permissions: Phone 10.77.0.3 → router 10.77.0.2, TCP 22/80/443. On the public VPS, bind the router and phone to separate WireGuard public keys and a single /32 address each, to prevent clients from impersonating other tunnel addresses. Do not configure allow policies from WireGuard to the entire home LAN or WAN; the VPS's 51820/UDP should only be used for WireGuard inbound.
10.2 VPS-Side Installation and Key Generation
Using Ubuntu 24.04 as an example:
sudo apt-get updatesudo apt-get install -y wireguard-toolssudo install -d -m 700 /etc/wireguard
sudo sh -c 'umask 077; wg genkey > /etc/wireguard/wg0.key'sudo sh -c 'wg pubkey < /etc/wireguard/wg0.key > /etc/wireguard/wg0.pub'/etc/wireguard/wg0.key is the private key; do not put it in public logs, blogs, or version repositories. After obtaining the public keys of each endpoint, write the VPS's /etc/wireguard/wg0.conf:
[Interface]Address = 10.77.0.1/24ListenPort = 51820PrivateKey = <仅填 VPS 本机私钥>
[Peer]# RouterPublicKey = <ROUTER_PUBLIC_KEY>AllowedIPs = 10.77.0.2/32
[Peer]# PhonePublicKey = <PHONE_PUBLIC_KEY>AllowedIPs = 10.77.0.3/32After saving, restrict file permissions and start the service:
sudo chmod 600 /etc/wireguard/wg0.confsudo wg-quick strip wg0 >/dev/nullsudo systemctl enable --now wg-quick@wg0sudo wg show wg0sudo ss -lunp | grep ':51820'In the VPS cloud security group/host firewall, allow UDP 51820 separately. There is no need to expose LuCI's 80/443 or the router SSH port 22 directly to the public internet.
Clients forward traffic to each other through the same VPS, so the VPS needs IPv4 forwarding enabled:
echo 'net.ipv4.ip_forward=1' | sudo tee /etc/sysctl.d/90-wireguard-forward.confsudo sysctl --systemSecurity note: Enabling IP forwarding only gives the host forwarding capability; it does not mean all forwarding should be allowed. The host firewall must restrict reachability between WireGuard peers.
10.3 OpenWrt-Side Installation and Interface Creation
apk updateapk add wireguard-tools kmod-wireguard luci-proto-wireguardIf kmod-wireguard (no such package) appears, first check the exact version of the currently running kernel and the corresponding OpenWrt kmods software repository, rather than immediately concluding that "WireGuard is not supported." This is especially easy to run into after an image upgrade or when the kernel version does not match.
Generate a dedicated key on the router:
umask 077mkdir -p /etc/wireguardwg genkey > /etc/wireguard/router.keywg pubkey < /etc/wireguard/router.key > /etc/wireguard/router.pubchmod 600 /etc/wireguard/router.keyAdd the public key of router.pub to the router Peer on the VPS; write the VPS's public key into the OpenWrt peer configuration. The UCI snippet below is a new-device example; if a wg0 or vps_peer with the same name already exists, check first to avoid overwriting it.
cp /etc/config/network /etc/config/network.before-wg
uci set network.wg0='interface'uci set network.wg0.proto='wireguard'uci set network.wg0.private_key="$(cat /etc/wireguard/router.key)"uci add_list network.wg0.addresses='10.77.0.2/32'
uci set network.vps_peer='wireguard_wg0'uci set network.vps_peer.description='remote-management-vps'uci set network.vps_peer.public_key='<VPS_PUBLIC_KEY>'uci set network.vps_peer.endpoint_host='<VPS_PUBLIC_IP>'uci set network.vps_peer.endpoint_port='51820'uci set network.vps_peer.persistent_keepalive='25'uci set network.vps_peer.route_allowed_ips='1'uci add_list network.vps_peer.allowed_ips='10.77.0.0/24'uci commit network
ifup wg0ifstatus wg0wg show wg0This configuration writes the router's private key to /etc/config/network, so OpenWrt configuration backups are also sensitive files; before sharing the output of uci show network, remove the private key and any credentials.
If, after ifup wg0, proto: none or NO_DEVICE appears, first check whether the actual protocol script exists:
ls -l /lib/netifd/proto/wireguard.shubus call network get_proto_handlersRight after installing the protocol package, the running netifd may not yet have loaded the new protocol. If you have a reliable LAN management/recovery channel, you may consider running /etc/init.d/network restart and then ifup wg0 again. This operation will temporarily disconnect the network and SSH, so it is not suitable to execute directly on the only remote entry point.
10.4 Phone-Side Configuration
Create a tunnel in the WireGuard mobile client; the phone's private key is generated and saved directly on the phone. Example:
[Interface]Address = 10.77.0.3/32PrivateKey = <PHONE_PRIVATE_KEY,不外传>
[Peer]PublicKey = <VPS_PUBLIC_KEY>Endpoint = <VPS_PUBLIC_IP>:51820AllowedIPs = 10.77.0.0/24PersistentKeepalive = 25Also configure the phone's public key and AllowedIPs = 10.77.0.3/32 in the VPS's [Peer]. On the phone side, do not set AllowedIPs to 0.0.0.0/0, unless you explicitly want to route all of the phone's IPv4 traffic through the VPN; the current goal is only to remotely manage the router.
10.5 Firewall: Only Expose Router Management Services
On the OpenWrt router side: Create a separate zone for wg0, deny inbound traffic from WireGuard to the router by default, and only allow the specified phone address to access the management port.
cp /etc/config/firewall /etc/config/firewall.before-wg
uci set firewall.wgmgmt='zone'uci set firewall.wgmgmt.name='wgmgmt'uci add_list firewall.wgmgmt.network='wg0'uci set firewall.wgmgmt.input='REJECT'uci set firewall.wgmgmt.output='ACCEPT'uci set firewall.wgmgmt.forward='REJECT'
uci set firewall.allow_phone_mgmt='rule'uci set firewall.allow_phone_mgmt.name='Allow-Phone-WireGuard-Management'uci set firewall.allow_phone_mgmt.src='wgmgmt'uci set firewall.allow_phone_mgmt.src_ip='10.77.0.3/32'uci set firewall.allow_phone_mgmt.dest_ip='10.77.0.2'uci set firewall.allow_phone_mgmt.proto='tcp'uci set firewall.allow_phone_mgmt.dest_port='22 80 443'uci set firewall.allow_phone_mgmt.target='ACCEPT'uci set firewall.allow_phone_mgmt.family='ipv4'
uci commit firewallfw4 check/etc/init.d/firewall reloadHere, do not add forwarding rules for wgmgmt → lan or wgmgmt → wan, so the phone is not automatically allowed to access other clients on the home network.
On the VPS side: You also need to allow wg0 → wg0 forwarding from the phone to the router, allow return packets for established connections, and deny access between other WireGuard peers. The specific rules cannot be applied directly without considering the VPS's existing firewall architecture:
- A typical VPS may use UFW, native nftables, or iptables.
- After Docker is installed,
FORWARDmay be set by Docker toDROP, and theDOCKER-USERchain may exist. iptables-nftandiptables-legacyare two different rule backends; one backend showingACCEPTdoes not mean the other backend allows traffic.- Docker 29 can optionally use the native nftables backend; in that case,
DOCKER-USERmay not exist or take effect, and rules must be migrated according to the official Docker documentation.
You can first perform a read-only audit:
sudo iptables -Vsudo iptables-nft -S FORWARDsudo iptables-nft -S DOCKER-USER 2>/dev/null || truesudo nft list rulesetsudo systemctl is-active docker || trueIf the VPS is indeed running Docker's iptables-nft backend, the DOCKER-USER chain exists, and wg0 is the dedicated management tunnel, you can use the following scenario-specific example. This is not a universal command for all VPSs; before executing it, save a snapshot of the current firewall and prepare a recovery entry point via the cloud provider console.
# Run on the VPS; only add restrictions to client-to-client forwarding for wg0 -> wg0sudo iptables-nft -S DOCKER-USER >/dev/null || { echo 'DOCKER-USER 不存在:不要执行此分支'; exit 1;}
sudo iptables-nft -N WG_ONLY_MGMT 2>/dev/null || truesudo iptables-nft -F WG_ONLY_MGMT
# Allow the phone to send to the specified TCP management port on the routersudo iptables-nft -A WG_ONLY_MGMT -s 10.77.0.3/32 -d 10.77.0.2/32 \ -p tcp -m multiport --dports 22,80,443 -j ACCEPT# Allow the router to send replies; do not open new reverse connectionssudo iptables-nft -A WG_ONLY_MGMT -s 10.77.0.2/32 -d 10.77.0.3/32 \ -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPTsudo iptables-nft -A WG_ONLY_MGMT -j DROP
# Add a redirect rule idempotently; will not change the global FORWARD policysudo iptables-nft -C DOCKER-USER -i wg0 -o wg0 -j WG_ONLY_MGMT 2>/dev/null || \ sudo iptables-nft -I DOCKER-USER 1 -i wg0 -o wg0 -j WG_ONLY_MGMT
sudo iptables-nft -S WG_ONLY_MGMTsudo iptables-nft -S DOCKER-USERThis example only controls forwarding between peers: you still need to restrict local access from wg0 through the VPS's INPUT firewall, and check whether other existing earlier rules bypass the restrictions. For pure nftables, UFW, iptables-legacy, or Docker 29's native nftables backend, do not copy this script. In addition, the example rules are runtime-only: they may be lost after a VPS or Docker restart, so they must be persisted according to the actual firewall management system, and restart recovery must be verified separately.
Do not run iptables -F, change FORWARD globally to ACCEPT, or directly overwrite Docker's default rules.
10.6 Verify Remote Management from a Cellular Network
- Run
wg show wg0on the router and confirm that there has been a recent handshake with the VPS. - On the VPS, use
wg show wg0to confirm that both the router and phone peers are updatinglatest handshakeand transfer counters. - On the phone, turn off Wi-Fi and use the cellular network to connect to WireGuard.
- In the phone browser, visit
http://10.77.0.2/cgi-bin/luci/; if trusted HTTPS is configured, prefer HTTPS. - Also confirm that access to other unauthorized home LAN addresses fails, to verify that the least-privilege rules are actually in effect.
- Test separately whether automatic recovery works after rebooting the VPS, Docker, and router; without actual restart tests, you should not claim “permanently reliable.” This original record confirms that remote phone access succeeded, but does not confirm all restart scenarios or 24-hour stability.
WireGuard's
latest handshakeonly proves peer key exchange; it cannot by itself prove that the VPS allows forwarding between clients, nor that the router firewall allows LuCI access.
11. Common Troubleshooting Reference Table
| Symptom | Check first | Not recommended |
|---|---|---|
| XMiR-Patcher cannot unlock | Model, stock firmware version, current tool support status | Forcing an exploit for another model |
| Cannot access LuCI after flashing | Physical LAN port, DHCP, computer gateway, temporary system state | Immediately performing ubiformat a second time |
| Software feed update fails | WAN, default route, DNS, time, HTTPS | Repeatedly reflashing or arbitrarily switching to unfamiliar feeds |
apk package signature is untrusted |
The package's actual source and key, architecture, version | Globally disabling signature verification |
| HomeProxy menu does not appear | Installation status, LuCI cache, rpcd and ACL | Directly reinstalling OpenWrt |
| HomeProxy reports null value | Main node reference, configuration generator | Deleting all nodes and then randomly modifying JSON |
| sing-box reports legacy inbound fields | Whether the generator matches the core version | Deleting only the fields without verifying traffic-splitting semantics |
WireGuard NO_DEVICE |
wireguard.sh, netifd protocol registration |
Repeatedly creating interfaces without checking |
| WireGuard has completed handshake but phone access fails | VPS forwarding rules, Docker backend, router zone | Setting all VPN input and forwarding to ACCEPT |
| Stops working after reboot | systemd/procd autostart, rule persistence, Docker timing | Treating “works once” as persistence verification |
12. Maintenance, Backup, and Rollback
It is recommended to keep at least three types of backups, stored separately from public tutorials:
- Factory partition backups: original images such as MTD/Factory/NVRAM/Bootloader, kept offline and encrypted for personal use only.
- OpenWrt configuration backups:
/etc/config, key custom scripts, and necessary/etc/wireguardfiles. Archives containing private keys must be encrypted and access-restricted, and must not be committed to public repositories. - VPS backups: WireGuard configuration, necessary systemd units, custom firewall rules, and recovery instructions; avoid collecting or sharing plaintext private keys.
Common read-only health checks:
# OpenWrtubus call system boardip -4 route show defaultifstatus wanifstatus wg0wg show wg0pidof sing-box || truedf -h /overlayfree -m
# VPS# sudo systemctl status wg-quick@wg0 --no-pager# sudo wg show wg0If only a third-party LuCI theme is displaying incorrectly, consider restoring luci.main.mediaurlbase to /luci-static/bootstrap via SSH on an available LAN; if HomeProxy traffic splitting is abnormal, stop HomeProxy first and verify the routing/DNS recovery. Do not conflate "restoring a theme," "fixing the network," and "reflashing the firmware" into a single recovery action.
13. Boundaries and Trade-offs of This Solution
| Choice | Advantages | Costs and Risks |
|---|---|---|
| Keep the factory Bootloader | Fewer additional Bootloader changes | Must strictly follow the factory UBI dual-partition and boot flag rules |
| Third-party HomeProxy management layer | Configuring nodes and rules in LuCI is fairly intuitive | Must match the core version; risk from maintaining third-party packages/scripts |
| sing-box-tiny | May be more suitable when storage is tight | Build features may differ; protocol support must be confirmed |
| Self-hosted WireGuard VPS relay | Remote access still works behind home NAT, and access permissions can be narrowed | VPS costs, forwarding firewall, key and update maintenance |
| Running Docker on the VPS at the same time | Can reuse an existing server | Docker's FORWARD, firewall backend, and restart timing may affect WG forwarding |
Practical advice: Get basic routing running stably first, then add one component at a time, performing the corresponding health checks, connectivity verification, and configuration backups with each addition. Transparent proxying and remote management especially require retaining an independent LAN fallback entry point.
Official and Project References
- OpenWrt: Xiaomi AX3000T device page and installation steps
- OpenWrt 25.12.6: mediatek/filogic images and SHA-256
- XMiR-Patcher project
- OpenWrt: APK package manager
- OpenWrt: Package management
- HomeProxy project
- Glass theme and APK installation instructions
- sing-box official migration documentation
- OpenWrt: WireGuard Client
- WireGuard official documentation
- Docker official: Packet filtering and firewalls
- Docker official: nftables backend
.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre > code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:'gutter code';grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter > *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, ' ');padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.4px;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:'';position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:6.4px;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:'\a0'}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(30.4px + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:'';position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:'';position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(30.4px + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:'';position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:33.6px;height:8.96px;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:'';position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:4px;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:3.2px;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:40px;height:40px;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:'';position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:'';position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:7.6px;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:5.6px;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:2px 12px;border-radius:3.2px;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 4px, 0)}.expressive-code .copy .feedback::after{content:'';position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:32px;height:32px}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(32px + var(--ec-codePadInl))}.expressive-code [data-language]::before{content:attr(data-language);position:absolute;z-index:2;right:8px;top:8px;padding:1.6px 8px;font-family:"JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-size:var(--ec-languageBadge-fontSize);font-weight:var(--ec-languageBadge-fontWg);text-transform:uppercase;color:var(--ec-languageBadge-fontCol);background:var(--ec-languageBadge-bg);opacity:var(--ec-languageBadge-opa);border-radius:var(--ec-languageBadge-brdRad);border-width:var(--ec-languageBadge-brdWd);border-color:var(--ec-languageBadge-brdCol);border-style:solid;pointer-events:none;transition:opacity 0.3s}.expressive-code .frame.has-title [data-language]::before,.expressive-code .frame.is-terminal [data-language]::before{top:40px}@media (hover: none){.expressive-code .frame [data-language]::before{opacity:1;margin-right:48px}.expressive-code .frame [data-language]:active::before{opacity:0}}@media (hover: hover){.expressive-code .frame [data-language]::before{opacity:1}.expressive-code .frame:hover [data-language]::before{opacity:0}}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:"";width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:'';position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-collapse{position:relative}.expressive-code .ec-collapse__content{position:relative}.expressive-code .ec-collapse.ec-collapse--collapsed .ec-collapse__content{max-height:var(--ec-collapse-preview-height, 280px);overflow:hidden}.expressive-code .ec-collapse.ec-collapse--expanded .ec-collapse__content{max-height:none}.expressive-code .ec-collapse__gradient{position:absolute;bottom:0;left:0;right:0;height:80px;background:linear-gradient( to bottom, transparent 0%, var(--ec-collapse-bg-color, var(--code-background, #020110)) 100% );pointer-events:none;opacity:1;transition:opacity 0.3s ease;z-index:10}.expressive-code .ec-collapse.ec-collapse--expanded .ec-collapse__gradient{opacity:0;pointer-events:none}.expressive-code .ec-collapse__toggle{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 auto;padding:6px 16px;background-color:rgba(255, 255, 255, 0.1);border:1px solid rgba(255, 255, 255, 0.2);border-radius:20px;color:var(--ec-collapse-accent-color, var(--sl-color-accent, var(--accent-color, #3b82f6)));font-size:13.6px;font-weight:500;cursor:pointer;transition:background-color 0.2s ease, border-color 0.2s ease}.expressive-code .ec-collapse.ec-collapse--collapsed .ec-collapse__toggle{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:20;margin:0}.expressive-code .ec-collapse.ec-collapse--expanded .ec-collapse__toggle{position:relative;margin:12px auto}.expressive-code .ec-collapse__toggle:hover{background-color:rgba(255, 255, 255, 0.15);border-color:rgba(255, 255, 255, 0.3)}.expressive-code .ec-collapse__toggle:focus-visible{outline:2px solid var(--ec-collapse-accent-color, var(--sl-color-accent, var(--accent-color, #3b82f6)));outline-offset:2px}.expressive-code .ec-collapse__icon{transition:transform 0.3s ease}.expressive-code .ec-collapse.ec-collapse--expanded .ec-collapse__icon{transform:rotate(180deg)}.expressive-code .ec-collapse__text-collapse{display:none}.expressive-code .ec-collapse.ec-collapse--expanded .ec-collapse__text-expand{display:none}.expressive-code .ec-collapse.ec-collapse--expanded .ec-collapse__text-collapse{display:inline}.editor-markdown[data-theme="light"] .ec-collapse__gradient{background:linear-gradient( to bottom, transparent 0%, var(--ec-collapse-bg-color, var(--code-background, #f6f7f9)) 100% )}.editor-markdown[data-theme="light"] .ec-collapse__toggle{background-color:rgba(0, 0, 0, 0.05);border-color:rgba(0, 0, 0, 0.15)}.editor-markdown[data-theme="light"] .ec-collapse__toggle:hover{background-color:rgba(0, 0, 0, 0.08);border-color:rgba(0, 0, 0, 0.25)}html.light .ec-collapse__gradient,body.light .ec-collapse__gradient,.expressive-code [data-theme="light"] .ec-collapse__gradient,.expressive-code [data-color-scheme="light"] .ec-collapse__gradient{background:linear-gradient( to bottom, transparent 0%, var(--ec-collapse-bg-color, var(--code-background, #f6f7f9)) 100% )}html.light .ec-collapse__toggle,body.light .ec-collapse__toggle,.expressive-code [data-theme="light"] .ec-collapse__toggle,.expressive-code [data-color-scheme="light"] .ec-collapse__toggle{background-color:rgba(0, 0, 0, 0.05);border-color:rgba(0, 0, 0, 0.15)}html.light .ec-collapse__toggle:hover,body.light .ec-collapse__toggle:hover,.expressive-code [data-theme="light"] .ec-collapse__toggle:hover,.expressive-code [data-color-scheme="light"] .ec-collapse__toggle:hover{background-color:rgba(0, 0, 0, 0.08);border-color:rgba(0, 0, 0, 0.25)}@media (prefers-color-scheme: light){html:not([data-theme="dark"]):not(.dark) .ec-collapse__gradient{background:linear-gradient( to bottom, transparent 0%, var(--ec-collapse-bg-color, var(--code-background, #f6f7f9)) 100% )}html:not([data-theme="dark"]):not(.dark) .ec-collapse__toggle{background-color:rgba(0, 0, 0, 0.05);border-color:rgba(0, 0, 0, 0.15)}html:not([data-theme="dark"]):not(.dark) .ec-collapse__toggle:hover{background-color:rgba(0, 0, 0, 0.08);border-color:rgba(0, 0, 0, 0.25)}}.expressive-code .ec-collapse .frame .header,.expressive-code .ec-collapse .frame figcaption{display:flex;align-items:center;justify-content:flex-start}.expressive-code .ec-collapse .frame.is-terminal .header .title{flex:1;text-align:center}.expressive-code .ec-collapse__header-toggle{display:inline-flex;align-items:center;gap:5.6px;margin-inline-start:auto;padding:4px 8px;font-size:12.8px;font-weight:400;background:transparent;border:none;color:inherit;opacity:1;cursor:pointer;transition:opacity 0.2s ease;white-space:nowrap}.expressive-code .ec-collapse__header-toggle:hover{opacity:0.7}.expressive-code .ec-collapse__header-toggle:focus-visible{opacity:1;outline:2px solid currentColor;outline-offset:2px;border-radius:2px}.expressive-code .ec-collapse__header-icon{transition:transform 0.2s ease}.expressive-code .ec-collapse--expanded .ec-collapse__header-icon{transform:rotate(180deg)}.expressive-code .ec-collapse--collapsed .ec-collapse__header-toggle .ec-collapse__text-expand{display:inline}.expressive-code .ec-collapse--collapsed .ec-collapse__header-toggle .ec-collapse__text-collapse{display:none}.expressive-code .ec-collapse--expanded .ec-collapse__header-toggle .ec-collapse__text-expand{display:none}.expressive-code .ec-collapse--expanded .ec-collapse__header-toggle .ec-collapse__text-collapse{display:inline}@media (prefers-reduced-motion: reduce){.expressive-code .ec-collapse__gradient,.expressive-code .ec-collapse__toggle,.expressive-code .ec-collapse__icon,.expressive-code .ec-collapse__header-toggle,.expressive-code .ec-collapse__header-icon{transition:none}} .editor-markdown,.editor-markdown:not([data-theme='one-dark-pro']) .expressive-code[data-theme='one-dark-pro']{--ec-brdRad:12px;--ec-brdWd:1.5px;--ec-brdCol:#3c424e;--ec-codeFontFml:var(--font-code, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);--ec-codeFontSize:14px;--ec-codeFontWg:400;--ec-codeLineHt:24px;--ec-codePadBlk:16px;--ec-codePadInl:21.6px;--ec-codeBg:#282c34;--ec-codeFg:#abb2bf;--ec-codeSelBg:#67769660;--ec-gtrFg:#767c89;--ec-gtrBrdCol:#767c8933;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#abb2bfd2;--ec-uiFontFml:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';--ec-uiFontSize:14.4px;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:4px;--ec-uiPadInl:16px;--ec-uiSelBg:#2c313a;--ec-uiSelFg:#d7dae0;--ec-focusBrd:#3e4452;--ec-sbThumbCol:#4e566660;--ec-sbThumbHoverCol:#60697afd;--ec-tm-lineMarkerAccentMarg:0px;--ec-tm-lineMarkerAccentWd:2.4px;--ec-tm-lineMarkerLabelPadInl:3.2px;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:4.8px;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:3.2px;--ec-tm-inlMarkerPad:2.4px;--ec-tm-insDiffIndContent:'+';--ec-tm-delDiffIndContent:'-';--ec-tm-markBg:#00548680;--ec-tm-markBrdCol:#007cb1d0;--ec-tm-insBg:#005a4a80;--ec-tm-insBrdCol:#008371d0;--ec-tm-insDiffIndCol:#2fb6a2d0;--ec-tm-delBg:#822c4d80;--ec-tm-delBrdCol:#af5573d0;--ec-tm-delDiffIndCol:#e686a4d0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:1.6px 1.6px 3.2px #0000005b;--ec-frm-edActTabBg:#282c34;--ec-frm-edActTabFg:#dcdcdc;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:null;--ec-frm-edActTabIndBtmCol:#b4b4b4;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:12px;--ec-frm-edTabBarBg:#21252b;--ec-frm-edTabBarBrdCol:#3c424e;--ec-frm-edTabBarBrdBtmCol:transparent;--ec-frm-edBg:#282c34;--ec-frm-trmTtbFg:#9da5b4;--ec-frm-trmTtbDotsFg:#9da5b4;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#282c34;--ec-frm-trmTtbBrdBtmCol:#3c424e;--ec-frm-trmBg:#282c34;--ec-frm-inlBtnFg:#abb2bf;--ec-frm-inlBtnBg:#abb2bf;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#abb2bf;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#5c7f42;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.75'%3E%3Cpath%20d%3D'M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201'%2F%3E%3Crect%20x%3D'6'%20y%3D'5'%20width%3D'16'%20height%3D'18'%20rx%3D'1.5'%20ry%3D'1.5'%2F%3E%3C%2Fsvg%3E");--ec-frm-trmIcon:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2060%2016'%20preserveAspectRatio%3D'xMidYMid%20meet'%3E%3Ccircle%20cx%3D'8'%20cy%3D'8'%20r%3D'8'%2F%3E%3Ccircle%20cx%3D'30'%20cy%3D'8'%20r%3D'8'%2F%3E%3Ccircle%20cx%3D'52'%20cy%3D'8'%20r%3D'8'%2F%3E%3C%2Fsvg%3E");--ec-languageBadge-fontSize:12px;--ec-languageBadge-fontCol:darkblue;--ec-languageBadge-fontWg:bold;--ec-languageBadge-bg:lightblue;--ec-languageBadge-brdRad:4px;--ec-languageBadge-opa:1;--ec-languageBadge-brdWd:0px;--ec-languageBadge-brdCol:transparent;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#abb2bf;--ec-cs-closedBgCol:rgb(84 174 255 / 20%);--ec-cs-closedBrdCol:rgb(84 174 255 / 50%);--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:rgb(84 174 255 / 10%);--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%3E%3Cpath%20d%3D'm8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z'%2F%3E%3C%2Fsvg%3E");--ec-cs-collapseIcon:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%3E%3Cpath%20d%3D'M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z'%2F%3E%3C%2Fsvg%3E");--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit}.expressive-code .ec-line :where(span[data-pv-ec-token]),.editor-markdown:not([data-theme='one-dark-pro']) .expressive-code[data-theme='one-dark-pro'] .ec-line :where(span[data-pv-ec-token]){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}.editor-markdown[data-theme='one-light'] .expressive-code:not([data-theme='one-dark-pro']),.expressive-code[data-theme='one-light']{--ec-brdCol:#d4d4d4;--ec-codeBg:#fafafa;--ec-codeFg:#383a42;--ec-codeSelBg:#e5e5e6;--ec-gtrFg:#8a8a8c;--ec-gtrBrdCol:#8a8a8c33;--ec-gtrHlFg:#383a42bc;--ec-uiSelBg:#dbdbdc;--ec-uiSelFg:#232324;--ec-focusBrd:#526fff;--ec-sbThumbCol:#4e56666e;--ec-sbThumbHoverCol:#5a637597;--ec-tm-markBg:#57c3fd80;--ec-tm-insBg:#4cccb780;--ec-tm-insDiffIndCol:#006e5dd0;--ec-tm-delBg:#fd9cba80;--ec-tm-delDiffIndCol:#984060d0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:1.6px 1.6px 3.2px #00000028;--ec-frm-edActTabBg:#fafafa;--ec-frm-edActTabFg:#121417;--ec-frm-edActTabIndBtmCol:null;--ec-frm-edTabBarBg:#eaeaeb;--ec-frm-edTabBarBrdCol:#d4d4d4;--ec-frm-edBg:#fafafa;--ec-frm-trmTtbFg:#424243;--ec-frm-trmTtbDotsFg:#424243;--ec-frm-trmTtbBg:#eaeaeb;--ec-frm-trmTtbBrdBtmCol:#d4d4d4;--ec-frm-trmBg:#fafafa;--ec-frm-inlBtnFg:#383a42;--ec-frm-inlBtnBg:#383a42;--ec-frm-inlBtnBrd:#383a42;--ec-frm-tooltipSuccessBg:#008900;--ec-cs-closedTextCol:#383a42}.editor-markdown[data-theme='one-light'] .expressive-code:not([data-theme='one-dark-pro']) .ec-line :where(span[data-pv-ec-token]),.expressive-code[data-theme='one-light'] .ec-line :where(span[data-pv-ec-token]){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)} .pv-ec-1uh0p8d{--0:#abb2bf;--1:#383a42} .pv-ec-1f1dexa{--0:#61AFEF;--1:#3360C1} .pv-ec-el44zh{--0:#ABB2BF;--1:#383A42} .pv-ec-2qdisw{--0:#98C379;--1:#387138} .pv-ec-36v1zr{--0:#56B6C2;--1:#016C9A} .pv-ec-i02tzx{--0:#D19A66;--1:#875D01} .pv-ec-1tboyb5{--0:#E5C07B;--1:#AF4238} .pv-ec-3bp870{--0:#E6888F;--1:#AF4238} .pv-ec-11a93ag{--0:#56B6C2;--1:#383A42} .pv-ec-mni5d7{--1:#AF4238} .pv-ec-10etu75{--0:#98C379} .pv-ec-ma2mp3{--0:#E6888F} .pv-ec-x52j4a{--0:#9FA3AA;--0fs:italic;--1:#646568;--1fs:italic} .pv-ec-irfo1z{--0:#CD89E1;--1:#A626A4} .pv-ec-1i127vg{--1:#383A42} .pv-ec-p4j6pp{--0:#ABB2BF} .pv-ec-pc1cnk{--0:#56B6C2} .pv-ec-1kr08qr{--0:#CD89E1;--1:#AF4238}Update note: This article is based on actual deployment records and relevant public documentation as of November 2, 2026. Firmware and packages will be updated; before execution, refer to the device's current state, official images, upstream repositories, and documentation for the current version. This article does not contain any actual VPS addresses, personal public keys, subscription links, or device identity information.
Share Article
If this article helped you, please share it with others!












