VPN permission
The Android client uses the system-provided VpnService to create a local virtual network interface. When the proxy starts for the first time, Android displays a connection request; select OK before app traffic can enter the Clash core for matching. Granting permission only allows the client to take over the network interface—it does not mean a working proxy has been selected. After connecting, check the active Profile, policy group, and DNS status. If no VPN indicator appears at the top of the screen, return to the client and restart the service, then check whether the device manufacturer restricts background activity.
interface: VpnService · permission: user-confirmed · scope: local traffic
Subscription setup
A Profile is a complete collection of proxies, policy groups, DNS settings, and rules. Typically, paste the subscription URL on the configuration page, download it, select the relevant entry, and then choose a policy on the proxy page. Updating a subscription fetches the remote content again, so local manual edits may be overwritten. Put changes that must persist in the client’s override feature or maintain a separate configuration. Multiple Profiles can be saved separately for work, mobile networks, and testing; after switching, confirm the active policy group again.
profile: YAML · update: remote subscription · override: client-side
Rule-based routing
Rule mode matches domains, IP addresses, processes, or rule sets in the order defined by the configuration, then sends traffic to the corresponding policy group. Rules near the top take effect first, while MATCH usually handles anything left unmatched. Compared with global mode, rule mode keeps direct services on their normal path and sends only selected traffic through the proxy. When troubleshooting routing, first check the matched rule in the connection log, then inspect the policy group it points to instead of repeatedly switching proxies.
mode: rule · evaluation: top-down · fallback: MATCH
DNS and Fake-IP
The DNS module determines where domains are resolved and can affect the accuracy of rule matching. Fake-IP mode first returns a mapped address, then matches rules by the domain mapping when the connection is established, making it useful when DNS and connection handling need to be managed together. Some LAN devices, special apps, or address-detection mechanisms may need to be added to a filter list. If a connection is active but websites will not load, check DNS server reachability, enhanced mode, IPv6 settings, and system private DNS in order. Avoid changing several variables at once.
dns-enhanced-mode: fake-ip · mapping: domain-to-address · cache: local
TUN mode
TUN mode takes over programs that do not follow system HTTP or SOCKS proxy settings, including some terminal tools, games, and standalone network components. It creates a virtual interface at the operating-system network layer and sends traffic to the core for processing. Before enabling it, confirm that a standard system proxy is not already sufficient; the broader the takeover, the greater the impact of configuration errors on the entire network. On mobile devices, also review background keep-alive, battery optimization, and on-demand connectivity checks to reduce repeated reconnects and wakeups.
stack: mixed · route: auto · dns-hijack: configured endpoints