Subscriptions vs. proxy providers
A client’s “Import from URL” option usually expects a complete Clash configuration. After saving it, update the configuration manually, select it in the list, then open the proxy groups to check that nodes have loaded. A node-only link may not work as a complete configuration. The kernel shown in the adjacent example also supports referencing nodes from a proxy provider in an existing configuration. The update interval below is measured in seconds; it does not control background refresh by the mobile app. To make these nodes available to a policy group, add the corresponding use reference to the group.
proxy-providers:
phone-nodes:
type: http
url: "https://example.com/provider.yaml"
path: ./providers/phone-nodes.yaml
interval: 86400
Choosing Rule, Global or Direct mode
Use Rule mode for everyday browsing so each request follows the configuration’s match result to a direct connection or a proxy group. Global mode ignores routing rules and is useful for temporarily testing with one node; check which node the global policy group has selected. Direct mode sends requests handled by the kernel straight to their destinations. It does not stop the client or disable the system VPN. When troubleshooting, change one setting at a time and retry from the same app. Existing connections may continue using their previous route.
mode: rule
allow-lan: false
Put specific rules before the catch-all
Rules are checked from top to bottom; the first match determines the policy. To route a domain through a proxy, place its domain rule before any broader rule that might match first. Put MATCH, which handles all remaining connections, last. In this example, PROXY must match the name of a proxy or policy group in your configuration; DIRECT is the built-in direct policy. After editing, reload the configuration and check the matched rule in the connection details. Don’t infer the route just from whether a webpage loads.
rules:
- DOMAIN-SUFFIX,github.com,PROXY
- GEOIP,CN,DIRECT
- MATCH,PROXY
Check traffic routing and DNS separately
TUN sends traffic to the kernel; Fake-IP is an enhanced DNS mode. They are separate settings. On desktop, if an app ignores the system proxy, first check whether your client supports TUN. Mobile clients usually route traffic through the system VPN interface. If a LAN service stops working after changing DNS modes, restore the previous setting to see whether it’s related, then check your domain exceptions. These snippets show just two configuration options; you’ll also need to check client permissions, routes and upstream DNS settings.
tun:
enable: true
dns:
enable: true
enhanced-mode: fake-ip