The note is generated by CatDesk.
Problem
After enabling Clash system proxy, Meituan intranet sites (*.sankuai.com, *.meituan.com) and internal IPs (33.x.x.x, 11.x.x.x) become inaccessible.
Root Cause Analysis
- Fake-IP mode interference — Clash’s fake-ip mode assigns fake IPs (198.18.x.x) to all domains, which means intranet traffic that should match
IP-CIDR,10.0.0.0/8,DIRECTrules can never match because the domain was mapped to a fake IP instead of the real internal IP. - Missing domain DIRECT rules — DIRECT rules for intranet domains are positioned too far down in the rule list, so higher-priority rules match first and route traffic through the proxy.
- Incomplete system proxy bypass list — macOS’s default proxy bypass list only includes
10.0.0.0/8,172.16.0.0/12, and192.168.0.0/16, but not33.0.0.0/8or other Meituan internal IP ranges.
Solution (Clash Verge Rev)
Config directory: ~/Library/Application Support/io.github.clash-verge-rev.clash-verge-rev/
1. Merge Profile — DNS Configuration
File: profiles/mABDKTQm1PKP.yaml
| |
Key points:
enable: true— The DNS module must be enabled.- The first two entries in
nameserverare Meituan’s internal DNS servers, ensuring intranet domains can be resolved. fake-ip-filterexcludes intranet domains so they receive real IPs instead of fake ones.
2. Rules Profile — DIRECT Rules
File: profiles/rT6dGpzIwfqb.yaml
| |
prepend means these rules are inserted at the very top of the rule list, giving them highest priority.
3. System Proxy Bypass — verge.yaml
| |
This is the most critical step — for intranet services accessed directly via IP (e.g., http://33.32.16.31:8420/), the corresponding IP ranges must be in the system proxy bypass list. Otherwise the browser sends the request to Clash, and even if Clash has a DIRECT rule, it may still fail for various reasons.
Summary
| Layer | Purpose | What it solves |
|---|---|---|
| fake-ip-filter | Intranet domains get real IPs | Correct domain → IP mapping |
| DIRECT rules | Intranet traffic goes direct | Traffic routed to the right exit |
| System bypass list | Intranet IPs skip the proxy entirely | Raw IP access works |
Meituan Intranet Key Information
- Internal DNS:
11.11.11.11,11.11.11.12 - Internal IP ranges:
10.0.0.0/8,33.0.0.0/8,11.0.0.0/8 - Intranet domains:
*.sankuai.com,*.meituan.com,*.meituan.net,*.dianping.com
Notes
- Clash Verge overwrites macOS’s proxy bypass list every time the system proxy toggle is flipped, so you must configure it in
verge.yaml’ssystem_proxy_bypassrather than using thenetworksetupcommand directly. - Remote subscription updates do not overwrite Merge and Rules profile content, so your customizations are safe.
- If using FlClash instead, you need to modify the actual profile files under
profiles/directory, notconfig.yaml(FlClash’s config.yaml is auto-generated).