3492 words
17 minutes

Xiaomi AX3000T Follow-up: OpenClash Primary/Backup Routing, WireGuard Coexistence, and Lag Troubleshooting

Xiaomi AX3000T Follow-up: OpenClash Primary/Backup Routing, WireGuard Coexistence, and Lag Troubleshooting

Scope: A Xiaomi AX3000T already flashed with OpenWrt (RD03; the example uses OpenWrt 25.12.6, kernel 6.12, APK package manager). Other OpenWrt routers with 256 MB of RAM can also refer to this, but check the memory and dependencies yourself.

Nature of this article: This is a follow-up to 《Xiaomi AX3000T OpenWrt Flashing Guide: HomeProxy Routing and WireGuard Remote Management》. Factory SSH unlock, full backup, dual-partition flashing, and basic network configuration are all covered in the previous article and won't be repeated here. This article documents the adjustments made over the following two weeks: switching routing from HomeProxy to OpenClash (Meta / mihomo kernel), the coexistence of WireGuard remote management and OpenClash, and troubleshooting lag on transoceanic lines. Server addresses, subscriptions, passwords, UUIDs, and public keys have all been removed; VPS_PUBLIC_IP, <...>, and 10.77.0.0/24 in the examples are for demonstration only.

1. What You End Up With

Terminal window
Internet
│
上级光猫 / 路由器
│
AX3000T WAN
│
┌────────────────────┐
│ Xiaomi AX3000T │
│ OpenWrt 25.12 │
│ OpenClash (mihomo) │
│ WireGuard client │
└────────────────────┘
│ │
LAN / Wi-Fi │ 加密 UDP 隧道
│ ▼
家中设备 公网 VPS(WireGuard Hub)
▲
│
手机蜂窝网络 WireGuard

Three goals, done separately without interfering with each other:

  • Base OpenWrt system: routing, Wi-Fi, DNS, LuCI, and package management work normally.
  • OpenClash routing: domestic traffic connects directly, everything else goes through the proxy; two proxy lines auto-switch between primary and backup, and specific services are pinned to a designated line.
  • WireGuard remote management: the phone accesses the router's management port via the VPS, without exposing the home intranet or routing all home traffic through the VPS.

The first item (flashing and basic networking) was covered in the previous article; this article only covers the latter two, plus the lag issues encountered after two weeks of use.

LuCI system overview: AX3000T, OpenWrt 25.12.6, running for 9 days
LuCI system overview: AX3000T, OpenWrt 25.12.6, running for 9 days

Current state: OpenWrt 25.12.6, running continuously for 9 days.

2. OpenClash Routing (Meta Kernel)

Only for managing nodes and networks you own or are authorized to use. OpenClash is the LuCI management layer; what actually handles traffic is the Meta (mihomo) kernel. Nodes, policy groups, rule sets, and DNS—these four parts must be checked separately.

2.1 Why Switch from HomeProxy to OpenClash

Requirement HomeProxy + sing-box OpenClash + mihomo
Two lines with automatic primary/backup failover Need to write your own urltest/selection logic fallback policy group supports it directly
Specific services pinned to a certain line Possible, but risky to modify the generator Just write the target policy group in the rule
Change rules without dropping the connection Need to regenerate and restart Controller API hot reload
Version compatibility Ran into sing-box 1.13 removing old fields Meta kernel and OpenClash update in sync

Don't enable both at the same time. Disable and remove HomeProxy before switching, to avoid both trying to take over the firewall and DNS.

2.2 Check Resources and Dependencies Before Installation

The AX3000T has only 256 MB of RAM. In practice, after OpenClash runs, only a few dozen MB of available memory remain, so choose small rule sets.

Terminal window
ubus call system board
free -m
df -h /overlay
apk update

OpenClash requires dnsmasq-full (replacing the default dnsmasq) and nftables transparent-proxy-related modules; refer to the dependency notes on the OpenClash release page for OpenWrt 25.12 / APK. Get the installation package from the Release of the official repository, and verify the version and architecture (AX3000T is aarch64_cortex-a53, choose linux-arm64 for the kernel).

After installation, confirm:

Terminal window
apk list -I | grep -E 'openclash|dnsmasq'
ls /etc/openclash/core/ # clash_meta should be present

2.3 Key Plugin Settings

In LuCI "OpenClash → Plugin Settings", the combination used in this article:

Setting Value Reason
Core Meta Supports Hysteria2 and .mrs rule sets
Run mode fake-ip Fast resolution; traffic splitting is determined by domain name
Proxy mode rule Traffic splitting by rules
UDP proxy On Games, voice, etc.
Disable QUIC On Browser QUIC over UDP can easily bypass rules; force fallback to TCP
IPv6 Off The upstream at home does not provide usable IPv6; avoid leaks and timeouts
Router itself uses proxy On apk on the router and rule updates can also work
Auto-update subscriptions Off Use a handwritten configuration file; do not overwrite it with subscriptions

2.4 Configuration File Structure

Use a handwritten YAML (placed in /etc/openclash/config/); the core consists of three parts:

DNS (fake-ip + domestic domains use domestic DoH)

Terminal window
dns:
enable: true
listen: 0.0.0.0:7874
ipv6: false
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter: ["*.lan", "*.local", "localhost"]
default-nameserver: [223.5.5.5, 119.29.29.29]
proxy-server-nameserver: [https://dns.alidns.com/dns-query]
direct-nameserver: [https://dns.alidns.com/dns-query]
nameserver: ["https://1.1.1.1/dns-query#节点选择"]
nameserver-policy:
rule-set:cn-domain: [https://dns.alidns.com/dns-query]

proxy-server-nameserver is specifically used to resolve node domains, avoiding the deadlock of "resolving a node requires connecting to the node first."

Policy groups (Primary/Backup + dedicated lines)

Terminal window
proxy-groups:
- name: 节点选择
type: select
proxies: [主备切换, 自动选择, 线路A-HY2, 线路B-HY2, 线路A-VLESS, 线路B-VLESS]
- name: 主备切换
type: fallback
proxies: [线路A-HY2, 线路B-HY2, 线路A-VLESS, 线路B-VLESS]
url: https://www.gstatic.com/generate_204
interval: 60
timeout: 5000
- name: 自动选择
type: url-test
proxies: [线路A-HY2, 线路B-HY2, 线路A-VLESS, 线路B-VLESS]
url: https://www.gstatic.com/generate_204
interval: 300
tolerance: 50
lazy: true
- name: 专用线路
type: fallback
proxies: [线路B-HY2, 线路B-VLESS]
url: https://www.gstatic.com/generate_204
interval: 180
timeout: 8000
lazy: true
  • Each server provides both Hysteria2 (UDP) and VLESS + WS + TLS (TCP 443): when UDP is rate-limited or has severe packet loss, fallback will fall back to TCP.
  • "Dedicated line" is used for certain services sensitive to the egress IP (such as social platform accounts), fixed to machine B, and does not drift with primary/backup switching.
  • 节点选择 retains a manual entry, which can be temporarily switched during speed testing; switch back to "Primary/Backup" after testing.

Rules (dedicated → private network direct → domestic direct → proxy for the rest)

Terminal window
rule-providers:
cn-domain:
type: http
behavior: domain
format: mrs
url: https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/cn.mrs
path: ./rule_provider/cn-domain.mrs
interval: 86400
proxy: DIRECT
cn-ip:
type: http
behavior: ipcidr
format: mrs
url: https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/cn.mrs
path: ./rule_provider/cn-ip.mrs
interval: 86400
proxy: DIRECT
rules:
- DOMAIN-SUFFIX,x.com,专用线路
- DOMAIN-SUFFIX,twitter.com,专用线路
- DOMAIN-SUFFIX,twimg.com,专用线路
- DOMAIN-SUFFIX,t.co,专用线路
- DOMAIN-KEYWORD,twitter,专用线路
# …other services that need a fixed egress
- DOMAIN-SUFFIX,lan,DIRECT
- IP-CIDR,10.0.0.0/8,DIRECT,no-resolve
- IP-CIDR,172.16.0.0/12,DIRECT,no-resolve
- IP-CIDR,192.168.0.0/16,DIRECT,no-resolve
- IP-CIDR,100.64.0.0/10,DIRECT,no-resolve
- DOMAIN-SUFFIX,cn,DIRECT
- RULE-SET,cn-domain,DIRECT
- RULE-SET,cn-ip,DIRECT
- MATCH,节点选择
  • .mrs binary rule sets are small and load quickly, suitable for routers with little memory.
  • Dedicated rules must be placed first; a platform often has multiple domains (video CDN, short links, old domains). If one is missed, the "page opens but video lags" situation occurs; add them domain by domain.
  • The WireGuard management subnet is a private network, already covered by the 10.0.0.0/8 direct rules, and will not be proxied.

2.5 Changing Rules: Modify Both Places, Then Hot Reload

When OpenClash starts, it processes the source configuration under config/ into the running configuration, so:

  1. Back up first: cp -a /etc/openclash/config/<name>.yaml /etc/openclash/backup-<date>/.
  2. Modify both /etc/openclash/config/<name>.yaml (source) and /etc/openclash/<name>.yaml (running). If you modify only the running configuration, it will be overwritten on the next restart; if you modify only the source configuration, it will take effect only after a restart.
  3. Hot reload through the controller API without disconnecting the network:
Terminal window
curl -s -X PUT "http://127.0.0.1:9090/configs?force=true" \
-H "Authorization: Bearer <控制器 secret>" \
-H 'Content-Type: application/json' \
-d '{"path":"/etc/openclash/<name>.yaml"}'
  1. Verify: curl -s -H "Authorization: Bearer <secret>" http://127.0.0.1:9090/rules | grep <domain>.

2.6 Acceptance Check

Terminal window
pidof clash || pidof mihomo
/etc/init.d/openclash enabled; echo "exit=$?"
free -m
  • Test one domestic site, one foreign site, and one site in the dedicated rules; check the actually matched rule and egress in the panel's "Connections".
  • After disabling OpenClash, confirm that the router can resume direct Internet access.
  • The panel (e.g., zashboard) is at 9090; access it only from the LAN or within WireGuard, and set the controller secret.
OpenClash running status: Meta core, rule mode
OpenClash running status: Meta core, rule mode

OpenClash running status, Meta core, rule mode; the control panel address has been redacted.

zashboard policy groups: Primary/Backup and Muse / Meta
zashboard policy groups: Primary/Backup and Muse / Meta

Policy groups in zashboard: Primary/Backup currently uses Hysteria2 US-LA-CN2GAI; Muse / Meta is fixed to US-LA-198.

3. Managing the Router from the Internet with WireGuard

Use a public VPS as the Hub; this suits cases where the home WAN is behind NAT. Forward only the management subnet (split tunnel).

3.1 Addresses and Least Privilege

Device WireGuard address Purpose
VPS 10.77.0.1/24 Hub
AX3000T 10.77.0.2/32 Managed endpoint
Phone 10.77.0.3/32 Remote management client

Allow only: phone → router TCP 22 / 80 / 443 / 9090 (9090 is the OpenClash panel). Bind each peer to its own public key and a single /32.

3.2 VPS Side

Terminal window
sudo apt-get update && sudo apt-get install -y wireguard-tools
sudo 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.conf:

Terminal window
[Interface]
Address = 10.77.0.1/24
ListenPort = 51820
PrivateKey = <VPS 私钥>
[Peer]
# Router
PublicKey = <ROUTER_PUBLIC_KEY>
AllowedIPs = 10.77.0.2/32
[Peer]
# Phone
PublicKey = <PHONE_PUBLIC_KEY>
AllowedIPs = 10.77.0.3/32
Terminal window
sudo chmod 600 /etc/wireguard/wg0.conf
sudo systemctl enable --now wg-quick@wg0
echo 'net.ipv4.ip_forward=1' | sudo tee /etc/sysctl.d/90-wireguard-forward.conf
sudo sysctl --system

In the cloud security group, allow only UDP 51820; do not expose 22/80/443/9090 to the public internet.

3.3 OpenWrt Side

Terminal window
apk update
apk add wireguard-tools kmod-wireguard luci-proto-wireguard
umask 077; mkdir -p /etc/wireguard
wg genkey > /etc/wireguard/router.key
wg pubkey < /etc/wireguard/router.key > /etc/wireguard/router.pub
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.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 wg0 && wg show wg0

Before kmod-wireguard (no such package), first verify the kernel version and the kmods source. If NO_DEVICE appears after ifup, check /lib/netifd/proto/wireguard.sh, and if necessary restart network while a LAN fallback channel is available.

Coexisting with OpenClash: If endpoint_host uses a domain name, the router resolves it through OpenClash's fake-ip and may get a fake 198.18.x.x address, causing the handshake to fail. Use an IP for the endpoint, or add the domain to fake-ip-filter.

3.4 Phone Side

Terminal window
[Interface]
Address = 10.77.0.3/32
PrivateKey = <手机私钥,不外传>
[Peer]
PublicKey = <VPS_PUBLIC_KEY>
Endpoint = <VPS_PUBLIC_IP>:51820
AllowedIPs = 10.77.0.0/24
PersistentKeepalive = 25

Do not set the phone's AllowedIPs to 0.0.0.0/0; the goal is only to manage the router.

3.5 Firewall

Router side: Put wg0 in a separate zone, deny by default, and allow only the phone to access the management ports.

Terminal window
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 9090'
uci set firewall.allow_phone_mgmt.target='ACCEPT'
uci set firewall.allow_phone_mgmt.family='ipv4'
uci commit firewall
fw4 check && /etc/init.d/firewall reload

VPS side: Allow forwarding and return packets for phone→router on wg0 → wg0, and deny other peers from reaching each other. How to write the rules depends on whether the VPS uses UFW, nftables, iptables-nft, or iptables-legacy, and whether Docker has taken over FORWARD. Start with a read-only audit:

Terminal window
sudo iptables -V
sudo iptables-nft -S FORWARD
sudo iptables-nft -S DOCKER-USER 2>/dev/null || true
sudo nft list ruleset

If it is indeed Docker + iptables-nft and DOCKER-USER exists, you can use this limited-scope example:

Terminal window
sudo iptables-nft -N WG_ONLY_MGMT 2>/dev/null || true
sudo iptables-nft -F WG_ONLY_MGMT
sudo 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,9090 -j ACCEPT
sudo iptables-nft -A WG_ONLY_MGMT -s 10.77.0.2/32 -d 10.77.0.3/32 \
-m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
sudo iptables-nft -A WG_ONLY_MGMT -j DROP
sudo 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

These are runtime rules and will be lost on reboot; persist them according to your own firewall system. Do not iptables -F, and do not change FORWARD to ACCEPT globally.

When SSHing directly to the router from the VPS: For connections initiated from the VPS itself to the router, return packets go through the VPS's INPUT chain rather than FORWARD. If INPUT denies wg0 by default, you need to temporarily allow the router's return packets:

Terminal window
sudo iptables-nft -I INPUT 1 -i wg0 -s 10.77.0.2/32 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
# Delete after use: replace -I INPUT 1 with -D INPUT

Allow only return packets for "established connections"; the router must not be able to initiate connections to the VPS. Delete the rule when done, or record it explicitly.

3.6 Verifying from a Cellular Network

  • wg show wg0 on both the router and the VPS show a recent handshake.
  • Turn off Wi-Fi on the phone, connect to WireGuard over cellular, and open http://10.77.0.2/cgi-bin/luci/ and the panel http://10.77.0.2:9090/ui/.
  • Confirm that accessing other home LAN addresses fails.
  • Retest after restarting the VPS, Docker, and the router separately. A successful handshake only proves key exchange; it does not prove that forwarding and the firewall both allow traffic.
LuCI WireGuard status: peer TencentCloud-WireGuard
LuCI WireGuard status: peer TencentCloud-WireGuard

WireGuard status on the router side; a Tencent Cloud server is used as the relay. The endpoint IP and peer public key have been masked.

4. Cross-Border Route Lag Troubleshooting

The most common complaint after deployment is “pages load, but videos stutter constantly.” This section covers my experience actually troubleshooting a Los Angeles CN2 GIA route.

4.1 Get Data First; Don’t Change Configs First

  1. Test long-distance single-threaded downloads. Multi-threaded speed tests can mask problems; video playback is essentially a single connection, so test through OpenClash’s local port on the router:
Terminal window
# On the router, test single-thread speed via the OpenClash HTTP port, 5 times in a row
for i in 1 2 3 4 5; do
curl -x http://<user>:<pass>@127.0.0.1:7890 -o /dev/null -s \
-w "%{speed_download}\n" --max-time 20 https://<远端测速文件>
done

During testing, you can temporarily switch to a specific route under “Node Selection”; switch back to “Primary/Backup Failover” when done.

  1. On the node server, check ss to determine whether it is packet loss/retransmission or insufficient buffer:
Terminal window
ss -tin state established '( sport = :443 )' | grep -E 'cwnd|retrans|rtt'
sysctl net.ipv4.tcp_congestion_control net.core.default_qdisc
tc qdisc show
  • retrans keeps growing and cwnd is very small: route packet loss.
  • Speed fluctuates and occasionally drops to tens of KB/s: this may be a data center equipment issue; keep evidence and contact the provider.

4.2 Server Side: BBR + fq

With high cross-border latency and packet loss, the default cubic algorithm keeps speeds very low. Enable BBR:

Terminal window
mkdir -p /root/backups/net-bbr-$(date +%Y%m%d)
sysctl -a 2>/dev/null | grep -E 'congestion|qdisc|rmem|wmem' > /root/backups/net-bbr-$(date +%Y%m%d)/sysctl-before.txt
tc qdisc show > /root/backups/net-bbr-$(date +%Y%m%d)/qdisc-before.txt
modprobe tcp_bbr && echo tcp_bbr > /etc/modules-load.d/bbr.conf
cat > /etc/sysctl.d/99-bbr.conf <<'EOF'
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
net.core.rmem_max = 33554432
net.core.wmem_max = 33554432
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_notsent_lowat = 131072
EOF
sysctl --system
tc qdisc replace dev eth0 root fq

In testing, on the same route, single-threaded speed increased from about 41 KB/s to about 290 KB/s (during periods when packet loss was still present).

Congestion control and queueing on the server: bbr + fq
Congestion control and queueing on the server: bbr + fq

The node now uses bbr + fq, and cake on the ingress direction has been removed. The terminal styling is rendered; the content is real command output.

4.3 Don’t Do Rate Limiting/Shaping at the Server Ingress

I once tried adding cake rate limiting on the node’s ingress direction to “smooth” traffic, but it became the bottleneck instead. After removing it, under the same conditions, single-threaded speed recovered to about 7–8 MB/s with zero stuttering. Conclusion: when bandwidth is sufficient, don’t add ingress shaping on the node; if you need rate limiting, do it on the client side first (e.g., Hysteria2’s up/down) and set it based on measured values.

Five single-threaded speed tests during evening peak
Five single-threaded speed tests during evening peak

Evening peak on 2026-11-12 at 19:40; five single-threaded tests at 5.12–6.48 MiB/s. The terminal styling is rendered; the content is real command output.

4.4 Still Occasional Stuttering After All Changes: Contact the Provider

If BBR is enabled and the configuration is correct, but a few connections still suddenly drop to tens of KB/s, organize the following evidence and submit a ticket (in the provider’s working language): test time (with time zone), single-threaded speed, mtr results, and retransmission data from ss. The actual cause I encountered was insufficient firewall performance in the data center; the provider recovered after a restart and arranged to replace the equipment.

5. Common Troubleshooting Reference Table

Symptom Check First Not Recommended
All networking drops after OpenClash starts Whether dnsmasq-full is installed, DNS port, memory Reinstalling the system outright
Rule changes do not take effect Whether only one place in the config was changed; whether hot reload was performed Repeatedly restarting the router
Pages load but videos stutter Whether the platform’s CDN domains are missing from the rules; single-threaded speed Looking only at multi-threaded results from speed test sites
Node speed fluctuates ss retransmissions on the server, BBR, whether ingress rate limiting is present Adding rate limiting without testing
WireGuard handshake fails Whether the endpoint is resolved by fake-ip to a fake address Disabling the firewall to troubleshoot
WireGuard handshake succeeds but access fails VPS forwarding/INPUT rules, Docker backend, router zone Setting all VPN input forwarding to ACCEPT
Stops working after reboot Rule persistence, startup order Treating “worked once” as verification of persistence

6. Maintenance, Backup, and Rollback

It is recommended to keep three types of backups, separate from public tutorials:

  • Factory partition backup: store offline and encrypted.
  • OpenWrt configuration: /etc/config, /etc/openclash/config/, /etc/wireguard. OpenClash configs contain node passwords and the controller secret, as sensitive as private keys.
  • VPS configuration: WireGuard, firewall rules, sysctl changes, and rollback commands.

Back up before every change, and after making changes, record “what was changed and how to roll back.”

Common read-only checks:

Terminal window
ubus call system board
ip -4 route show default
ifstatus wan
wg show wg0
pidof clash || pidof mihomo
free -m
df -h /overlay

7. Trade-offs of the Approach

Option Pros Cost
OpenClash + Meta kernel Primary/backup failover, per-service routing, hot reload Memory-hungry; rules must be trimmed on 256 MB machines
Two nodes, dual protocol on each Automatically falls back to TCP when UDP is throttled; can switch over if a single node fails Maintenance cost of two servers
Self-hosted WireGuard hub Remote management even behind NAT, permissions can be narrowed Complex interaction between the VPS firewall and Docker

Practical advice: Add only one component at a time, and verify and back up after each addition. Keep a separate LAN fallback entry point for both transparent proxying and remote management.

References

Update note: First published on 2026-11-12. The previous post (2026-11-02) covered flashing and HomeProxy; this one covers OpenClash, primary/backup lines, lag troubleshooting, and WireGuard coexisting with OpenClash. This article contains no actual server addresses, passwords, subscription links, or device identity information.

Share Article

If this article helped you, please share it with others!

Xiaomi AX3000T Follow-up: OpenClash Primary/Backup Routing, WireGuard Coexistence, and Lag Troubleshooting
https://codqor.com/posts/ax3000t-openclash-wireguard-fix/
Author
Liam
Published at
Related PostsSmart
1
Xiaomi AX3000T OpenWrt Guide: HomeProxy Traffic Splitting and WireGuard Remote Management
TechUsing the Xiaomi AX3000T (RD03) as an example, this practical guide covers unlocking SSH on the stock firmware, making a full backup, flashing OpenWrt while preserving the stock bootloader, and setting up basic networking, HomeProxy, and WireGuard.
2
My 256MB Router Can’t Run OpenClash, So I Built TinyLane and Open-Sourced It
TechThe Xiaomi AX3000T has only 256 MB of RAM, making OpenClash too much of a strain, so I packaged the sing-box core, a Go daemon, and a mobile panel into a single binary called TinyLane, with my daily readings at about 35 MB for the core and 20–28 MB for the panel. This article explains why I wrote it, what it can do, the memory pitfalls I hit, and how to install it; the project is open-sourced under GPL-3.0.
3
One API for Multiple TTS Providers: OpenAI Standard Parameter Mapping (MOSS Example)
TechWhen creating voiceovers for short videos, I used Edge TTS, Gemini, and MOSS together, each with different parameters. I later added /v1/audio/speech to my AI relay: clients call it using the OpenAI standard format while the gateway maps parameters per provider (for MOSS, just one line: voice→voice_id), and this article covers the parameter comparison table, mapping implementation, usage examples, and pitfalls.
4
Self-Hosting an Astro Blog: Pitfalls with R2 Image Hosting, D1, Caddy, and SEO
Techcodqor.com is itself an Astro static blog: posts are stored in Cloudflare D1, images in R2, pages are served from its own server via Caddy, comments use Turnstile, and there is an English mirror. This article records the build process and pitfalls in real chronological order, including overly long Bing titles, missed noindex directives, a build machine being cooled down, and the remediation approach after AdSense rejected the site for "low-value content."
5
Resend Email Sending from 0 to Launch: Domain Verification, Sending Relay, and Bounce Monitoring
TechA complete record of moving server notification emails from QQ Mail SMTP to Resend: choosing a new account and domain, DKIM/SPF/DMARC on Cloudflare, a sending API where only one relay holds the key, the gotchas that quota resets at UTC and receiving also consumes quota, Bark alerts for bounces, and protection against duplicate sends. Together with the previous post on Cloudflare receiving, it covers both sending and receiving.
Random PostsRandom

Comments

Leave a comment

Share your thoughts

Shown after review
Leave the name empty to post as “Anonymous”0 / 3000

Comments

Newest first · 5 at a time

Loading comments…

Profile Image of the Author
Liam
Notes on tech, life, and thoughts.
Categories
Tags
Latest Moments
Site Statistics
Posts
21
Categories
4
Tags
72
Total Words
87,292
Running Days
0 days
Last Activity
0 days ago
Table of Contents