Turning my Phicomm N1 into a side router: setup, routing and automatic failover
My N1 setup, from a Mac-made boot drive to OpenClash routing and a 15-node outage test, including gateway mistakes, IPv6 bypass and firewall troubleshooting.

My phone was on the home Wi-Fi. YouTube worked, X worked, but ChatGPT said my region was unsupported. I tried another US node. Nothing changed.
Eventually I found two routes out of the same phone. Some requests went through the N1. Others took an IPv6 route supplied by the main router and went straight out through my home connection.
I installed iStoreOS, which is based on OpenWrt, on a Phicomm N1 and used OpenClash for routing. At first I only wanted selected devices to use a US node. Later I added automatic failover, then deliberately blocked all 15 nodes to see what would happen to domestic sites and overseas AI services.
My setup: N1, iStoreOS 25.12.5, OpenClash 0.47.156 / Mihomo, a Mac and an iPhone. Installation troubleshooting took place in early October 2026; failover testing extends through October 31. LAN addresses below describe my setup; use your own node credentials. US egress was tested, but the records do not establish a successful final ChatGPT login or Muse registration. This is not an access guarantee. Follow local laws and service terms.
Work out which gateway points where#
The N1 has one Ethernet port. I connected it to a LAN port on the main router, which kept handling broadband access, Wi-Fi and DHCP. Devices stayed on the same Wi-Fi; I only redirected the ones that needed the N1.

Single-port topology: clients use N1, domestic traffic exits directly and overseas traffic uses a US node
The supplied diagram is in Chinese: clients send traffic to the N1, which sends domestic traffic through the home connection and overseas traffic through a US node.
Device | My setting | Where it sends requests |
|---|---|---|
Main router |
| Broadband upstream |
N1 |
| Gateway |
Test phone / computer | Its own address on the same subnet | Gateway and DNS |
The phone points to the N1; the N1 points to the main router. I managed to mix that up later.
A side router can only handle traffic that passes through it. Another gateway, a different DNS path or an IPv6 default route from the main router needs separate attention.
Make the USB drive on a Mac before considering internal storage#
My setup needed the N1, its power supply, Ethernet, a Mac and a USB drive. An HDMI display and USB keyboard also help if you cannot find the management interface.
Choose an image explicitly built for the N1 from the N1 firmware directory. My system runs 25.12.5, but I do not have a complete record of the exact image build I flashed. A filename currently in the directory is not evidence that I used that particular build.
In balenaEtcher, select the image, select the USB drive, then flash and wait for verification. Etcher can read .img.gz directly.

Etcher USB workflow with target-erasure warning
Flashing erases the selected USB drive. Back it up and check its name and capacity. If macOS says it cannot read the disk after successful verification, safely eject it. Do not initialize it. An unrecognized Linux partition does not mean the drive is broken.
The N1 must also be able to boot from USB. A unit already running Linux / OpenWrt with USB boot enabled can be powered off, connected to the prepared drive and powered back on for a check. A stock Android unit needs preparation appropriate to its firmware and boot state, potentially involving a downgrade or ADB. I do not have the complete record of first enabling USB boot on mine, so I am not supplying a universal flashing command.
The maintainer's N1 notes say this single-port build defaults to a DHCP client. Look for it in the main router's client list. I assigned the .250 address later. With a display and keyboard attached, this read-only command on the N1 can help:
ip addr show dev eth0Open its actual address and set an administrative password. My material does not fully establish whether I wrote the system to internal eMMC. This tutorial starts from a bootable system with an accessible interface; overwriting internal storage is not a required step. Before attempting it, check the official script for your firmware version, back up the original system and important data, prepare a recovery method matching the device's state and verify the target storage. Do not interrupt a write. Do not assume plugins installed later on the USB system will migrate with it.
An accessible dashboard does not prove the N1 is online#
Under “Network wizard → Side router,” I used:
Setting | Value |
|---|---|
N1 static address |
|
Subnet mask |
|
N1 upstream gateway |
|
Initial DNS |
|
N1 DHCPv4 server | Disabled; main router provides DHCP |
Reserve the static address on the main router or exclude it from the dynamic pool. If your subnet differs, change the whole addressing plan accordingly.

N1 gateway points to main router; phone gateway and DNS point to N1
I had entered my Mac's address, 192.168.1.65, as both the N1's gateway and DNS. Because the Mac could open the dashboard, I assumed the box was online. The N1 itself could not reach the internet or download dependencies.
I corrected the gateway and DNS before continuing. On the N1, these checks help:
ip -4 route
nslookup downloads.openwrt.orgThe first shows whether the default route goes through the main router. The second tests resolution. Successful resolution still needs an actual download check.
Read the specific OpenClash installation error#
The first failure said:
./install.sh: line 4: opkg: not foundThe old installer still called opkg; iStoreOS 25.12 had moved to apk. The official release notes document that change. Different DNS cannot fix a package-version mismatch.
The package I eventually used was:
OpenClash_0.47.156+aarch64_core_sdk_25.12.runThat is the historical package matching my system and ARM64 architecture, from a third-party 25.12 bundle release, not a permanent recommendation to pin that filename. Verify the source, system release and architecture, then upload through “iStore → Manual install.” Check the menu, core and startup log afterward. Third-party .run bundles execute code; do not try unknown packages casually.
The next failure was different:
wget exited with error 4That led back to connectivity and the incorrect gateway and DNS. These were consecutive problems with different fixes.

Different checks for missing opkg and wget download failure
I also downloaded and checked PassWall at the time. This workflow uses OpenClash; it does not require two transparent proxy services running together.
Start with one phone, then build the routing policy#
I backed up the working configuration first. Subscriptions go under subscription settings; an existing Clash YAML goes under configuration management. Select the file, confirm that the Mihomo core starts, use Rule mode, check TUN and DNS interception, then restart and inspect the log.
My first working connection used a US Trojan node from the subscription. I selected one reachable node manually and tested the iPhone:
- In Settings → Wi-Fi → the network's information button → Configure IP → Manual, keep the phone's own unique address and correct mask. Set Router to
192.168.1.250. - Under Configure DNS → Manual, keep only
192.168.1.250. - Open a domestic site and YouTube while watching OpenClash connections. Confirm that requests reach the N1 and match the intended group.
Do not give the phone the N1's .250 address or collide with the DHCP pool. If 2.4 GHz and 5 GHz have separate network names, check both; their saved settings may differ.
My rules send LAN and domestic destinations directly, AI traffic to the overseas AI group, YouTube and X to the streaming/social group, and unmatched traffic to the general overseas policy. The late-October configuration had 57 explicit AI-domain rules ahead of domestic domain and IP matching. Authentication and static-resource domains matter as well as the homepage.
DNS follows a related split. Domestic domains, proxy-server domains and initial resolution for unclassified domains use domestic encrypted DNS. Known overseas AI domains resolve through the proxy. Otherwise, a domestic site's “direct” rule would not help during a total node outage if its DNS still depended on the overseas path. A 198.18.x.x result in Fake-IP mode is an internal mapping, not the website's real egress address.
Following the overseas AI group down through its nested groups leads only to proxies, never DIRECT. Empty groups use REJECT. An empty group and a populated group whose nodes are all unreachable are different cases; test both. If OpenClash stops altogether, independent firewall protection is needed beyond group settings.
My environment also restricted UDP 443, common STUN UDP ports 3478 / 5349 and outbound DoT on 853. Those choices can affect calls, conferencing and games. They are trade-offs in this setup, not settings everyone should copy. The Mihomo DNS documentation explains the configuration fields.
The time-consuming fault: IPv6 bypassed the N1#
OpenClash logs showed auth.openai.com and ios.chat.openai.com matching the US group. Another node did not remove the region error. The existing openai.com suffix rule already covered authentication subdomains; adding it again would not explain the behavior.
A phone-side probe of the authentication domain showed domestic IPv6 egress and CN. I enabled airplane mode, then Wi-Fi alone, and got the same result. That ruled out cellular fallback for that request.
Packet capture on the N1 showed IPv6 router advertisements, or RA, from the main router. The advertised prefix matched what the phone saw, and the neighbor table identified the main router.

Phone IPv4 uses N1 while IPv6 may bypass it through the main router
A manually entered IPv4 gateway does not replace the IPv6 default route. Disabling IPv6 only on the N1 cannot control traffic that never reaches it. IPv6 neighbor discovery and router advertisements explain how that separate route is learned.
Using existing advanced administrative access, I opened the main router's Network → User-side management → IPv6 settings. I disabled the LAN DHCPv6 server, RA and the option to obtain other information through DHCP. The DHCP address-information and SLAAC-prefix options were already unchecked. I saved, reopened the page and checked that the settings persisted.

Actual home-gateway interface with LAN DHCPv6 and RA disabled
This is my China Telecom home gateway. Other models have different menus. I did not change WAN, broadband dialing, IPTV or voice settings. The cost was that this LAN no longer obtained its previous IPv6 connectivity through those advertisements. Keeping IPv6 requires a path the side router actually manages, or a separate downstream network.
After reconnecting the phone, YouTube stopped working until I restored manual DNS to .250. Saved settings alone are not enough: reconnect and test on the client, since old route state can linger.
I had also tried installing a Wi-Fi profile and later requested its removal. Its IPv6-disabling effect was not independently confirmed, so I do not recommend it as the repair here. Gateway and DNS still need checking after removing a profile.
A later phone probe of the authentication domain returned loc=US. That establishes the route for that request; an actual app login remains a separate test. A US node can itself use US IPv6. Colons in an address do not prove a leak, and a link-local fe80:: address does not prove direct public egress.
A second US node gave me a controlled comparison#
Muse registration also produced a region message, so I added an independent US server for comparison. The supplier described its IP as residential. I verified US egress and connectivity, not its residential classification.
The server ran Ubuntu 22.04 LTS / x86_64. I used Termius SSH to deploy Geto v2.1.0, with np-panel.service and panel port 2053/TCP. Installation involves a privileged third-party script. Before following the Geto documentation, download and review it, back up the server and secure panel access. I am not including a copy-and-run remote installer command here.
Chrome received 403 from the public panel, while a direct probe from the same Mac received a server response. I did not fully establish the cause. To continue, I used a Termius local SSH forward:
Setting | My value |
|---|---|
Local listener |
|
SSH host | My US server |
Destination on the server |
|
Browser address |
The tunnel requires the SSH connection to stay open. It does not replace access controls on the publicly reachable panel.
I created a VLESS inbound using TCP, Reality and xtls-rprx-vision, on 57708/TCP, with www.cloudflare.com as SNI. After allowing the port in the server firewall and provider security group, I exported Clash Meta settings. Use your own exported UUID, public key and Short ID. Keep the Reality private key on the server.

Test-node fields: VLESS, TCP, Reality and Vision
I first tested with a temporary Mihomo instance on the Mac, bound only to loopback, with that instance's TUN and DNS disabled. Configuration validation, port connectivity and HTTPS certificate checks passed. The panel showed traffic and probes returned US egress. Only then did I add it to the N1.
The N1 timed out:
dial tcp YOUR_SERVER_IP:57708: i/o timeoutMy independent outbound guard allowed only the original 15 exact TCP endpoints, and its parser only accepted Trojan nodes. The new VLESS endpoint was missing.
I backed up the script, endpoint cache and nft rules, extended the parser, added the exact new IP and TCP port, checked the configuration and kernel rules, then reloaded. The allowed endpoint count increased from 15 to 16 without removing the existing restrictions. The N1 retest succeeded; switching back also worked, and the original configuration checksum stayed unchanged.
This guard was custom work in my environment, not a default OpenClash feature. Do not disable the entire firewall just to make one node connect.

Actual OpenClash interface preserving original and independent test configurations
I kept router-us-policy.yaml and router-us-residential-test.yaml. The early comparison retained 121 rules while updating group names, references and DNS group suffixes. “Residential” in the filename is a label, not certification. Use the row's Switch button, restart under runtime status and inspect the log. The rightmost Apply button executes the action selected in the Other menu.
The early public reference template does not contain the later subscription automation, independent nft guard or main-router settings. It is not a one-click installer for the final system. Importing a panel's default configuration over household routing can overwrite DNS and policy as well as add a node.
Automatic failover for the 15 daily nodes#
For daily use I returned to the subscription's 15 US nodes, keeping the independent server for comparison. Previously, a manually selected node stayed selected even after it failed.
I changed the default overseas selection to the US automatic-failover group. It uses Mihomo fallback to choose an available node in order. US-15 was preferred, followed by nodes including US-13 and US-11. These are field explanations, not a complete importable YAML file:
Field | Value | Meaning |
|---|---|---|
|
| Choose an available node in order |
|
| Check every 60 seconds |
|
| Wait at most 5 seconds per check |
|
| Do not use lazy checking while unselected |
|
| Require 204 from the HTTPS check |
A health check tests a network request, not AI-account eligibility. Manual selection remains available for comparison; switch back to the automatic group afterward. See the fallback documentation and shared group fields.
My subscription task ran at 4 a.m. and used to rebuild the group as a list of manual nodes. I integrated automatic-group generation and AI-egress checks into the update process, applying them again when OpenClash loaded the configuration. Membership follows subscription additions and removals. An empty subscription response preserves the last usable configuration. The 4 a.m. time belongs to the router's existing task, not a timezone setting to copy blindly.
I deliberately took every node offline#
Before testing, I backed up the configuration, subscription script and firewall, and arranged automatic removal of the temporary blocking rules. Do not reproduce an outage test remotely without a local recovery path. The public bundle lacks those guard scripts; I am not supplying blocking commands that could strand your network.
Test | Observed result |
|---|---|
Block current US-15 only | Switched to US-13 after 10.4 seconds; overseas HTTPS returned 204 |
Block all 15, confirm them unhealthy and clear DNS cache | Baidu, Bilibili and China's government website returned 200; ChatGPT, OpenAI API, Claude and Gemini API timed out |
Mac uses N1 as its real gateway and DNS, without an explicit HTTP proxy | Baidu and Bilibili worked; three sampled AI addresses failed to connect |
Remove temporary blocks | Returned to preferred US-15; overseas check returned 204 |
Restart OpenClash service | Stayed in Rule mode with the automatic group selected |
Simulate subscription additions, removals and an empty response | Checked group membership and rules; empty response retained the previous configuration |
The 10.4 seconds was one measurement, not a ten-second guarantee. Waiting depends partly on where the failure falls between checks. Testing covered the service restart, not a full power cycle. Domestic pages can still lose embedded overseas resources when every node is down.
Acceptance checks and a way back#

Five acceptance layers from router connectivity to actual application login
I now check the N1's own internet access first, followed by proxy connectivity, phone egress, DNS and IPv6 paths, and finally the target app.
Test the phone in airplane mode with Wi-Fi alone, then repeat ordinary use after restoring cellular. When reading Cloudflare trace and connection logs, loc=US describes that request's egress classification; colo=LAX identifies an edge location. A US location on a DNS test describes the resolver, not every app's route. An HTTPS 403 can follow a successful connection and does not establish the platform's exact risk-control decision.
Symptom | First check |
|---|---|
Dashboard works, dependencies will not download | N1 default gateway, DNS and specific download error |
| System release and installer SDK |
YouTube works, authentication reports a region error | Authentication rules, actual egress and main-router RA |
Sites fail after disabling LAN IPv6 | Reconnect Wi-Fi and verify DNS still points to N1 |
Node works on Mac, times out on N1 | Configuration, router connectivity, endpoint allowlist and server port |
Failover disappears after subscription refresh | Whether the updater overwrote the policy group |
Before editing, keep backups of iStoreOS settings, OpenClash YAML and the custom guard, and record the client's original Wi-Fi addressing and DNS. To return a test device to ordinary internet access, restore its original DHCP / gateway / DNS first, then restore router settings from backup as needed. Restore main-router IPv6 options to their recorded previous values. Restore the guard's saved rules rather than flushing the firewall. System backups have release compatibility limits too: a full 24.10 backup is not a 25.12 recovery image.
I confirmed old and new node egress through the N1, the IPv6 repair path and automatic failover. Residential classification, final ChatGPT login and final Muse registration still require separate verification. The next time overseas sites stop loading, I will open a domestic site first, count the healthy nodes in the automatic group and follow the route the failing request actually took.
Related articles



I Use a Mac to Control a Windows PC on My LAN
I sit at a Mac and use Moonlight to reach a Windows desktop on the LAN. This is how I pick a tool, install Sunshine, pair again, and what I checked after a reinstall when the host went offline and pairing returned 409. I have not confirmed that desktop streaming already worked this time.
Comments
No comments yet — be the first to leave one.