Sign up Log in
n/buzhidaoblog · 8d ago · 1k views
u/buzhidao10068I don't know

FlClash: Custom Config Resources and Chained Proxies — NodeLoc Exclusive

Version baseline: FlClash v0.9.4 (released 2026-11-19)

This guide shows you how to use chained proxies in FlClash.

1. Prerequisites

First, you need to know how to import nodes in FlClash → Tools → Advanced Config → Proxy. For details, see this link; after opening it, go to section 6.4.1 Proxy to see the import method. There's also a Hy2 import walkthrough.
If you don't know how, and you have a VLESS (vless:// prefix) or Hy2 node (hysteria2:// prefix), you can delete the key, send it to an AI, and have the AI explain the parameters, or read below and copy-paste directly.

If you don't have an existing VLESS (vless:// prefix) or Hy2 node (hysteria2:// prefix), you can pull some nodes out of your config (TBD).

Here I'll use Victoria from the user 草丛 for the demo. Log in to Victoria's Secret, scroll down, and under 🌐 Available Nodes you'll see each node has VLESS and Hy2 below it.


2. Prepare a US exit node and policy groups

Open FlClash → Tools → Advanced Config → Proxy, click ⊕ in the top right, click Add, set the proxy type to the VLESS or Hy2 you copied from Victoria above, click the red box shown in the image, paste, and save.

Go back to the FlClash Config page, click ⊕ in the top right, choose Custom, click 未命名 (Unnamed) and name it 日常分流, then click the ⊕ to the right of Policy Groups and enter the values in the table below.

Policy group name Type Node Purpose
默认代理 select Proxy collection 我的机场 (front relay; the provider collection you have on your config page) Daily proxy and fallback
中转入口 select Proxy collection 我的机场, or the node source within it suitable for relay Pick a Hong Kong relay node from it at runtime
AI select Local proxy: the VLESS or Hy2 copied from Victoria AI traffic exit
YouTube select Policy group 默认代理 Video traffic exit; you can choose another node
Don't add local proxies, AI, or YouTube to 中转入口
To make copying easier, the text you need to copy/paste has been put in code blocks. Click the copy button on the right to copy.
默认代理
中转入口
AI
YouTube

3. Add rule sets

Open FlClash → Tools → Advanced Config → Rule Sets, click ⊕ in the top right, click Import via URL, click the red box shown in the image, paste the links below, and import them in bulk.

To make copying easier, the text you need to copy/paste has been put in code blocks. Click the copy button on the right to copy.
https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/category-ads-all.mrs
https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/private.mrs
https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/private.mrs
https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/openai.mrs
https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/anthropic.mrs
https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/google-gemini.mrs
https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/youtube.mrs
https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/geolocation-cn.mrs
https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/cn.mrs

The imported content is as shown in the table (from the GitHub repo https://github.com/MetaCubeX/meta-rules-dat).

Name Purpose behavior Remote URL
ads Ad domains domain https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/category-ads-all.mrs
private-domain Private domains domain https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/private.mrs
private-ip Private IPs ipcidr https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/private.mrs
openai OpenAI / ChatGPT domain https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/openai.mrs
anthropic Claude domain https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/anthropic.mrs
gemini Google Gemini domain https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/google-gemini.mrs
youtube YouTube domain https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/youtube.mrs
cn-domain Simplified China domain set domain https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/geolocation-cn.mrs
cn-ip China IPs ipcidr https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/cn.mrs
To make copying easier, the text you need to copy/paste has been put in code blocks. Click the copy button on the right to copy.
ads
private-domain
private-ip
openai
anthropic
gemini
youtube
cn-domain
cn-ip

!!! Note: the names must match the table
As shown.


4. Add your own custom rule set

Go back to the FlClash Config page, open the 日常分流 profile you just created, click Rules, click ⊕ in the top right. There are two methods here; method 2 is simpler.

4.1 Add

Click Add as shown.

For Proxy Type, select RULE-SET, as shown.

Fill in the table below; there are 10 entries in total.

Form item Value
Proxy Type RULE-SET RULE-SET RULE-SET RULE-SET RULE-SET RULE-SET RULE-SET RULE-SET RULE-SET MATCH
Rule Set ads private-domain private-ip openai anthropic gemini youtube cn-domain cn-ip 默认代理
Routing policy REJECT DIRECT DIRECT AI AI AI YouTube DIRECT no-resolve
Resolve hostname Resolve Resolve Don't resolve Resolve Resolve Resolve Resolve Resolve Don't resolve

!!! Note: ==the names must match the table, and the order must match the table==

4.2 Quick edit

Click Add and copy-paste the code below.

To make copying easier, the text you need to copy/paste has been put in code blocks. Click the copy button on the right to copy.
- RULE-SET,ads,REJECT
- RULE-SET,private-domain,DIRECT
- RULE-SET,private-ip,DIRECT,no-resolve

- RULE-SET,openai,AI
- RULE-SET,anthropic,AI
- RULE-SET,gemini,AI

- RULE-SET,youtube,YouTube

- RULE-SET,cn-domain,DIRECT
- RULE-SET,cn-ip,DIRECT,no-resolve

- MATCH,默认代理

4.3 What's next

Note that rules are matched in order from top to bottom, and matching stops at the first hit:

  1. Ads are blocked first.
  2. Private networks go direct.
  3. Specific services like AI and video are matched first.
  4. China domains and IPs go direct.
  5. The final MATCH catches the remaining traffic.

If you add a big Google rule set later, put the Gemini and YouTube rules before the Google rule so specific services aren't matched first by the parent rule.

no-resolve means: don't do an extra domain resolution just to match this IP rule. By itself it does not automatically send DNS queries through the proxy, and it is not the same as a full DNS leak-prevention setup.

The finished setup is shown below.


5. Add dialer proxy

Go back to FlClash → Config → Custom → More → Dialer Proxy. Select the name corresponding to the VLESS or Hy2 you copied from Victoria, choose 中转入口 under Available Policy Groups, then go back. Check Dialer Proxy: if it shows 1 proxy, it's selected.


6. Afterword

So someone might ask: are the policy groups 默认代理 and 中转入口 redundant?
No, no. 默认代理 is the outbound group for daily traffic; the MATCH rule in this guide uses it as the fallback. 中转入口 is the dialer proxy (front proxy) for VLESS/Hy2: in section 5 you select it as the upstream so the AI node relays through the selected Hong Kong node.

The runtime config is
proxies:
  - down: ""
    fingerprint: ""
    name: "🇯🇵 东京-石径斜阳"
    obfs: ""
    obfs-password: ""
    password: "删除"
    port: "删除"
    server: "删除"
    skip-cert-verify: true
    sni: "bing.com"
    type: "hysteria2"
    up: ""
    dialer-proxy: "中转入口"
external-controller: ""
secret: ""
external-controller-tls: ""
external-controller-unix: ""
external-controller-pipe: ""
external-ui: ""
interface-name: ""
external-ui-url: ""
unified-delay: true
tcp-concurrent: true
ipv6: true
geodata-loader: "memconservative"
log-level: "error"
port: 0
socks-port: 0
keep-alive-interval: 30
keep-alive-idle: 15
disable-keep-alive: false
routing-mark: 0
mixed-port: 7738
redir-port: 0
tproxy-port: 0
find-process-mode: "always"
allow-lan: false
authentication: []
skip-auth-prefixes: []
mode: "rule"
tun:
  dns-hijack:
    - "any:53"
  enable: false
  device: "FlClash"
  stack: "mixed"
  auto-route: true
  auto-detect-interface: true
geo-auto-update: true
geo-update-interval: 24
mitm:
  enable: false
  skip-server-cert-verify: false
  auto-quic-block: true
  h2: false
  hostname: []
  url-rewrite: []
  header-rewrite: []
  body-rewrite: []
  map-local: []
  script: []
  decrypt-tls: false
  ca-fingerprint: ""
  limits:
    max-body-size: 2097152
    body-buffer: 8388608
    certificate-cache: 256
    max-sessions: 256
    script-concurrency: 2
    script-memory: 67108864
    capture-entries: 500
    capture-bytes: 16777216
profile:
  store-selected: false
proxy-providers:
  宝可梦:
    type: "file"
    path: "/data/user/0/com.follow.clash/files/profiles/345437016990683136.yaml"
rule-providers:
  ads:
    type: "file"
    path: "/data/user/0/com.follow.clash/files/providers/rules/68ebc455488dbab6641e8e9a0cce3a5c"
    behavior: "domain"
    format: "mrs"
  private-domain:
    type: "file"
    path: "/data/user/0/com.follow.clash/files/providers/rules/fd0381e97d25086dcef1730932dfbbb1"
    behavior: "domain"
    format: "mrs"
  private-ip:
    type: "file"
    path: "/data/user/0/com.follow.clash/files/providers/rules/f26c2dc2e1fa214c577316f68cba1a7d"
    behavior: "ipcidr"
    format: "mrs"
  openai:
    type: "file"
    path: "/data/user/0/com.follow.clash/files/providers/rules/7309141a890a4ff20d7cd4d39db69e65"
    behavior: "domain"
    format: "mrs"
  anthropic:
    type: "file"
    path: "/data/user/0/com.follow.clash/files/providers/rules/e3f1c3c9fe1fadb9fc559554055e30da"
    behavior: "domain"
    format: "mrs"
  gemini:
    type: "file"
    path: "/data/user/0/com.follow.clash/files/providers/rules/3b316db3f1241ebd08246d341303df78"
    behavior: "domain"
    format: "mrs"
  youtube:
    type: "file"
    path: "/data/user/0/com.follow.clash/files/providers/rules/1a7a175d90e5aa00d96c935b2997df1b"
    behavior: "domain"
    format: "mrs"
  cn-domain:
    type: "file"
    path: "/data/user/0/com.follow.clash/files/providers/rules/11a21490e12edeb1640a9c0d10bcb167"
    behavior: "domain"
    format: "mrs"
  cn-ip:
    type: "file"
    path: "/data/user/0/com.follow.clash/files/providers/rules/fdff37909b8b2a623f473cda0b34b6ce"
    behavior: "ipcidr"
    format: "mrs"
geox-url:
  mmdb: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.metadb"
  asn: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb"
  geoip: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat"
  geosite: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat"
global-ua: "FlClash/v0.9.3 clash-verge Platform/android"
hosts: {}
dns:
  enable: true
  enhanced-mode: "fake-ip"
  nameserver:
    - "https://doh.pub/dns-query"
    - "https://dns.alidns.com/dns-query"
proxy-groups:
  - name: "默认代理"
    type: "select"
    use:
      - "宝可梦"
  - name: "中转入口"
    type: "select"
    proxies:
      - "默认代理"
    use:
      - "宝可梦"
  - name: "AI"
    type: "select"
    proxies:
      - "🇯🇵 东京-石径斜阳"
  - name: "YouTube"
    type: "select"
    proxies:
      - "默认代理"
rules:
  - "RULE-SET,ads,REJECT"
  - "RULE-SET,private-domain,DIRECT"
  - "RULE-SET,private-ip,DIRECT,no-resolve"
  - "RULE-SET,openai,AI"
  - "RULE-SET,anthropic,AI"
  - "RULE-SET,gemini,AI"
  - "RULE-SET,youtube,YouTube"
  - "RULE-SET,cn-domain,DIRECT"
  - "RULE-SET,cn-ip,DIRECT,no-resolve"
  - "MATCH,默认代理"

Translated by AI from 简体中文

22
20
Log into join the discussion.

20 replies

Sort order
  1. fiycat Gold 8d ago

    Thanks for sharing, OP

    Translated by AI from 简体中文

    0
  2. user94 Filthy rich Diamond 8d ago

    Damn, even a dummy like me can finally set up a proxy chain easily now.

    Translated by AI from 简体中文

    0
  3. buzhidao10068 I don't know OP 8d ago

    Actually there's a more concise way

    Translated by AI from 简体中文

    0
  4. buzhidao10068 I don't know OP 8d ago
    1
  5. ovee_prgs Silver 7d ago

    How do I use this?

    Translated by AI from 简体中文

    0
  6. Continue this thread →
  7. ASCLL Silver 8d ago

    Impressive, learned a lot from the expert

    Translated by AI from 简体中文

    0
  8. zcecho1234 Silver Never leave, never forsake 8d ago

    Thanks for sharing, great work!

    Translated by AI from 简体中文

    0
  9. Liang_21 Bronze 6d ago

    First off, thanks to the OP — I followed the guide and it worked perfectly. But I ran into a problem: when I visit a site in Chrome, it shows I'm on a Hong Kong node, but the site won't load. Same thing happens with other nodes too. Any idea why? That site does work in Hong Kong. If you don't mind, could you tell me what's causing it?

    Translated by AI from 简体中文

    0
  10. buzhidao10068 I don't know OP 6d ago

    Mind sharing the site? You can post it here or DM me.

    Translated by AI from 简体中文

    0
  11. Liang_21 Bronze 6d ago

    Sorry, sorry — this one's a bit hard to share, it's pretty tied to personal info.

    Right now this is as far as I've gotten (in the proxy I can see the default proxy, the relay entry, AI, YouTobe). The AI one is the one configured with the landing node, so only one shows up. If it's a site other than AI, should it be using the default proxy or the relay entry node? If that's the case, then it's probably an issue with my airport.

    Translated by AI from 简体中文

    0
  12. buzhidao10068 I don't know OP 6d ago

    If you set it up following the tutorial I posted, only AI traffic goes through the proxy under FlClash - Tools - Advanced Config - Proxy; everything else goes through your airport.
    First, on the FlClash - Config page, select only your airport and see if it connects.

    Translated by AI from 简体中文

    0
  13. Continue this thread →
  14. buzhidao10068 I don't know OP 6d ago

    The relay entry is: you → airport → the proxy you added manually → AI. The relay uses a node from the airport.

    Translated by AI from 简体中文

    0
  15. BearPaw Master 6d ago

    Great post, huge value 👍

    Translated by AI from 简体中文

    0
  16. westcastle Silver 6d ago

    Thanks, man. I’ll learn from this.

    Translated by AI from 简体中文

    0
  17. tianlanga 6d ago

    I’ve been tidying things up lately and learning along the way.

    Translated by AI from 简体中文

    0
  18. sharw Silver 6d ago

    Could you do a guide on V2rayN or Clash?

    Translated by AI from 简体中文

    0
  19. buzhidao10068 I don't know OP 6d ago

    I mainly use FlClash and Clash Party; I rarely use V2N.

    Translated by AI from 简体中文

    1
  20. sevill 3 YEARS 3d ago

    Bookmarked this thread, very good

    Translated by AI from 简体中文

    0