System proxy: Make sure requests reach mihomo
What “connected” means depends on the client; it doesn't confirm that web requests have passed through the core. Before you start, note your current configuration, proxy mode, selected policy group, and TUN setting. Retest with the same failing URL, changing only one setting at a time. If your device and network allow it, try turning off TUN and using only the system proxy to eliminate one traffic path.
- Check the system proxy address. In Windows 11, go to Settings → Network & internet → Proxy. Check the address and port under “Manual proxy setup,” and see whether an automatic proxy script is configured. On macOS, go to System Settings → Network → your current network service → Details → Proxies, and check which proxies are enabled. If the client's active mixed port is
7890, the local HTTP proxy can point to127.0.0.1:7890. If the configuration uses7897, don't keep using7890. - Check what each port is for.
mixed-portaccepts both HTTP and SOCKS requests.external-controlleris used to control the core, not as a proxy endpoint for web traffic. Check the active configuration or client startup log, and don't enter the dashboard port as the system proxy. - Check for browser-specific proxy settings. In Firefox, go to Settings → General → Network Settings and check whether “Use system proxy settings” is selected. If only one browser is affected, check its proxy settings, extensions, and proxy exceptions before switching nodes.
Test the local port with an explicit proxy request
Run the command below in Windows Terminal. On macOS or Linux, replace curl.exe with curl. The example uses port 7890; replace it with your actual port. The command explicitly sends the request through your local HTTP proxy and limits proxy exceptions to localhost, so environment-level exceptions won't bypass the test domain.
curl.exe -v --connect-timeout 5 --max-time 15 --noproxy localhost --proxy http://127.0.0.1:7890 https://example.com/
If 127.0.0.1:7890 fails too, check the listening address, port, and startup log. If the local connection succeeds but the proxy returns an error or the next handshake fails, check the core log for that request. If the command succeeds but the browser still fails, test the same URL through the browser's proxy settings. A successful request to example.com doesn't mean the failing site uses the same rule.
Node availability: A successful latency test doesn't guarantee websites will load
A latency test only shows that the node could reach a specific test address at the time of the test. The target site may use a different egress route, or fail during the TLS handshake or HTTP response. Find the failing domain in Connections or the log, confirm that it entered a proxy group, then check which node the group actually used. The group selected in the UI isn't necessarily the one used by that connection's rule.
- Try another node in the same policy group. Keep the rules unchanged, close the failing tab, and make a new request. Then check the new connection record. An existing connection may keep using the original node, so refreshing the page may not be enough.
- If only one node fails. Note the node, target domain, and failure stage. A connection timeout, a failed TLS handshake, and a website returning
403are different issues. If you get a403, first determine whether it came from the proxy or the target site; don't assume it's a DNS problem. - If multiple nodes in the same group fail. Check whether they rely on the same service and whether the log reports a DNS resolution failure for the proxy server's domain. If you just updated the configuration, make sure the active configuration loaded successfully. Avoid repeatedly refreshing the subscription, which can overwrite your changes.
DNS settings: Distinguish the target domain from the node domain
If the log reports a resolution failure, note the full domain name in the error. The website's domain and the proxy server's address are separate. If a node's domain can't be resolved, using secure DNS in the browser may not help the core connect to that node. In the mihomo configuration, dns.nameserver specifies upstream servers for regular DNS resolution, dns.nameserver-policy can assign upstreams by domain, and dns.proxy-server-nameserver is specifically for resolving proxy node domains. Check the active configuration, not just the original subscription text.
- Run
nslookup example.com, then replace the example domain with the one in the error log. Check which server the system used for the query and what response it returned. Record timeouts separately fromNXDOMAINresponses. This command alone can't confirm that the browser or mihomo used the same upstream server. - If only the browser fails, check its secure DNS settings. If the problem occurs only with TUN enabled, confirm whether DNS queries actually pass through
dns-hijack. When a browser uses DoH, DNS queries are carried over HTTPS; they aren't the same as regular DNS requests intercepted by TUN. - In
fake-ipmode, if the configured allocation range is198.18.0.1/16, receiving a synthetic address within that range isn't itself a problem. Make sure subsequent connections return to the core holding the domain mapping. Don't use the synthetic address as the website's real address in connectivity tests.
After changing the DNS upstream, retest just one domain and check the new query or connection record. If only internal company domains fail, first check whether they require DNS provided by your organization. Switching directly to public DNS may make internal names unresolvable.
Routing rules: Check the actual match and outbound
In rule mode, rules are matched in configuration order, and the first matching rule determines the outbound route. For the failing domain, check at least three things in its connection record: the matched rule, the target policy group, and the actual outbound. If there is no record, first check the proxy entry point or log visibility rather than changing rules.
| Result | Next step |
|---|---|
DIRECT | The request didn't use a proxy node. If you expected it to, check whether a broader DIRECT rule matched first. |
REJECT | The rule rejected the connection. Check whether it rejected the main domain or a domain needed for sign-in, APIs, or static assets. |
MATCH | If this is at the end of the rules, none of the earlier rules matched. Check that the rule set loaded, the domain suffix is correct, and the connection includes a domain that can be matched. |
| Expected proxy group matched | Check the group's actual outbound and error logs; don't rely on the policy group name alone. |
If only some page content loads, check the domains of the failing requests individually instead of relying on the address bar. Some clients let you temporarily test the same node in Global mode; do so only if your network policy allows it, then switch back to Rule mode. If Global mode works, the outbound route differs—but you still need to identify the specific rule in Rule mode.
TUN conflicts: Test each traffic path separately
TUN receives traffic through a virtual network adapter and routes, while the system proxy relies on apps honoring proxy settings. If the system proxy works on its own but enabling TUN causes problems, compare routes, DNS, and connection records in each mode before changing the subscription. Note your original settings so you can restore them afterward.
- System proxy only. Turn off TUN and visit the same URL in a browser that uses the system proxy. Note whether the page loads and which outbound node is used.
- TUN only. Turn off the system proxy without changing the node or rules. Make a new request, then check whether the core log reports that TUN started successfully and whether the failing connection reached the core.
auto-routecontrols route handling, whilestackselects the TUN network stack. They are separate settings and shouldn't be changed together. - Check other virtual network adapters. If other proxy clients or VPNs are running, see whether the issue occurs only when both are active. If you have permission and it won't disrupt your work, temporarily disable your own software one at a time to compare. Ask your administrator to handle VPNs or security proxies on managed devices.
If internet access works but printers or internal sites don't, check whether the local subnet still has a valid route and whether those connections match a DIRECT policy. A DIRECT rule only tells the core how to handle connections it receives; it can't replace the operating system's route to the local network.
Retest and document: Create a minimal, reproducible case
After applying a fix, make new requests to the original failing URL and a regular test URL. Confirm that both pages load, the expected rules match, and any settings temporarily disabled during troubleshooting have been restored. If the cause is still unclear, note the OS version, client and mihomo core versions, mixed port, system proxy and TUN status, failure time, and relevant logs. Before sharing logs, remove subscription URLs, tokens, node credentials, and internal domains. You usually don't need to share the entire subscription to troubleshoot the proxy entry point, rules, and outbound route.