Clash Connected but Websites Won’t Load: A Checklist for System Proxy, TUN, and Rules

If Clash says it’s connected but websites won’t load, check system proxy settings, TUN and driver status, DNS mode, and the final MATCH rule to narrow down the cause.

Test the local proxy port before checking the system proxy

“Connected” may only mean the core is running or a traffic-routing option is enabled. It doesn’t prove that browser requests are reaching the core or that the selected node can access the site. Note your current config, mode, and selected node, then test the same URL on a site that doesn’t require a login. Change one setting at a time and note when the issue occurs so you can compare it with the logs.

Test with curl and an explicit proxy address

Temporarily turn off TUN and test using the active HTTP or mixed proxy port shown in the client. The 7890 below is an example mixed-port, not a default shared by all clients. If only socks-port is enabled, use that port with a socks5h:// proxy URL. In Windows PowerShell, start the command with curl.exe.

curl -v --noproxy "" --proxy http://127.0.0.1:7890 --connect-timeout 5 --max-time 15 https://example.com/
What you seeWhat to check next
Local address returns Connection refusedCheck the port and listening address, and confirm the core is running. If the logs show address already in use, check whether another client is using the port.
Proxy returns 407The request reached the local proxy listener. Check whether local proxy authentication is required, and don’t put credentials in public logs.
200 Connection established appears, followed by a TLS handshake failure or timeoutThis is only the proxy’s response to CONNECT; it doesn’t mean the website loaded successfully. Check outbound logs from the same time and look for system clock or certificate errors.
The destination site returns an HTTP response, but the browser can’t open the same URLFirst check whether the browser is using the same proxy endpoint. Even if the response is 403, distinguish a site rejecting the request from an unreachable local port.

Compare the address and port in your OS settings

  • Windows 11: Go to Settings → Network & Internet → Proxy → Manual proxy setup. If the client uses a manual system proxy, make sure Use a proxy server is on and that the address and port match your explicit test, such as 127.0.0.1:7890. If the client uses PAC, check the address under Use setup script instead of enabling a separate manual proxy.
  • macOS: Go to System Settings → Network, select the active connection (for example, Wi-Fi), then open Details → Proxies. Check the Web Proxy (HTTP), Secure Web Proxy (HTTPS), or automatic proxy configuration that the client actually uses. Don’t check a different, inactive network service.
  • Only one app fails: Check the app’s own proxy settings and bypass list. In Firefox, review the current proxy mode under Settings → General → Network Settings. Command-line programs may not use the desktop system proxy; the explicit test above isolates the core’s local port.

Internet stops working only when TUN is enabled: check permissions, the virtual adapter, and routes

The system proxy affects apps that honor those proxy settings. TUN uses a virtual interface and routes to capture eligible traffic. To test TUN on its own, turn off the system proxy in the client and make sure no proxy settings remain in the OS. Then enable TUN and test the same URL. This prevents the browser from continuing to use the local proxy and masking a TUN issue.

Tell the difference between a missing adapter and traffic that isn’t using it

  1. Check startup logs. On Windows, if the client reports that a service isn’t installed, the virtual adapter couldn’t be created, or permissions are insufficient, follow the client’s instructions for its service mode, then confirm TUN starts successfully. On Linux, if /dev/net/tun is unavailable or you see operation not permitted, check whether the system provides a TUN device and whether the service has network administration permissions. An enabled toggle doesn’t mean the interface is ready.
  2. Check interfaces and routes. On Windows, run Get-NetAdapter -IncludeHidden and route print. On Linux, run ip link show, ip rule show, and ip route show table all. Compare the results before and after enabling TUN to see whether the expected interface and routes appear. Linux policy routing may use a separate routing table, so the main table’s default route isn’t enough to check.
  3. Check whether requests reach the core. Reload the test site and search for its domain and timestamp in the client’s Connections or Logs view. If the interface exists but the test request never appears, check route exclusions, whether the app is still using its own proxy, and whether another VPN is also managing routes. Don’t disable a VPN on a managed device without authorization.

In mihomo, tun.enable turns TUN on or off, while tun.auto-route controls automatic setup of the routes needed to capture traffic. Setting enable to true alone doesn’t mean all app traffic will automatically use the interface. With automatic routing disabled, existing routes or another mechanism must direct the target traffic into TUN. GUI clients may override these fields when loading the config, so use the active config and logs when troubleshooting.

Requests reach the core but fail to resolve: check DNS mode and upstream servers

First distinguish between the browser failing to resolve the destination domain and the core failing to resolve a proxy server’s hostname. If the failed domain in the logs is a node’s server address, switching websites usually won’t help. If mihomo has proxy-server-nameserver configured, it is specifically used to resolve proxy node hostnames. Check whether that upstream is reachable before the node connects. If the failed domain is the destination site, check the applicable nameserver-policy or default nameserver.

fake-ip returns a synthetic address; that doesn’t necessarily mean DNS is broken

When dns.enhanced-mode is set to fake-ip, DNS queries may return synthetic addresses in the 198.18.0.0/16 range; the actual range is set by fake-ip-range. Subsequent connections must return to the core that holds the address mapping. If mihomo handles DNS but the app’s connection bypasses both the proxy and TUN, the app may try to connect directly to the synthetic address. The result: DNS returns an address, but the page keeps timing out.

  • Only LAN hostnames or a specific app fail: First confirm that the app needs a real address and that the current upstream can resolve the hostname. Then consider adding an exception for the affected domain with fake-ip-filter. This filter controls whether DNS returns a synthetic address; it won’t make a public upstream resolve internal hostnames.
  • Compare the two modes: In a test copy, temporarily change dns.enhanced-mode to redir-host, leaving the node, rules, and upstream unchanged. Reload the config, test a new connection, and keep system or browser DNS caches in mind. If only fake-ip fails, check how connections to synthetic addresses return to the core. If both modes fail, look for upstream timeouts, certificate errors, or outbound connectivity issues.
  • Command-line DNS works, but the browser reports an error: Check the browser’s Secure DNS setting. DNS queries sent over HTTPS by the browser don’t follow the same path as traditional queries on port 53. The common TUN dns-hijack entry any:53 doesn’t treat queries inside HTTPS as ordinary port 53 traffic.

Running a system DNS lookup only tells you whether the lookup path used by that query received a response. It doesn’t prove that the browser or proxy node uses the same upstream. Check the domain against core logs from the same time before changing DNS. For field syntax, see the DNS section of the configuration reference.

DNS resolves, but connections fail: check rule matches and the MATCH outbound

First make sure the client is in Rule mode, corresponding to mode: rule in YAML. Global and Direct modes can’t verify how ordinary routing rules match. Rules are checked in list order: the first matching rule determines the outbound, and only connections that don’t match any earlier rule reach the final MATCH.

Check the matched rule first, then the actual node in its policy group

Find the failed URL in the connection log, then check the matched rule, outbound policy group, and actual node. A webpage may load resources from the main site, a login domain, and separate static asset domains. If the page opens but keeps spinning, find the failed resource request rather than checking only the domain in the address bar. If the connection log shows REJECT, check whether a blocking rule matched. If it shows DIRECT, check whether the destination is reachable directly from your current network.

mode: rule
rules:
  - DOMAIN,example.com,Manual Select
  - MATCH,DIRECT

This snippet illustrates rule order; it isn’t a complete config. DOMAIN matches only example.com itself; other domains use DIRECT in this snippet. Before using it, make sure Manual Select exactly matches the name of an existing policy group. A missing outbound name may prevent the config from loading. If MATCH appears earlier, rules after it won’t match. Don’t replace a subscription’s entire rule list with this snippet.

If the destination matches the expected policy group but the selected node times out, switch to another known-good node in the same group and test the same URL. This separates a single-node issue from a routing error. A successful latency test only proves the node responded to that probe; it doesn’t mean the node can reach every domain.

Retest results and settings to keep

  • Explicit proxy works, but system proxy mode doesn’t: Keep the verified local port and fix the system or app proxy settings. There’s no need to change the subscription, DNS, or rules first.
  • System proxy works, but TUN alone fails: Keep the working system proxy as a temporary workaround. Start with TUN startup logs and routes, then check DNS after confirming requests reach the core.
  • Only some domains fail through the same endpoint: Check the DNS result, matched rule, and outbound node for each failed request. Don’t switch all unmatched traffic to direct or proxy just to fix one domain.

Once you’ve found the cause, undo temporary test changes and keep only the effective fixes. Reload the config, close and reopen the test page to avoid reusing an old connection. If the problem returns after an automatic subscription update, move the settings you need to keep into a client-supported override and check the merged active config. When reporting the issue, include your OS, client and core versions, operating mode, port, and redacted error logs. Remove subscription URLs, authentication fields, and access tokens.

Download Clash