{"id":768,"date":"2026-05-25T18:16:26","date_gmt":"2026-05-25T10:16:26","guid":{"rendered":"https:\/\/www.suannai.link\/blog\/%e4%b8%8d%e5%90%8c%e5%b9%b3%e5%8f%b0%e7%9a%84clash%e8%8a%82%e7%82%b9%e8%ae%a2%e9%98%85%e5%8c%ba%e5%88%ab%ef%bc%9a%e9%85%8d%e7%bd%ae%e9%80%bb%e8%be%91%e4%b8%8e%e5%85%bc%e5%ae%b9%e6%80%a7%e8%a7%a3\/"},"modified":"2026-05-25T18:16:26","modified_gmt":"2026-05-25T10:16:26","slug":"%e4%b8%8d%e5%90%8c%e5%b9%b3%e5%8f%b0%e7%9a%84clash%e8%8a%82%e7%82%b9%e8%ae%a2%e9%98%85%e5%8c%ba%e5%88%ab%ef%bc%9a%e9%85%8d%e7%bd%ae%e9%80%bb%e8%be%91%e4%b8%8e%e5%85%bc%e5%ae%b9%e6%80%a7%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.suannai.link\/blog\/%e4%b8%8d%e5%90%8c%e5%b9%b3%e5%8f%b0%e7%9a%84clash%e8%8a%82%e7%82%b9%e8%ae%a2%e9%98%85%e5%8c%ba%e5%88%ab%ef%bc%9a%e9%85%8d%e7%bd%ae%e9%80%bb%e8%be%91%e4%b8%8e%e5%85%bc%e5%ae%b9%e6%80%a7%e8%a7%a3\/","title":{"rendered":"\u4e0d\u540c\u5e73\u53f0\u7684Clash\u8282\u70b9\u8ba2\u9605\u533a\u522b\uff1a\u914d\u7f6e\u903b\u8f91\u4e0e\u517c\u5bb9\u6027\u89e3\u6790"},"content":{"rendered":"<p>Clash \u8ba2\u9605\uff08YAML \u683c\u5f0f\uff09\u7684\u6838\u5fc3\u5728\u4e8e\u5b9a\u4e49\u4ee3\u7406\u89c4\u5219\u3001DNS \u7b56\u7565\u548c\u754c\u9762\u914d\u7f6e\uff0c\u4f46\u4e0d\u540c\u5ba2\u6237\u7aef\uff08\u5982 Clash Verge\u3001Clash Meta\/Mihomo\u3001Clash for Windows\u3001Surge\u3001Quantumult X \u7b49\uff09\u5bf9\u540c\u4e00\u4efd\u8ba2\u9605\u7684\u89e3\u6790\u80fd\u529b\u3001\u914d\u7f6e\u4f18\u5148\u7ea7\u548c\u540c\u6b65\u673a\u5236\u5b58\u5728\u663e\u8457\u5dee\u5f02\u3002\u7406\u89e3\u8fd9\u4e9b\u533a\u522b\uff0c\u662f\u89e3\u51b3\u201c\u8ba2\u9605\u66f4\u65b0\u540e\u4e0d\u751f\u6548\u201d\u3001\u201c\u89c4\u5219\u51b2\u7a81\u201d\u6216\u201c\u529f\u80fd\u7f3a\u5931\u201d\u7b49\u95ee\u9898\u7684\u5173\u952e\u3002<\/p>\n<p>\u672c\u6587\u5c06\u4ece\u914d\u7f6e\u903b\u8f91\u3001\u89c4\u5219\u89e3\u6790\u3001\u529f\u80fd\u652f\u6301\u4e09\u4e2a\u7ef4\u5ea6\uff0c\u5bf9\u6bd4\u4e3b\u6d41\u5e73\u53f0\u5bf9 Clash \u8ba2\u9605\u7684\u5904\u7406\u5dee\u5f02\uff0c\u5e76\u63d0\u4f9b\u901a\u7528\u7684<a href=\"https:\/\/www.suannai.link\/blog\/clash%e8%8a%82%e7%82%b9%e8%ae%a2%e9%98%85%e6%80%8e%e4%b9%88%e7%94%a8\/\" target=\"_blank\" rel=\"noopener\">\u914d\u7f6e\u9a8c\u8bc1\u65b9\u6cd5<\/a>\u3002<\/p>\n<h2>\u4e00\u3001 \u6838\u5fc3\u914d\u7f6e\u7ed3\u6784\u7684\u89e3\u6790\u5dee\u5f02<\/h2>\n<p>Clash \u8ba2\u9605\u6587\u4ef6\uff08\u901a\u5e38\u4e3a `.yaml` \u6216 `.yml` \u540e\u7f00\uff09\u5305\u542b `proxies`\uff08\u8282\u70b9\u5217\u8868\uff09\u3001`proxy-groups`\uff08\u7b56\u7565\u7ec4\uff09\u3001`rules`\uff08\u89c4\u5219\u96c6\uff09\u548c `dns`\uff08DNS \u8bbe\u7f6e\uff09\u7b49\u6838\u5fc3\u5b57\u6bb5\u3002\u4e0d\u540c\u5e73\u53f0\u5bf9\u8fd9\u4e9b\u5b57\u6bb5\u7684\u89e3\u6790\u903b\u8f91\u4e0d\u540c\u3002<\/p>\n<h3>1. \u8282\u70b9\u683c\u5f0f\u7684\u517c\u5bb9\u6027<\/h3>\n<p>*   <strong>Clash \u539f\u7248\/Clash Meta (Mihomo) \u5185\u6838<\/strong>\uff1a\u652f\u6301\u5b8c\u6574\u7684 Clash \u8282\u70b9\u683c\u5f0f\uff0c\u5305\u62ec `vmess`\u3001`vless`\u3001`trojan`\u3001`ss`\u3001`ssr` \u7b49\u3002\u5982\u679c\u8ba2\u9605\u4e2d\u5305\u542b\u975e\u6807\u51c6\u683c\u5f0f\uff08\u5982\u81ea\u5b9a\u4e49\u7684 `wireguard` \u6216 `hysteria` \u5b57\u6bb5\uff09\uff0c\u539f\u7248\u5185\u6838\u53ef\u80fd\u5ffd\u7565\u6216\u62a5\u9519\uff0c\u800c Meta \u5185\u6838\u901a\u5e38\u517c\u5bb9\u6027\u66f4\u597d\u3002<br \/>*   <strong>Surge \/ Quantumult X<\/strong>\uff1a\u8fd9\u4e9b\u5e73\u53f0\u6709\u81ea\u5df1\u72ec\u7acb\u7684\u8282\u70b9\u683c\u5f0f\u5b9a\u4e49\u3002\u5b83\u4eec\u901a\u5e38\u901a\u8fc7\u201c\u8ba2\u9605\u8f6c\u6362\u201d\u6216\u5185\u7f6e\u7684\u201cClash \u8ba2\u9605\u5bfc\u5165\u201d\u529f\u80fd\uff0c\u5c06 Clash \u683c\u5f0f\u8f6c\u6362\u4e3a\u539f\u751f\u683c\u5f0f\u3002\u6b64\u8fc7\u7a0b\u53ef\u80fd\u5bfc\u81f4\u90e8\u5206\u9ad8\u7ea7\u53c2\u6570\uff08\u5982 `servername`\u3001`alpn`\u3001`udp` \u7b49\uff09\u4e22\u5931\u6216\u6620\u5c04\u9519\u8bef\u3002<\/p>\n<h3>2. \u7b56\u7565\u7ec4\uff08Proxy-Groups\uff09\u7684\u5904\u7406<\/h3>\n<p>*   <strong>\u81ea\u52a8\u9009\u62e9\uff08URL-Test\/Fallback\uff09<\/strong>\uff1a\u6240\u6709\u5e73\u53f0\u90fd\u652f\u6301\uff0c\u4f46\u6d4b\u901f\u673a\u5236\u4e0d\u540c\u3002Clash \u7cfb\u5217\u5ba2\u6237\u7aef\u901a\u5e38\u57fa\u4e8e TCP \u63e1\u624b\u6216 HTTP \u8bf7\u6c42\u6d4b\u901f\uff1bSurge \u652f\u6301\u66f4\u7ec6\u7c92\u5ea6\u7684\u6d4b\u901f\uff08\u5982 HTTP\/HTTPS\/DNS\uff09\u3002<br \/>*   <strong>\u8d1f\u8f7d\u5747\u8861\uff08Load-Balance\uff09<\/strong>\uff1aClash \u5185\u6838\u652f\u6301 `consistent-hashing` \u6216 `random` \u7b56\u7565\uff0c\u4f46\u79fb\u52a8\u7aef\u5e73\u53f0\uff08\u5982 Shadowrocket\uff09\u53ef\u80fd\u4ec5\u652f\u6301\u7b80\u5355\u7684\u968f\u673a\u6216\u8f6e\u8be2\uff0c\u65e0\u6cd5\u5b9e\u73b0\u4f1a\u8bdd\u4fdd\u6301\u3002<br \/>*   <strong>\u8282\u70b9\u8fc7\u6ee4<\/strong>\uff1aClash \u8ba2\u9605\u4e2d\u7684 `filter` \u5b57\u6bb5\u53ef\u6392\u9664\u7279\u5b9a\u8282\u70b9\uff0c\u4f46\u90e8\u5206\u8f7b\u91cf\u7ea7\u5ba2\u6237\u7aef\u53ef\u80fd\u5ffd\u7565\u6b64\u5b57\u6bb5\uff0c\u5bfc\u81f4\u65e0\u6548\u8282\u70b9\u51fa\u73b0\u5728\u7b56\u7565\u7ec4\u4e2d\u3002<\/p>\n<h3>3. DNS \u914d\u7f6e\u7684\u4f18\u5148\u7ea7<\/h3>\n<p>*   <strong>Clash \u5185\u6838<\/strong>\uff1a`dns` \u5b57\u6bb5\u4e2d\u7684 `nameserver`\u3001`fallback` \u548c `enhanced-mode`\uff08fake-ip\/ip-table\uff09\u7531\u5185\u6838\u76f4\u63a5\u63a5\u7ba1\uff0c\u4f18\u5148\u7ea7\u6700\u9ad8\u3002<br \/>*   <strong>\u7cfb\u7edf\u7ea7\u4ee3\u7406\u5e73\u53f0<\/strong>\uff1aSurge \u548c Quantumult X \u901a\u5e38\u4f18\u5148\u4f7f\u7528\u7cfb\u7edf DNS \u6216\u5e73\u53f0\u5185\u7f6e\u7684 DNS \u7b56\u7565\u3002\u5bfc\u5165 Clash \u8ba2\u9605\u65f6\uff0c\u5176 DNS \u8bbe\u7f6e\u53ef\u80fd\u4ec5\u4f5c\u4e3a\u201c\u53c2\u8003\u201d\u800c\u975e\u201c\u5f3a\u5236\u201d\uff0c\u9664\u975e\u7528\u6237\u624b\u52a8\u542f\u7528\u201c\u4f7f\u7528\u8ba2\u9605 DNS\u201d\u9009\u9879\u3002<\/p>\n\n<h2>4. \u89c4\u5219\u96c6\uff08Rules\uff09\u7684\u89e3\u6790\u903b\u8f91<\/h2>\n<p>Clash \u8ba2\u9605\u4e2d\u7684 `rules` \u5b57\u6bb5\u51b3\u5b9a\u4e86\u6d41\u91cf\u5982\u4f55\u88ab\u8def\u7531\u3002\u4e0d\u540c\u5e73\u53f0\u5bf9\u89c4\u5219\u7c7b\u578b\u7684\u652f\u6301\u7a0b\u5ea6\u4e0d\u540c\u3002<\/p>\n<table style=\"width:100%;border-collapse:collapse;margin:24px 0;\">\n<thead>\n<tr>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u89c4\u5219\u7c7b\u578b<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">Clash \u5185\u6838\u652f\u6301<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">Surge \u652f\u6301<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">Quantumult X \u652f\u6301<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u5e38\u89c1\u517c\u5bb9\u6027\u95ee\u9898<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">`DOMAIN`<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u65e0<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">`DOMAIN-SUFFIX`<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u65e0<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">`IP-CIDR`<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u9700\u786e\u8ba4\u662f\u5426\u5305\u542b `no-resolve`<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">`GEOIP`<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u274c (\u9700\u8f6c\u6362)<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u274c (\u9700\u8f6c\u6362)<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u79fb\u52a8\u7aef\u5e73\u53f0\u901a\u5e38\u4e0d\u652f\u6301 GEOIP\uff0c\u9700\u8f6c\u6362\u4e3a IP \u5217\u8868<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">`USER-AGENT`<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u90e8\u5206\u5e73\u53f0\u9700\u624b\u52a8\u5339\u914d UA \u5b57\u7b26\u4e32<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">`PROCESS`<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u274c<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u274c<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u4ec5 Clash \u5185\u6838\u652f\u6301\u57fa\u4e8e\u8fdb\u7a0b\u540d\u7684\u5206\u6d41<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">`RULE-SET`<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705 (\u9700\u914d\u7f6e)<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705 (\u9700\u914d\u7f6e)<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u2705 (\u9700\u914d\u7f6e)<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u9700\u786e\u4fdd\u89c4\u5219\u96c6 URL \u53ef\u8bbf\u95ee\uff0c\u4e14\u683c\u5f0f\u5339\u914d\u5e73\u53f0\u8981\u6c42<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u5173\u952e\u5dee\u5f02\u8bf4\u660e\uff1a<\/strong><br \/>*   <strong>GEOIP \u89c4\u5219<\/strong>\uff1aClash \u5185\u6838\u5185\u7f6e GeoIP \u6570\u636e\u5e93\uff0c\u53ef\u76f4\u63a5\u89e3\u6790 `GEOIP,CN` \u89c4\u5219\u3002\u4f46 Surge \u548c Quantumult X \u4e0d\u652f\u6301\u6b64\u8bed\u6cd5\uff0c\u5fc5\u987b\u8f6c\u6362\u4e3a\u5177\u4f53\u7684 IP \u6bb5\uff08`IP-CIDR`\uff09\u6216\u4f7f\u7528\u5e73\u53f0\u81ea\u5e26\u7684 GeoIP \u529f\u80fd\uff08\u9700\u624b\u52a8\u542f\u7528\uff09\u3002<br \/>*   <strong>\u8fdb\u7a0b\u540d\u5206\u6d41\uff08PROCESS\uff09<\/strong>\uff1a\u8fd9\u662f Clash \u5185\u6838\u7684\u7279\u8272\u529f\u80fd\uff0c\u5141\u8bb8\u6839\u636e\u5e94\u7528\u8fdb\u7a0b\u540d\uff08\u5982 `com.tencent.mm`\uff09\u5206\u6d41\u3002Surge \u4f7f\u7528 `PROCESS-NAME`\uff0cQuantumult X \u4f7f\u7528 `PROCESS-NAME`\uff0c\u4f46\u5339\u914d\u903b\u8f91\u548c\u5927\u5c0f\u5199\u654f\u611f\u6027\u53ef\u80fd\u4e0d\u540c\u3002<\/p>\n<h2>\u4e8c\u3001 \u4e0d\u540c\u5e73\u53f0\u7684\u5177\u4f53\u914d\u7f6e\u6d41\u7a0b\u4e0e\u6ce8\u610f\u4e8b\u9879<\/h2>\n<h3>1. Clash \u7cfb\u5217\u5ba2\u6237\u7aef\uff08Verge, Mihomo, CFW\uff09<\/h3>\n<p>*   <strong>\u914d\u7f6e\u903b\u8f91<\/strong>\uff1a\u76f4\u63a5\u89e3\u6790 YAML \u6587\u4ef6\uff0c\u652f\u6301\u70ed\u66f4\u65b0\u3002<br \/>*   <strong>\u5173\u952e\u8bbe\u7f6e<\/strong>\uff1a<br \/>    *   <strong>\u6a21\u5f0f\u9009\u62e9<\/strong>\uff1a`Global`\uff08\u5168\u5c40\uff09\u3001`Rule`\uff08\u89c4\u5219\uff09\u3001`Direct`\uff08\u76f4\u8fde\uff09\u3002\u786e\u4fdd\u9009\u62e9 `Rule` \u4ee5\u542f\u7528\u8ba2\u9605\u4e2d\u7684\u89c4\u5219\u96c6\u3002<br \/>    *   <strong>TUN \u6a21\u5f0f<\/strong>\uff1a\u5728 Windows\/macOS \u4e0a\uff0c\u542f\u7528 TUN \u6a21\u5f0f\u53ef\u63a5\u7ba1\u7cfb\u7edf\u6d41\u91cf\uff0c\u4f46\u9700\u786e\u4fdd\u9632\u706b\u5899\u5141\u8bb8 Clash \u5185\u6838\u8bbf\u95ee\u3002<br \/>    *   <strong>DNS \u589e\u5f3a<\/strong>\uff1a\u5efa\u8bae\u542f\u7528 `fake-ip`\uff0c\u53ef\u52a0\u901f DNS \u89e3\u6790\u5e76\u51cf\u5c11\u5ef6\u8fdf\u3002<br \/>*   <strong>\u5e38\u89c1\u95ee\u9898<\/strong>\uff1a\u8ba2\u9605\u66f4\u65b0\u540e\u89c4\u5219\u672a\u751f\u6548\u3002\u68c0\u67e5\u662f\u5426\u52fe\u9009\u4e86\u201c\u81ea\u52a8\u66f4\u65b0\u201d\uff0c\u6216\u624b\u52a8\u70b9\u51fb\u201c\u66f4\u65b0\u8ba2\u9605\u201d\u3002\u82e5\u89c4\u5219\u51b2\u7a81\uff0c\u68c0\u67e5 `rules` \u5b57\u6bb5\u4e2d\u662f\u5426\u6709\u91cd\u590d\u6216\u77db\u76fe\u7684\u6761\u76ee\u3002<\/p>\n<h3>2. Surge (iOS\/macOS)<\/h3>\n<p>*   <strong>\u914d\u7f6e\u903b\u8f91<\/strong>\uff1a\u901a\u8fc7\u201c\u8ba2\u9605\u201d\u529f\u80fd\u5bfc\u5165 Clash \u8ba2\u9605\uff0c\u5185\u90e8\u8f6c\u6362\u4e3a Surge \u683c\u5f0f\u3002<br \/>*   <strong>\u5173\u952e\u8bbe\u7f6e<\/strong>\uff1a<br \/>    *   <strong>\u8f6c\u6362\u9009\u9879<\/strong>\uff1a\u5bfc\u5165\u65f6\uff0c\u9009\u62e9\u201cClash \u8ba2\u9605\u201d\u7c7b\u578b\uff0c\u5e76\u52fe\u9009\u201c\u8f6c\u6362 GEOIP \u4e3a IP \u5217\u8868\u201d\uff08\u5982\u679c\u5e73\u53f0\u672a\u81ea\u52a8\u5904\u7406\uff09\u3002<br \/>    *   <strong>\u7b56\u7565\u7ec4\u540c\u6b65<\/strong>\uff1aSurge \u7684\u7b56\u7565\u7ec4\u540d\u79f0\u53ef\u80fd\u4e0e Clash \u4e0d\u540c\uff0c\u9700\u5728\u201c\u914d\u7f6e\u201d\u4e2d\u624b\u52a8\u6620\u5c04\u3002<br \/>    *   <strong>DNS \u7b56\u7565<\/strong>\uff1a\u5728\u201cDNS\u201d\u914d\u7f6e\u4e2d\uff0c\u786e\u4fdd\u201c\u4f7f\u7528\u7cfb\u7edf DNS\u201d\u672a\u88ab\u5f3a\u5236\u542f\u7528\uff0c\u5426\u5219 Clash \u7684 DNS \u8bbe\u7f6e\u5c06\u5931\u6548\u3002<br \/>*   <strong>\u5e38\u89c1\u95ee\u9898<\/strong>\uff1a\u5bfc\u5165\u540e\u8282\u70b9\u4e0d\u53ef\u7528\u3002\u68c0\u67e5\u8ba2\u9605 URL \u662f\u5426\u5305\u542b\u8ba4\u8bc1\u53c2\u6570\uff08\u5982 `?token=xxx`\uff09\uff0cSurge \u5bf9 URL \u7f16\u7801\u654f\u611f\uff0c\u53ef\u80fd\u9700\u8981\u624b\u52a8\u590d\u5236\u7c98\u8d34\u3002<\/p>\n<h3>3. Quantumult X (iOS\/macOS)<\/h3>\n<p>*   <strong>\u914d\u7f6e\u903b\u8f91<\/strong>\uff1a\u901a\u8fc7\u201c\u914d\u7f6e\u6587\u4ef6\u201d\u529f\u80fd\u5bfc\u5165\uff0c\u652f\u6301 Clash \u683c\u5f0f\u3002<br \/>*   <strong>\u5173\u952e\u8bbe\u7f6e<\/strong>\uff1a<br \/>    *   <strong>\u89c4\u5219\u96c6\u540c\u6b65<\/strong>\uff1aQuantumult X \u5bf9\u89c4\u5219\u96c6\u7684\u540c\u6b65\u673a\u5236\u8f83\u4e25\u683c\uff0c\u9700\u786e\u4fdd\u89c4\u5219\u96c6 URL \u53ef\u8bbf\u95ee\u4e14\u683c\u5f0f\u6b63\u786e\uff08\u901a\u5e38\u4e3a `RULE-SET,URL,rule`\uff09\u3002<br \/>    *   <strong>\u5206\u6d41\u89c4\u5219<\/strong>\uff1a\u5728\u201c\u5206\u6d41\u201d\u4e2d\uff0c\u68c0\u67e5\u662f\u5426\u542f\u7528\u4e86\u201c\u4f7f\u7528\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u89c4\u5219\u201d\u3002\u82e5\u672a\u542f\u7528\uff0c\u5c06\u4f7f\u7528\u9ed8\u8ba4\u5206\u6d41\u3002<br \/>*   <strong>\u5e38\u89c1\u95ee\u9898<\/strong>\uff1aDNS \u89e3\u6790\u5931\u8d25\u3002Quantumult X \u7684 DNS \u914d\u7f6e\u9700\u624b\u52a8\u8c03\u6574\uff0c\u786e\u4fdd `nameserver` \u548c `fallback` \u914d\u7f6e\u6b63\u786e\uff0c\u4e14\u4e0e Clash \u8ba2\u9605\u4e2d\u7684 DNS \u8bbe\u7f6e\u4e00\u81f4\u3002<\/p>\n<h3>4. Shadowrocket (iOS)<\/h3>\n<p>*   <strong>\u914d\u7f6e\u903b\u8f91<\/strong>\uff1a\u652f\u6301 Clash \u8ba2\u9605\uff0c\u4f46\u754c\u9762\u914d\u7f6e\u8f83\u4e3a\u7b80\u5316\u3002<br \/>*   <strong>\u5173\u952e\u8bbe\u7f6e<\/strong>\uff1a<br \/>    *   <strong>\u8282\u70b9\u9009\u62e9<\/strong>\uff1aShadowrocket \u7684\u7b56\u7565\u7ec4\u914d\u7f6e\u8f83\u4e3a\u56fa\u5b9a\uff0c\u7528\u6237\u9700\u624b\u52a8\u5728\u201c\u8282\u70b9\u201d\u4e2d\u9009\u62e9\u7b56\u7565\u7ec4\u7c7b\u578b\uff08\u5982\u201c\u81ea\u52a8\u9009\u62e9\u201d\u3001\u201c\u6545\u969c\u8f6c\u79fb\u201d\uff09\u3002<br \/>    *   <strong>\u89c4\u5219\u7ba1\u7406<\/strong>\uff1aShadowrocket \u7684\u89c4\u5219\u7ba1\u7406\u8f83\u5f31\uff0c\u5bfc\u5165\u8ba2\u9605\u540e\uff0c\u90e8\u5206\u9ad8\u7ea7\u89c4\u5219\uff08\u5982 USER-AGENT\uff09\u53ef\u80fd\u65e0\u6cd5\u751f\u6548\u3002<br \/>*   <strong>\u5e38\u89c1\u95ee\u9898<\/strong>\uff1a\u8ba2\u9605\u66f4\u65b0\u540e\u8282\u70b9\u6d88\u5931\u3002\u68c0\u67e5\u8ba2\u9605 URL \u662f\u5426\u6709\u6548\uff0c\u6216\u5c1d\u8bd5\u91cd\u65b0\u5bfc\u5165\u3002Shadowrocket \u5bf9\u8ba2\u9605\u683c\u5f0f\u8981\u6c42\u8f83\u4e25\uff0c\u82e5\u683c\u5f0f\u6709\u8bef\uff0c\u53ef\u80fd silently fail\uff08\u9759\u9ed8\u5931\u8d25\uff09\u3002<\/p>\n<h2>\u4e09\u3001 \u8de8\u5e73\u53f0\u8fc1\u79fb\u7684\u5e38\u89c1\u9677\u9631\u4e0e\u89e3\u51b3\u65b9\u6848<\/h2>\n<h3>1. \u8ba2\u9605 URL \u7684\u517c\u5bb9\u6027<\/h3>\n<p>*   <strong>\u95ee\u9898<\/strong>\uff1a\u67d0\u4e9b\u8ba2\u9605\u670d\u52a1\u63d0\u4f9b\u7684 URL \u5305\u542b\u7279\u6b8a\u5b57\u7b26\u6216\u957f token\uff0c\u5728\u4e0d\u540c\u5e73\u53f0\u4e2d\u53ef\u80fd\u88ab\u622a\u65ad\u6216\u7f16\u7801\u9519\u8bef\u3002<br \/>*   <strong>\u89e3\u51b3<\/strong>\uff1a\u5728\u5bfc\u5165\u524d\uff0c\u4f7f\u7528\u6d4f\u89c8\u5668\u6253\u5f00\u8ba2\u9605 URL\uff0c\u786e\u8ba4\u80fd\u6b63\u5e38\u4e0b\u8f7d YAML \u6587\u4ef6\u3002\u82e5\u6587\u4ef6\u5185\u5bb9\u4e71\u7801\uff0c\u68c0\u67e5\u7f16\u7801\u662f\u5426\u4e3a UTF-8\u3002<\/p>\n<h3>2. \u89c4\u5219\u51b2\u7a81\u4e0e\u4f18\u5148\u7ea7<\/h3>\n<p>*   <strong>\u95ee\u9898<\/strong>\uff1a\u4e0d\u540c\u5e73\u53f0\u5bf9\u89c4\u5219\u4f18\u5148\u7ea7\u7684\u5904\u7406\u4e0d\u540c\u3002\u4f8b\u5982\uff0cClash \u4e2d `DOMAIN` \u89c4\u5219\u4f18\u5148\u4e8e `DOMAIN-SUFFIX`\uff0c\u4f46\u67d0\u4e9b\u5e73\u53f0\u53ef\u80fd\u6309\u987a\u5e8f\u5339\u914d\u3002<br \/>*   <strong>\u89e3\u51b3<\/strong>\uff1a\u5728\u5bfc\u5165\u540e\uff0c\u4f7f\u7528\u201c\u89c4\u5219\u6d4b\u8bd5\u201d\u529f\u80fd\uff08\u5982\u6709\uff09\u6216\u624b\u52a8\u8bbf\u95ee\u6d4b\u8bd5\u7f51\u7ad9\uff0c\u9a8c\u8bc1\u89c4\u5219\u662f\u5426\u6309\u9884\u671f\u5de5\u4f5c\u3002\u82e5\u53d1\u73b0\u89c4\u5219\u51b2\u7a81\uff0c\u53ef\u5728\u8ba2\u9605\u6587\u4ef6\u4e2d\u8c03\u6574\u89c4\u5219\u987a\u5e8f\uff0c\u6216\u5728\u5ba2\u6237\u7aef\u4e2d\u624b\u52a8\u8986\u76d6\u3002<\/p>\n<h3>3. DNS \u6c61\u67d3\u4e0e\u89e3\u6790\u5931\u8d25<\/h3>\n<p>*   <strong>\u95ee\u9898<\/strong>\uff1aClash \u8ba2\u9605\u4e2d\u7684 DNS \u8bbe\u7f6e\u53ef\u80fd\u5728\u67d0\u4e9b\u5e73\u53f0\u4e2d\u672a\u751f\u6548\uff0c\u5bfc\u81f4 DNS \u6c61\u67d3\u6216\u89e3\u6790\u7f13\u6162\u3002<br \/>*   <strong>\u89e3\u51b3<\/strong>\uff1a\u5728\u5ba2\u6237\u7aef\u4e2d\u624b\u52a8\u68c0\u67e5 DNS \u914d\u7f6e\uff0c\u786e\u4fdd `nameserver` \u6307\u5411\u53ef\u9760\u7684 DNS \u670d\u52a1\u5668\uff08\u5982 `8.8.8.8`\u3001`1.1.1.1` \u6216\u672c\u5730 DNS\uff09\u3002\u82e5\u4f7f\u7528 `fake-ip`\uff0c\u786e\u4fdd\u5ba2\u6237\u7aef\u652f\u6301\u5e76\u542f\u7528\u8be5\u6a21\u5f0f\u3002<\/p>\n<h3>4. \u8282\u70b9\u683c\u5f0f\u4e0e\u534f\u8bae\u652f\u6301<\/h3>\n<p>*   <strong>\u95ee\u9898<\/strong>\uff1a\u8ba2\u9605\u4e2d\u5305\u542b\u65b0\u534f\u8bae\uff08\u5982 `hysteria`\u3001`tuic`\uff09\uff0c\u4f46\u76ee\u6807\u5e73\u53f0\u4e0d\u652f\u6301\u3002<br \/>*   <strong>\u89e3\u51b3<\/strong>\uff1a\u68c0\u67e5\u5e73\u53f0\u6587\u6863\uff0c\u786e\u8ba4\u662f\u5426\u652f\u6301\u8be5\u534f\u8bae\u3002\u82e5\u4e0d\u652f\u6301\uff0c\u9700\u8054\u7cfb\u8ba2\u9605\u670d\u52a1\u5546\u63d0\u4f9b\u517c\u5bb9\u683c\u5f0f\uff0c\u6216\u66f4\u6362\u652f\u6301\u8be5\u534f\u8bae\u7684\u5e73\u53f0\u3002<\/p>\n<h2>\u56db\u3001 \u5982\u4f55\u9a8c\u8bc1\u8ba2\u9605\u5728\u4e0d\u540c\u5e73\u53f0\u7684\u6709\u6548\u6027<\/h2>\n<p>\u2022 <strong>\u5bfc\u5165\u524d\u68c0\u67e5<\/strong>\uff1a\u4f7f\u7528\u5728\u7ebf YAML \u9a8c\u8bc1\u5de5\u5177\uff08\u5982 `yaml-validator.com`\uff09\u68c0\u67e5\u8ba2\u9605\u6587\u4ef6\u683c\u5f0f\u662f\u5426\u6b63\u786e\u3002<br \/>\u2022 <strong>\u5bfc\u5165\u540e\u6d4b\u8bd5<\/strong>\uff1a<br \/>    *   <strong>\u8282\u70b9\u8fde\u901a\u6027<\/strong>\uff1a\u5728\u5ba2\u6237\u7aef\u4e2d\u624b\u52a8\u6d4b\u8bd5\u6bcf\u4e2a\u8282\u70b9\u7684\u5ef6\u8fdf\u548c\u4e22\u5305\u7387\u3002<br \/>    *   <strong>\u89c4\u5219\u751f\u6548\u6027<\/strong>\uff1a\u8bbf\u95ee `ipinfo.io` \u6216 `whoer.net`\uff0c\u68c0\u67e5 IP \u5730\u5740\u548c\u5730\u7406\u4f4d\u7f6e\u662f\u5426\u7b26\u5408\u9884\u671f\u3002<br \/>    *   <strong>DNS \u89e3\u6790<\/strong>\uff1a\u4f7f\u7528 `nslookup` \u6216\u5e73\u53f0\u5185\u7f6e\u7684 DNS \u6d4b\u8bd5\u5de5\u5177\uff0c\u68c0\u67e5 DNS \u89e3\u6790\u662f\u5426\u6b63\u5e38\u3002<br \/>\u2022 <strong>\u65e5\u5fd7\u5206\u6790<\/strong>\uff1a\u67e5\u770b\u5ba2\u6237\u7aef\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u641c\u7d22 `error`\u3001`warning` \u6216 `dns` \u76f8\u5173\u6761\u76ee\uff0c\u5b9a\u4f4d\u95ee\u9898\u6839\u6e90\u3002<\/p>\n<h2>\u4e94\u3001 \u603b\u7ed3\u4e0e\u5efa\u8bae<\/h2>\n<p>\u4e0d\u540c\u5e73\u53f0\u7684 Clash \u8282\u70b9\u8ba2\u9605\u533a\u522b\u4e3b\u8981\u4f53\u73b0\u5728\u914d\u7f6e\u89e3\u6790\u903b\u8f91\u3001\u89c4\u5219\u652f\u6301\u8303\u56f4\u548c DNS \u5904\u7406\u673a\u5236\u4e0a\u3002Clash \u5185\u6838\u7cfb\u5217\u5ba2\u6237\u7aef\u517c\u5bb9\u6027\u6700\u597d\uff0c\u4f46\u529f\u80fd\u590d\u6742\uff1b\u79fb\u52a8\u7aef\u5e73\u53f0\uff08Surge\u3001Quantumult X\u3001Shadowrocket\uff09\u9700\u5173\u6ce8\u683c\u5f0f\u8f6c\u6362\u548c\u89c4\u5219\u6620\u5c04\u3002<\/p>\n<p><strong>\u5efa\u8bae\uff1a<\/strong><br \/>*   <strong>\u9009\u62e9\u5e73\u53f0\u65f6<\/strong>\uff1a\u6839\u636e\u8bbe\u5907\u751f\u6001\u548c\u529f\u80fd\u9700\u6c42\u9009\u62e9\u3002Windows\/macOS \u7528\u6237\u63a8\u8350 Clash Verge \u6216 Mihomo\uff1biOS \u7528\u6237\u63a8\u8350 Surge\uff08\u529f\u80fd\u5f3a\u5927\uff09\u6216 Quantumult X\uff08\u754c\u9762\u53cb\u597d\uff09\u3002<br \/>*   <strong>\u8ba2\u9605\u7ef4\u62a4\u65f6<\/strong>\uff1a\u5b9a\u671f\u66f4\u65b0\u8ba2\u9605\uff0c\u5e76\u68c0\u67e5\u5e73\u53f0\u517c\u5bb9\u6027\u3002\u82e5\u9047\u5230\u914d\u7f6e\u95ee\u9898\uff0c\u4f18\u5148\u68c0\u67e5 DNS \u548c\u89c4\u5219\u96c6\u3002<br \/>*   <strong>\u6545\u969c\u6392\u67e5\u65f6<\/strong>\uff1a\u4ece\u6700\u7b80\u5355\u7684\u914d\u7f6e\u5f00\u59cb\uff0c\u9010\u6b65\u6dfb\u52a0\u9ad8\u7ea7\u529f\u80fd\uff0c\u907f\u514d\u4e00\u6b21\u6027\u5bfc\u5165\u8fc7\u591a\u590d\u6742\u914d\u7f6e\u5bfc\u81f4\u96be\u4ee5\u5b9a\u4f4d\u95ee\u9898\u3002<\/p>\n<p>\u901a\u8fc7\u7406\u89e3\u8fd9\u4e9b\u5dee\u5f02\uff0c\u7528\u6237\u53ef\u4ee5\u66f4\u6709\u6548\u5730\u5229\u7528 Clash \u8ba2\u9605\uff0c\u5728\u4e0d\u540c\u5e73\u53f0\u4e0a\u83b7\u5f97\u7a33\u5b9a\u3001\u9ad8\u6548\u7684\u7f51\u7edc\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Clash \u8ba2\u9605\uff08YAML \u683c\u5f0f\uff09\u7684\u6838\u5fc3\u5728\u4e8e\u5b9a\u4e49\u4ee3\u7406\u89c4\u5219\u3001DNS \u7b56\u7565\u548c\u754c\u9762\u914d\u7f6e\uff0c\u4f46\u4e0d\u540c\u5ba2\u6237\u7aef\uff08\u5982 Clash [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-768","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts\/768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/comments?post=768"}],"version-history":[{"count":0,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts\/768\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/media?parent=768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/categories?post=768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/tags?post=768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}