Proxy groups and rules
How nodes are grouped, how rules match, and why the rule you added does nothing.
Checked against FlClash 0.9.5
On this page
What a proxy group is
A group is a name with a list of nodes behind it. Rules point to the name, so changing nodes never means changing rules.
| Type | How it picks |
|---|---|
| select | Whichever you click |
| url-test | Tests regularly and uses the lowest delay |
| fallback | The first that works, then the next |
| load-balance | Spreads connections over several nodes |

Low delay isn't high speed
Delay measures a round trip; bandwidth is something else. Games care about delay, 4K video about bandwidth. A crowded node at 60 can be worse than a quiet one at 150.
How rules match
Top to bottom, stopping at the first match. So specific rules go first and MATCH is always last.
rules:
- DOMAIN-SUFFIX,example.com,DIRECT
- DOMAIN-KEYWORD,adservice,REJECT
- PROCESS-NAME,steam.exe,DIRECT
- IP-CIDR,192.168.0.0/16,DIRECT,no-resolve
- GEOIP,CN,DIRECT
- MATCH,PROXY| Type | Matches |
|---|---|
| DOMAIN | Exactly this domain |
| DOMAIN-SUFFIX | The domain and all its subdomains |
| DOMAIN-KEYWORD | Domains containing this word |
| IP-CIDR | A range of IP addresses |
| GEOIP | IPs of a country or region |
| PROCESS-NAME | Connections from a program, on desktop |
| MATCH | Anything left over |
no-resolve means: don't look up the IP of a domain just for this rule. It makes rules for local ranges faster.
Add a rule of your own
- Open the current profile's override and choose Add rule.
- Set the type, the value and where it goes.
- Save and reload the site.
- See which rule it matched on the Requests page.
The rule has no effect
Usually it's order: a rule from the subscription matched first, as discussed in 2251. Paste the rules into the Rule tester and see where it stops. Open connections don't move, so close the tab and reopen it.
Also asked
How do I keep one program off the proxy?
On desktop, PROCESS-NAME,program,DIRECT. On Android, App access control.
What's the difference between REJECT and DIRECT?
DIRECT connects without a proxy. REJECT doesn't connect at all, which is useful for ads and trackers.
Read next
Using itRouting you can maintain, with rule providersThousands of copied DOMAIN-SUFFIX lines go stale in months. Three self-updating rule sets leave you with five lines.
Using it46 ms of delay and the video still buffersThe test page is all green and 4K still stalls. Delay and bandwidth are different, and there are a few causes people rarely mention.