{"id":907,"date":"2026-06-15T16:24:18","date_gmt":"2026-06-15T08:24:18","guid":{"rendered":"https:\/\/www.suannai.link\/blog\/clash%e8%ae%a2%e9%98%85%e9%93%be%e6%8e%a5%e6%a0%bc%e5%bc%8f%e8%af%a6%e8%a7%a3%ef%bc%9a%e7%bb%93%e6%9e%84%e8%a7%a3%e6%9e%90%e4%b8%8e%e9%85%8d%e7%bd%ae%e9%81%bf%e5%9d%91\/"},"modified":"2026-06-15T16:24:18","modified_gmt":"2026-06-15T08:24:18","slug":"clash%e8%ae%a2%e9%98%85%e9%93%be%e6%8e%a5%e6%a0%bc%e5%bc%8f%e8%af%a6%e8%a7%a3%ef%bc%9a%e7%bb%93%e6%9e%84%e8%a7%a3%e6%9e%90%e4%b8%8e%e9%85%8d%e7%bd%ae%e9%81%bf%e5%9d%91","status":"publish","type":"post","link":"https:\/\/www.suannai.link\/blog\/clash%e8%ae%a2%e9%98%85%e9%93%be%e6%8e%a5%e6%a0%bc%e5%bc%8f%e8%af%a6%e8%a7%a3%ef%bc%9a%e7%bb%93%e6%9e%84%e8%a7%a3%e6%9e%90%e4%b8%8e%e9%85%8d%e7%bd%ae%e9%81%bf%e5%9d%91\/","title":{"rendered":"Clash\u8ba2\u9605\u94fe\u63a5\u683c\u5f0f\u8be6\u89e3\uff1a\u7ed3\u6784\u89e3\u6790\u4e0e\u914d\u7f6e\u907f\u5751"},"content":{"rendered":"<p>Clash \u8ba2\u9605\u94fe\u63a5\u901a\u5e38\u91c7\u7528 Base64 \u7f16\u7801\u7684 YAML \u5b57\u7b26\u4e32\u683c\u5f0f\uff0c\u4ee5 `clash:\/\/` \u6216 ` \u5f00\u5934\u3002\u5f88\u591a\u7528\u6237\u5728\u5bfc\u5165\u914d\u7f6e\u65f6\u9047\u5230\u201c\u65e0\u6548\u914d\u7f6e\u201d\u6216\u201c\u89e3\u6790\u5931\u8d25\u201d\u7684\u9519\u8bef\uff0c\u5f80\u5f80\u662f\u56e0\u4e3a\u94fe\u63a5\u7ed3\u6784\u4e0d\u5b8c\u6574\u3001\u7f16\u7801\u683c\u5f0f\u9519\u8bef\u6216\u5ba2\u6237\u7aef\u7248\u672c\u4e0d\u517c\u5bb9\u3002\u7406\u89e3\u8ba2\u9605\u94fe\u63a5\u7684\u5185\u90e8\u7ed3\u6784\uff0c\u662f\u6392\u67e5\u914d\u7f6e\u5931\u8d25\u3001\u624b\u52a8\u4fee\u6b63\u8282\u70b9\u4fe1\u606f\u4ee5\u53ca\u5728\u4e0d\u540c\u5ba2\u6237\u7aef\u95f4\u8fc1\u79fb\u6570\u636e\u7684\u5173\u952e\u3002<\/p>\n<p>\u672c\u6587\u5c06\u6df1\u5165\u62c6\u89e3 Clash \u8ba2\u9605\u94fe\u63a5\u7684\u7ec4\u6210\u5143\u7d20\uff0c\u5206\u6790\u5e38\u89c1\u62a5\u9519\u539f\u56e0\uff0c\u5e76\u63d0\u4f9b\u6807\u51c6\u7684\u914d\u7f6e\u9a8c\u8bc1\u65b9\u6cd5\u3002<\/p>\n<h2>\u8ba2\u9605\u94fe\u63a5\u7684\u6838\u5fc3\u7ed3\u6784\u4e0e\u7ec4\u6210<\/h2>\n<p>Clash \u7684\u8ba2\u9605\u94fe\u63a5\u672c\u8d28\u4e0a\u662f\u4e00\u4e2a\u6307\u5411\u8fdc\u7a0b YAML \u914d\u7f6e\u6587\u4ef6\u7684 URL\u3002\u5f53\u5ba2\u6237\u7aef\u8bfb\u53d6\u8be5\u94fe\u63a5\u65f6\uff0c\u4f1a\u4e0b\u8f7d\u5e76\u89e3\u6790\u5176\u4e2d\u7684 YAML \u6570\u636e\u3002\u4e00\u4e2a\u6807\u51c6\u7684\u3001\u53ef\u88ab\u73b0\u4ee3 Clash \u6838\u5fc3\uff08\u5982 Clash Meta\/Mihomo\uff09\u8bc6\u522b\u7684\u8ba2\u9605\u94fe\u63a5\uff0c\u901a\u5e38\u5305\u542b\u4ee5\u4e0b\u5173\u952e\u90e8\u5206\uff1a<\/p>\n<h3>1. \u534f\u8bae\u5934\uff08Protocol Header\uff09<\/h3>\n<p>\u8ba2\u9605\u94fe\u63a5\u7684\u5f00\u5934\u51b3\u5b9a\u4e86\u5ba2\u6237\u7aef\u5982\u4f55\u89e3\u6790\u540e\u7eed\u5185\u5bb9\u3002\u5e38\u89c1\u7684\u534f\u8bae\u5934\u5305\u62ec\uff1a<br \/>\u2022 <strong>`clash:\/\/`<\/strong>\uff1a\u8fd9\u662f Clash \u5b98\u65b9\u63a8\u8350\u7684\u534f\u8bae\u5934\uff0c\u4e3b\u8981\u7528\u4e8e\u901a\u8fc7 URL Scheme \u76f4\u63a5\u5524\u8d77\u5ba2\u6237\u7aef\u5e76\u81ea\u52a8\u5bfc\u5165\u914d\u7f6e\u3002\u5b83\u5305\u542b\u914d\u7f6e\u540d\u79f0\u3001\u52a0\u5bc6\u65b9\u5f0f\u548c\u914d\u7f6e\u5185\u5bb9\u3002<br \/>\u2022 <strong>`<\/strong>\uff1a\u8fd9\u662f\u6700\u5e38\u89c1\u7684\u5f62\u5f0f\uff0c\u6307\u5411\u4e00\u4e2a\u6258\u7ba1\u5728\u670d\u52a1\u5668\u4e0a\u7684 YAML \u914d\u7f6e\u6587\u4ef6\u3002\u5ba2\u6237\u7aef\u901a\u8fc7 HTTP\/HTTPS \u8bf7\u6c42\u4e0b\u8f7d\u5185\u5bb9\u3002<br \/>\u2022 <strong>`vmess:\/\/` \/ `vless:\/\/` \/ `ss:\/\/`<\/strong>\uff1a\u8fd9\u4e9b\u901a\u5e38\u51fa\u73b0\u5728<strong>\u5355\u4e2a\u8282\u70b9<\/strong>\u7684\u914d\u7f6e\u4e2d\uff0c\u800c\u975e\u6574\u4e2a\u8ba2\u9605\u94fe\u63a5\u7684\u5f00\u5934\u3002\u5982\u679c\u6574\u4e2a\u8ba2\u9605\u94fe\u63a5\u4ee5\u8fd9\u4e9b\u5f00\u5934\uff0c\u901a\u5e38\u610f\u5473\u7740\u5b83\u662f\u4e00\u4e2a\u5355\u8282\u70b9\u5206\u4eab\u94fe\u63a5\uff0c\u800c\u975e\u591a\u8282\u70b9\u8ba2\u9605\u3002<\/p>\n<h3>2. Base64 \u7f16\u7801\u5185\u5bb9<\/h3>\n<p>\u5bf9\u4e8e `clash:\/\/` \u534f\u8bae\u5934\u7684\u94fe\u63a5\uff0c\u540e\u7eed\u5185\u5bb9\u901a\u5e38\u662f Base64 \u7f16\u7801\u7684\u5b57\u7b26\u4e32\u3002\u89e3\u7801\u540e\uff0c\u5176\u5185\u90e8\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n<p>&#8220;`text<br \/>\u914d\u7f6e\u540d\u79f0|\u52a0\u5bc6\u65b9\u5f0f|\u914d\u7f6e\u5185\u5bb9<br \/>&#8220;`<br \/>\u2022 <strong>\u914d\u7f6e\u540d\u79f0<\/strong>\uff1a\u7528\u4e8e\u5728\u5ba2\u6237\u7aef\u5217\u8868\u4e2d\u663e\u793a\u7684\u540d\u79f0\u3002<br \/>\u2022 <strong>\u52a0\u5bc6\u65b9\u5f0f<\/strong>\uff1a\u6307\u5b9a\u89e3\u7801\u914d\u7f6e\u5185\u5bb9\u65f6\u4f7f\u7528\u7684\u52a0\u5bc6\u7b97\u6cd5\uff08\u5982 `aes-256-gcm`\uff09\u3002<br \/>\u2022 <strong>\u914d\u7f6e\u5185\u5bb9<\/strong>\uff1a\u7ecf\u8fc7\u52a0\u5bc6\u540e\u7684 YAML \u683c\u5f0f\u5b57\u7b26\u4e32\uff0c\u5305\u542b\u8282\u70b9\u4fe1\u606f\u3001\u4ee3\u7406\u7ec4\u89c4\u5219\u3001DNS \u8bbe\u7f6e\u7b49\u3002<\/p>\n<p>\u5bf9\u4e8e ` \u534f\u8bae\u5934\u7684\u94fe\u63a5\uff0c\u94fe\u63a5\u672c\u8eab\u5373\u4e3a\u4e0b\u8f7d URL\uff0c\u5185\u5bb9\u76f4\u63a5\u4e3a\u672a\u7f16\u7801\u7684 YAML \u6587\u672c\u3002<\/p>\n<h3>3. YAML \u914d\u7f6e\u5185\u5bb9\u7684\u5173\u952e\u5b57\u6bb5<\/h3>\n<p>\u65e0\u8bba\u94fe\u63a5\u5f62\u5f0f\u5982\u4f55\uff0c\u6700\u7ec8\u88ab\u5ba2\u6237\u7aef\u89e3\u6790\u7684 YAML \u5185\u5bb9\u5fc5\u987b\u5305\u542b\u4ee5\u4e0b\u6838\u5fc3\u5b57\u6bb5\uff0c\u5426\u5219\u4f1a\u88ab\u89c6\u4e3a\u65e0\u6548\u914d\u7f6e\uff1a<br \/>\u2022 <strong>`proxies`<\/strong>\uff1a\u8282\u70b9\u5217\u8868\u3002\u6bcf\u4e2a\u8282\u70b9\u9700\u5305\u542b `name`\u3001`type`\u3001`server`\u3001`port`\u3001`cipher`\u3001`password` \u7b49\u5fc5\u8981\u53c2\u6570\u3002<br \/>\u2022 <strong>`proxy-groups`<\/strong>\uff1a\u4ee3\u7406\u7ec4\u5b9a\u4e49\uff0c\u5982 `select`\u3001`url-test`\u3001`fallback` \u7b49\uff0c\u7528\u4e8e\u51b3\u5b9a\u6d41\u91cf\u8f6c\u53d1\u7b56\u7565\u3002<br \/>\u2022 <strong>`rules`<\/strong>\uff1a\u8def\u7531\u89c4\u5219\uff0c\u5b9a\u4e49\u4e0d\u540c\u57df\u540d\u6216 IP \u6bb5\u7684\u5904\u7406\u903b\u8f91\uff08\u5982 `DIRECT`\u3001`PROXY`\u3001`REJECT`\uff09\u3002<\/p>\n\n<h2>\u5e38\u89c1\u8ba2\u9605\u94fe\u63a5\u683c\u5f0f\u9519\u8bef\u4e0e\u6392\u67e5<\/h2>\n<p>\u5f53\u5ba2\u6237\u7aef\u63d0\u793a\u201c\u8ba2\u9605\u5931\u8d25\u201d\u6216\u201c\u914d\u7f6e\u683c\u5f0f\u9519\u8bef\u201d\u65f6\uff0c\u901a\u5e38\u662f\u94fe\u63a5\u7ed3\u6784\u6216\u5185\u5bb9\u5b58\u5728\u4ee5\u4e0b\u95ee\u9898\u3002\u8bf7\u6309\u4ee5\u4e0b\u987a\u5e8f\u6392\u67e5\uff1a<\/p>\n<h3>1. \u94fe\u63a5\u88ab\u622a\u65ad\u6216\u5305\u542b\u591a\u4f59\u5b57\u7b26<\/h3>\n<p><strong>\u73b0\u8c61<\/strong>\uff1a\u590d\u5236\u7c98\u8d34\u94fe\u63a5\u540e\uff0c\u5ba2\u6237\u7aef\u65e0\u6cd5\u89e3\u6790\uff0c\u6216\u63d0\u793a\u201cInvalid base64\u201d\u3002<br \/><strong>\u539f\u56e0<\/strong>\uff1a<br \/>\u2022 \u4ece\u7f51\u9875\u6216\u6587\u6863\u590d\u5236\u65f6\uff0c\u94fe\u63a5\u524d\u540e\u591a\u51fa\u4e86\u7a7a\u683c\u3001\u6362\u884c\u7b26\u6216\u5f15\u53f7\u3002<br \/>\u2022 \u94fe\u63a5\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u88ab\u622a\u65ad\uff0c\u5c24\u5176\u662f\u957f\u94fe\u63a5\u5728\u90e8\u5206\u7f16\u8f91\u5668\u4e2d\u53ef\u80fd\u88ab\u81ea\u52a8\u6362\u884c\u3002<br \/><strong>\u89e3\u51b3\u65b9\u6cd5<\/strong>\uff1a<br \/>\u2022 \u786e\u4fdd\u590d\u5236\u7684\u94fe\u63a5\u662f\u5b8c\u6574\u7684\u4e00\u884c\uff0c\u65e0\u6362\u884c\u3002<br \/>\u2022 \u5728\u7eaf\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u7c98\u8d34\uff0c\u68c0\u67e5\u9996\u5c3e\u662f\u5426\u6709\u4e0d\u53ef\u89c1\u5b57\u7b26\u3002<br \/>\u2022 \u5982\u679c\u662f `clash:\/\/` \u683c\u5f0f\uff0c\u786e\u4fdd `|` \u5206\u9694\u7b26\u6b63\u786e\uff0c\u4e14\u52a0\u5bc6\u65b9\u5f0f\u4e0e\u5185\u5bb9\u5339\u914d\u3002<\/p>\n<h3>2. Base64 \u7f16\u7801\u4e0d\u89c4\u8303<\/h3>\n<p><strong>\u73b0\u8c61<\/strong>\uff1a\u94fe\u63a5\u4ee5 `clash:\/\/` \u5f00\u5934\uff0c\u4f46\u5ba2\u6237\u7aef\u65e0\u6cd5\u81ea\u52a8\u5bfc\u5165\u3002<br \/><strong>\u539f\u56e0<\/strong>\uff1a<br \/>\u2022 Base64 \u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u4e86\u975e\u6807\u51c6\u5b57\u7b26\uff08\u5982 `+`\u3001`\/`\u3001`=` \u88ab\u66ff\u6362\u6216\u79fb\u9664\uff09\u3002<br \/>\u2022 \u4f7f\u7528\u4e86 URL \u7f16\u7801\uff08Percent-encoding\uff09\u4f46\u672a\u6b63\u786e\u89e3\u7801\u3002\u4f8b\u5982\uff0c`+` \u5728 URL \u4e2d\u53ef\u80fd\u88ab\u7f16\u7801\u4e3a `%2B`\uff0c\u4f46\u5728 Base64 \u4e2d\u5e94\u4e3a `+`\u3002<br \/><strong>\u89e3\u51b3\u65b9\u6cd5<\/strong>\uff1a<br \/>\u2022 \u4f7f\u7528\u5728\u7ebf Base64 \u89e3\u7801\u5de5\u5177\u9a8c\u8bc1\u94fe\u63a5\u540e\u534a\u90e8\u5206\u662f\u5426\u4e3a\u6709\u6548\u7684 YAML \u6587\u672c\u3002<br \/>\u2022 \u786e\u4fdd\u7f16\u7801\u7b26\u5408 RFC 4648 \u6807\u51c6\uff0c\u672a\u8fdb\u884c\u989d\u5916\u7684 URL \u7f16\u7801\u5904\u7406\u3002<\/p>\n<h3>3. YAML \u8bed\u6cd5\u9519\u8bef<\/h3>\n<p><strong>\u73b0\u8c61<\/strong>\uff1a\u5ba2\u6237\u7aef\u80fd\u4e0b\u8f7d\u5185\u5bb9\uff0c\u4f46\u63d0\u793a\u201cYAML parse error\u201d\u6216\u201cInvalid config\u201d\u3002<br \/><strong>\u539f\u56e0<\/strong>\uff1a<br \/>\u2022 YAML \u7f29\u8fdb\u9519\u8bef\uff1aYAML \u5bf9\u7f29\u8fdb\u654f\u611f\uff0c\u7a7a\u683c\u4e0e Tab \u6df7\u7528\u4f1a\u5bfc\u81f4\u89e3\u6790\u5931\u8d25\u3002<br \/>\u2022 \u7279\u6b8a\u5b57\u7b26\u672a\u8f6c\u4e49\uff1a\u8282\u70b9\u540d\u79f0\u6216\u5bc6\u7801\u4e2d\u5305\u542b `:`\u3001`#`\u3001`{`\u3001`}` \u7b49 YAML \u4fdd\u7559\u5b57\u7b26\uff0c\u672a\u7528\u5f15\u53f7\u5305\u88f9\u3002<br \/>\u2022 \u7f3a\u5931\u5fc5\u8981\u5b57\u6bb5\uff1a\u5982 `proxies` \u4e2d\u7684 `type` \u5b57\u6bb5\u7f3a\u5931\u6216\u62fc\u5199\u9519\u8bef\u3002<br \/><strong>\u89e3\u51b3\u65b9\u6cd5<\/strong>\uff1a<br \/>\u2022 \u4f7f\u7528 YAML Linter \u5de5\u5177\u68c0\u67e5\u89e3\u7801\u540e\u7684\u914d\u7f6e\u5185\u5bb9\u3002<br \/>\u2022 \u786e\u4fdd\u6240\u6709\u5b57\u7b26\u4e32\u503c\u5305\u542b\u7279\u6b8a\u5b57\u7b26\u65f6\uff0c\u4f7f\u7528\u5355\u5f15\u53f7\u6216\u53cc\u5f15\u53f7\u5305\u88f9\u3002<\/p>\n<h3>4. \u5ba2\u6237\u7aef\u7248\u672c\u517c\u5bb9\u6027<\/h3>\n<p><strong>\u73b0\u8c61<\/strong>\uff1a\u94fe\u63a5\u5728\u5176\u4ed6\u5ba2\u6237\u7aef\u53ef\u7528\uff0c\u4f46\u5728\u5f53\u524d\u5ba2\u6237\u7aef\u65e0\u6548\u3002<br \/><strong>\u539f\u56e0<\/strong>\uff1a<br \/>\u2022 \u4f7f\u7528\u4e86\u8f83\u65b0\u7684 Clash \u6838\u5fc3\u7279\u6027\uff08\u5982 `mihomo` \u7279\u6709\u7684\u5b57\u6bb5\uff09\uff0c\u65e7\u7248\u5ba2\u6237\u7aef\u65e0\u6cd5\u8bc6\u522b\u3002<br \/>\u2022 \u8ba2\u9605\u94fe\u63a5\u6307\u5411\u7684 YAML \u683c\u5f0f\u4e0d\u7b26\u5408\u5f53\u524d\u5ba2\u6237\u7aef\u8981\u6c42\u7684\u7248\u672c\uff08\u5982 `config-version` \u4e0d\u5339\u914d\uff09\u3002<br \/><strong>\u89e3\u51b3\u65b9\u6cd5<\/strong>\uff1a<br \/>\u2022 \u66f4\u65b0\u5ba2\u6237\u7aef\u81f3\u6700\u65b0\u7248\u672c\u3002<br \/>\u2022 \u68c0\u67e5\u8ba2\u9605\u6e90\u662f\u5426\u63d0\u4f9b\u517c\u5bb9\u4e0d\u540c\u5ba2\u6237\u7aef\u7248\u672c\u7684\u914d\u7f6e\uff08\u5982\u6807\u51c6 Clash \u683c\u5f0f vs. Meta \u683c\u5f0f\uff09\u3002<\/p>\n<h2>\u5982\u4f55\u624b\u52a8\u9a8c\u8bc1\u8ba2\u9605\u94fe\u63a5\u7684\u6709\u6548\u6027<\/h2>\n<p>\u5728\u5c06\u8ba2\u9605\u94fe\u63a5\u5bfc\u5165\u5ba2\u6237\u7aef\u524d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u624b\u52a8\u9a8c\u8bc1\u5176\u6709\u6548\u6027\uff0c\u907f\u514d\u53cd\u590d\u5c1d\u8bd5\u5bfc\u5165\u5931\u8d25\u3002<\/p>\n<h3>\u6b65\u9aa4 1\uff1a\u63d0\u53d6\u5e76\u89e3\u7801\u5185\u5bb9<\/h3>\n<p>\u5982\u679c\u662f `clash:\/\/` \u94fe\u63a5\uff1a<br \/>\u2022 \u63d0\u53d6 `clash:\/\/` \u540e\u7684 Base64 \u5b57\u7b26\u4e32\u3002<br \/>\u2022 \u4f7f\u7528 Base64 \u89e3\u7801\u5de5\u5177\u89e3\u7801\uff0c\u5f97\u5230 `\u540d\u79f0|\u52a0\u5bc6\u65b9\u5f0f|\u5185\u5bb9`\u3002<br \/>\u2022 \u4f7f\u7528 `\u52a0\u5bc6\u65b9\u5f0f` \u5bf9 `\u5185\u5bb9` \u8fdb\u884c\u89e3\u5bc6\uff0c\u5f97\u5230\u539f\u59cb YAML \u6587\u672c\u3002<\/p>\n<p>\u5982\u679c\u662f ` \u94fe\u63a5\uff1a<br \/>\u2022 \u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u94fe\u63a5\u3002<br \/>\u2022 \u5982\u679c\u663e\u793a YAML \u6587\u672c\uff0c\u8bf4\u660e\u94fe\u63a5\u6709\u6548\uff1b\u5982\u679c\u663e\u793a 404 \u6216\u9519\u8bef\u9875\u9762\uff0c\u8bf4\u660e\u94fe\u63a5\u5931\u6548\u3002<\/p>\n<h3>\u6b65\u9aa4 2\uff1a\u68c0\u67e5 YAML \u7ed3\u6784<\/h3>\n<p>\u4f7f\u7528\u5728\u7ebf YAML \u9a8c\u8bc1\u5de5\u5177\uff08\u5982 YAML Linter\uff09\u7c98\u8d34\u89e3\u7801\u540e\u7684\u5185\u5bb9\uff0c\u68c0\u67e5\uff1a<br \/>\u2022 \u662f\u5426\u6709\u8bed\u6cd5\u9519\u8bef\uff08\u5982\u7f29\u8fdb\u3001\u5f15\u53f7\u3001\u7279\u6b8a\u5b57\u7b26\uff09\u3002<br \/>\u2022 \u662f\u5426\u5305\u542b `proxies`\u3001`proxy-groups`\u3001`rules` \u7b49\u5fc5\u8981\u5b57\u6bb5\u3002<br \/>\u2022 \u8282\u70b9\u4fe1\u606f\u662f\u5426\u5b8c\u6574\uff08`name`, `type`, `server`, `port`, `cipher`, `password`\uff09\u3002<\/p>\n<h3>\u6b65\u9aa4 3\uff1a\u6d4b\u8bd5\u5ba2\u6237\u7aef\u5bfc\u5165<\/h3>\n<p>\u5728\u5ba2\u6237\u7aef\u4e2d\u5c1d\u8bd5\u5bfc\u5165\uff1a<br \/>\u2022 \u624b\u52a8\u8f93\u5165\u94fe\u63a5\uff0c\u800c\u975e\u590d\u5236\u7c98\u8d34\uff0c\u4ee5\u6392\u9664\u4e0d\u53ef\u89c1\u5b57\u7b26\u3002<br \/>\u2022 \u89c2\u5bdf\u5ba2\u6237\u7aef\u65e5\u5fd7\uff0c\u67e5\u770b\u5177\u4f53\u62a5\u9519\u4fe1\u606f\uff08\u5982 \u201cNetwork error\u201d\u3001\u201cYAML parse error\u201d\u3001\u201cInvalid cipher\u201d\uff09\u3002<\/p>\n<h2>\u8ba2\u9605\u94fe\u63a5\u7684\u5b89\u5168\u6027\u4e0e\u9690\u79c1\u8003\u91cf<\/h2>\n<p>\u8ba2\u9605\u94fe\u63a5\u5305\u542b\u8282\u70b9\u4fe1\u606f\u3001\u52a0\u5bc6\u5bc6\u94a5\uff08\u5982\u679c\u662f `clash:\/\/` \u683c\u5f0f\uff09\u7b49\u654f\u611f\u6570\u636e\uff0c\u4f7f\u7528\u65f6\u9700\u6ce8\u610f\u4ee5\u4e0b\u5b89\u5168\u95ee\u9898\uff1a<\/p>\n<h3>1. \u94fe\u63a5\u6cc4\u9732\u98ce\u9669<\/h3>\n<p><strong>\u98ce\u9669<\/strong>\uff1a\u8ba2\u9605\u94fe\u63a5\u662f\u8bbf\u95ee\u4ee3\u7406\u670d\u52a1\u7684\u51ed\u8bc1\u3002\u4e00\u65e6\u6cc4\u9732\uff0c\u4ed6\u4eba\u53ef\u4f7f\u7528\u8be5\u94fe\u63a5\u8fde\u63a5\u4f60\u7684\u8282\u70b9\uff0c\u5bfc\u81f4\uff1a<br \/>\u2022 \u6d41\u91cf\u88ab\u4ed6\u4eba\u5171\u4eab\uff0c\u5f71\u54cd\u4f60\u7684\u7f51\u901f\u3002<br \/>\u2022 \u8d26\u6237\u88ab\u670d\u52a1\u5546\u68c0\u6d4b\u5230\u5f02\u5e38\u4f7f\u7528\uff0c\u53ef\u80fd\u5bfc\u81f4\u5c01\u7981\u3002<br \/>\u2022 \u5982\u679c\u94fe\u63a5\u5305\u542b\u52a0\u5bc6\u5bc6\u94a5\uff0c\u53ef\u80fd\u88ab\u7528\u4e8e\u89e3\u5bc6\u4f60\u7684\u914d\u7f6e\u5185\u5bb9\u3002<\/p>\n<p><strong>\u5efa\u8bae<\/strong>\uff1a<br \/>\u2022 \u4e0d\u8981\u5c06\u8ba2\u9605\u94fe\u63a5\u516c\u5f00\u5206\u4eab\u3002<br \/>\u2022 \u5b9a\u671f\u66f4\u6362\u8ba2\u9605\u94fe\u63a5\uff08\u5982\u679c\u670d\u52a1\u5546\u652f\u6301\uff09\u3002<br \/>\u2022 \u4f7f\u7528\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u79c1\u6709\u94fe\u63a5\uff0c\u907f\u514d\u4f7f\u7528\u516c\u5171\u5206\u4eab\u5e73\u53f0\u751f\u6210\u7684\u94fe\u63a5\u3002<\/p>\n<h3>2. \u4e2d\u95f4\u4eba\u653b\u51fb\u4e0e\u7a83\u542c<\/h3>\n<p><strong>\u98ce\u9669<\/strong>\uff1a\u5982\u679c\u8ba2\u9605\u94fe\u63a5\u4f7f\u7528 ` \u800c\u975e `\uff0c\u914d\u7f6e\u5185\u5bb9\u53ef\u80fd\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u88ab\u7a83\u542c\u6216\u7be1\u6539\u3002<\/p>\n<p><strong>\u5efa\u8bae<\/strong>\uff1a<br \/>\u2022 \u59cb\u7ec8\u4f7f\u7528 ` \u5f00\u5934\u7684\u8ba2\u9605\u94fe\u63a5\u3002<br \/>\u2022 \u9a8c\u8bc1 SSL \u8bc1\u4e66\u6709\u6548\u6027\uff0c\u786e\u4fdd\u8fde\u63a5\u7684\u662f\u5408\u6cd5\u7684\u670d\u52a1\u5668\u3002<\/p>\n<h3>3. \u914d\u7f6e\u5185\u5bb9\u4e2d\u7684\u654f\u611f\u4fe1\u606f<\/h3>\n<p><strong>\u98ce\u9669<\/strong>\uff1aYAML \u914d\u7f6e\u4e2d\u53ef\u80fd\u5305\u542b\u8282\u70b9\u5bc6\u7801\u3001\u52a0\u5bc6\u5bc6\u94a5\u7b49\u654f\u611f\u4fe1\u606f\u3002\u5982\u679c\u914d\u7f6e\u88ab\u5b58\u50a8\u5728\u4e0d\u5b89\u5168\u7684\u5730\u65b9\uff08\u5982\u516c\u5171\u4e91\u76d8\u3001\u672a\u52a0\u5bc6\u7684\u672c\u5730\u6587\u4ef6\uff09\uff0c\u53ef\u80fd\u5bfc\u81f4\u4fe1\u606f\u6cc4\u9732\u3002<\/p>\n<p><strong>\u5efa\u8bae<\/strong>\uff1a<br \/>\u2022 \u672c\u5730\u914d\u7f6e\u6587\u4ef6\u5e94\u5b58\u50a8\u5728\u52a0\u5bc6\u6216\u6743\u9650\u53d7\u9650\u7684\u76ee\u5f55\u4e2d\u3002<br \/>\u2022 \u907f\u514d\u5c06\u914d\u7f6e\u6587\u4ef6\u4e0a\u4f20\u81f3\u516c\u5f00\u6216\u5171\u4eab\u7684\u4e91\u5b58\u50a8\u670d\u52a1\u3002<\/p>\n<h2>\u5e38\u89c1\u95ee\u9898\u89e3\u7b54<\/h2>\n<h3>Q1: \u4e3a\u4ec0\u4e48\u6211\u7684 Clash \u8ba2\u9605\u94fe\u63a5\u5728 Shadowrocket \u4e2d\u65e0\u6cd5\u4f7f\u7528\uff1f<\/h3>\n<p>Clash \u8ba2\u9605\u94fe\u63a5\u683c\u5f0f\u4e0e Shadowrocket \u7684\u8ba2\u9605\u683c\u5f0f\u5b58\u5728\u5dee\u5f02\u3002Clash \u4f7f\u7528 YAML \u683c\u5f0f\uff0c\u800c Shadowrocket \u901a\u5e38\u4f7f\u7528 JSON \u6216\u7279\u5b9a\u7684 SS\/VMess \u683c\u5f0f\u3002\u867d\u7136\u90e8\u5206\u5ba2\u6237\u7aef\u652f\u6301\u901a\u8fc7\u63d2\u4ef6\u6216\u8f6c\u6362\u670d\u52a1\u5c06 Clash \u683c\u5f0f\u8f6c\u6362\u4e3a Shadowrocket \u683c\u5f0f\uff0c\u4f46\u76f4\u63a5\u5bfc\u5165\u901a\u5e38\u4f1a\u5931\u8d25\u3002\u5efa\u8bae\u5728 Shadowrocket \u4e2d\u4f7f\u7528\u5176\u539f\u751f\u652f\u6301\u7684\u8ba2\u9605\u683c\u5f0f\uff0c\u6216\u901a\u8fc7\u8f6c\u6362\u5de5\u5177\u8fdb\u884c\u683c\u5f0f\u8f6c\u6362\u3002<\/p>\n<h3>Q2: \u5982\u4f55\u4fee\u6539\u8ba2\u9605\u94fe\u63a5\u4e2d\u7684\u8282\u70b9\u4fe1\u606f\uff1f<\/h3>\n<p>\u8ba2\u9605\u94fe\u63a5\u662f\u52a8\u6001\u7684\uff0c\u901a\u5e38\u7531\u670d\u52a1\u5546\u751f\u6210\u3002\u4f60\u4e0d\u80fd\u76f4\u63a5\u4fee\u6539\u94fe\u63a5\u4e2d\u7684\u8282\u70b9\u4fe1\u606f\uff0c\u9664\u975e\uff1a<br \/>\u2022 \u670d\u52a1\u5546\u63d0\u4f9b\u81ea\u5b9a\u4e49\u914d\u7f6e\u529f\u80fd\uff0c\u5141\u8bb8\u4f60\u624b\u52a8\u7f16\u8f91 YAML \u5185\u5bb9\u3002<br \/>\u2022 \u4f60\u62e5\u6709\u8ba2\u9605\u94fe\u63a5\u7684\u8bbf\u95ee\u6743\u9650\uff0c\u53ef\u4ee5\u4e0b\u8f7d YAML \u6587\u4ef6\uff0c\u4fee\u6539\u540e\u91cd\u65b0\u4e0a\u4f20\u81f3\u81ea\u5df1\u7684\u670d\u52a1\u5668\uff0c\u5e76\u751f\u6210\u65b0\u7684\u8ba2\u9605\u94fe\u63a5\u3002<br \/>\u2022 \u4f7f\u7528\u652f\u6301\u201c\u81ea\u5b9a\u4e49\u89c4\u5219\u201d\u6216\u201c\u8282\u70b9\u8fc7\u6ee4\u201d\u7684\u5ba2\u6237\u7aef\uff0c\u5728\u672c\u5730\u5bf9\u8ba2\u9605\u5185\u5bb9\u8fdb\u884c\u4e8c\u6b21\u5904\u7406\u3002<\/p>\n<h3>Q3: \u8ba2\u9605\u94fe\u63a5\u8fc7\u671f\u600e\u4e48\u529e\uff1f<\/h3>\n<p>\u8ba2\u9605\u94fe\u63a5\u6709\u8fc7\u671f\u65f6\u95f4\uff0c\u901a\u5e38\u7531\u670d\u52a1\u5546\u8bbe\u7f6e\u3002\u5982\u679c\u94fe\u63a5\u8fc7\u671f\uff1a<br \/>\u2022 \u8054\u7cfb\u670d\u52a1\u5546\u7eed\u8d39\u6216\u83b7\u53d6\u65b0\u7684\u8ba2\u9605\u94fe\u63a5\u3002<br \/>\u2022 \u5728\u5ba2\u6237\u7aef\u4e2d\u66f4\u65b0\u8ba2\u9605\uff08\u5982\u679c\u5ba2\u6237\u7aef\u652f\u6301\u81ea\u52a8\u66f4\u65b0\uff09\u3002<br \/>\u2022 \u624b\u52a8\u66ff\u6362\u65e7\u7684\u8ba2\u9605\u94fe\u63a5\u4e3a\u65b0\u7684\u94fe\u63a5\u3002<\/p>\n<h3>Q4: \u4e3a\u4ec0\u4e48\u8ba2\u9605\u94fe\u63a5\u4e2d\u7684\u8282\u70b9\u663e\u793a\u4e3a\u201c\u4e0d\u53ef\u7528\u201d\uff1f<\/h3>\n<p>\u8282\u70b9\u663e\u793a\u4e3a\u201c\u4e0d\u53ef\u7528\u201d\u901a\u5e38\u4e0e\u94fe\u63a5\u683c\u5f0f\u65e0\u5173\uff0c\u800c\u662f\u8282\u70b9\u72b6\u6001\u95ee\u9898\uff1a<br \/>\u2022 \u8282\u70b9\u670d\u52a1\u5668\u5b95\u673a\u6216\u7ef4\u62a4\u3002<br \/>\u2022 \u8282\u70b9 IP \u88ab\u5c01\u7981\u3002<br \/>\u2022 \u5ba2\u6237\u7aef\u4e0e\u8282\u70b9\u534f\u8bae\u4e0d\u5339\u914d\u3002<br \/>\u2022 \u7f51\u7edc\u73af\u5883\u9650\u5236\uff08\u5982\u9632\u706b\u5899\u5e72\u6270\uff09\u3002<\/p>\n<p>\u5efa\u8bae\u5c1d\u8bd5\u5207\u6362\u5176\u4ed6\u8282\u70b9\u6216\u8054\u7cfb\u670d\u52a1\u5546\u786e\u8ba4\u8282\u70b9\u72b6\u6001\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>Clash \u8ba2\u9605\u94fe\u63a5\u683c\u5f0f\u7684\u6838\u5fc3\u5728\u4e8e Base64 \u7f16\u7801\u7684 YAML \u7ed3\u6784\u6216 HTTPS \u6307\u5411\u7684 YAML \u6587\u4ef6\u3002\u7406\u89e3\u5176\u7ed3\u6784\u6709\u52a9\u4e8e\u5feb\u901f\u6392\u67e5\u914d\u7f6e\u9519\u8bef\u3001\u9a8c\u8bc1\u94fe\u63a5\u6709\u6548\u6027\u5e76\u4fdd\u969c\u4f7f\u7528\u5b89\u5168\u3002\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\uff0c\u786e\u4fdd\u94fe\u63a5\u5b8c\u6574\u3001\u7f16\u7801\u6b63\u786e\u3001\u683c\u5f0f\u517c\u5bb9\uff0c\u5e76\u6ce8\u610f\u9690\u79c1\u4fdd\u62a4\uff0c\u662f\u7a33\u5b9a\u4f7f\u7528 Clash \u7c7b\u5de5\u5177\u7684\u57fa\u7840\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Clash \u8ba2\u9605\u94fe\u63a5\u901a\u5e38\u91c7\u7528 Base64 \u7f16\u7801\u7684 YAML \u5b57\u7b26\u4e32\u683c\u5f0f\uff0c\u4ee5 `clash:\/\/` \u6216 ` \u5f00 [&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-907","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts\/907","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=907"}],"version-history":[{"count":0,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts\/907\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/media?parent=907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/categories?post=907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/tags?post=907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}