{"id":92,"date":"2025-08-27T16:08:23","date_gmt":"2025-08-27T08:08:23","guid":{"rendered":"https:\/\/cfw.dianbaozh.com\/blog\/?p=92"},"modified":"2025-08-27T16:08:23","modified_gmt":"2025-08-27T08:08:23","slug":"clash%e6%99%ba%e8%83%bd%e5%88%86%e6%b5%81%e8%a7%84%e5%88%99%e5%85%a5%e9%97%a8%ef%bc%9a%e8%bd%bb%e6%9d%be%e5%8c%ba%e5%88%86%e5%9b%bd%e5%86%85%e5%a4%96%e6%b5%81%e9%87%8f%ef%bc%88%e9%99%84%e9%85%8d","status":"publish","type":"post","link":"https:\/\/cfw.dianbaozh.com\/blog\/articles\/92","title":{"rendered":"Clash\u667a\u80fd\u5206\u6d41\u89c4\u5219\u5165\u95e8\uff1a\u8f7b\u677e\u533a\u5206\u56fd\u5185\u5916\u6d41\u91cf\uff08\u9644\u914d\u7f6e\u6a21\u677f\uff09"},"content":{"rendered":"<p>clash\u5206\u6d41\u89c4\u5219\u65b0\u624b\u5165\u95e8\uff0c\u4f60\u662f\u5426\u7ecf\u5e38\u9047\u5230\uff1a\u5fae\u4fe1\u65e0\u6cd5\u767b\u5f55\uff08\u88ab\u9519\u8bef\u4ee3\u7406\uff09\u6216\u767e\u5ea6\u53d8\u5361\uff08\u6d41\u91cf\u7ed5\u9053\u6d77\u5916\uff09\u8fd9\u5c31\u662f\u6ca1\u914d\u7f6e\u597d&#8221;\u667a\u80fd\u5206\u6d41&#8221;<\/p>\n<p>\u667a\u80fd\u5206\u6d41\u5c31\u662f\u8ba9Clash\u81ea\u52a8\u5224\u65ad\uff1a\u56fd\u5185\u7f51\u7ad9\u76f4\u8fde\uff08\u5feb\uff09\uff0c\u56fd\u5916\u7f51\u7ad9\u8d70\u4ee3\u7406\uff08\u7545\uff09\u65b0\u624b\u53ea\u9700\u638c\u63e1\u8fd93\u6b65\uff1a<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-29\" src=\"https:\/\/cfw.dianbaozh.com\/blog\/wp-content\/uploads\/2025\/08\/social-media.png\" alt=\"\u6d77\u5916APP\u5e94\u7528\u5927\u5168\" width=\"710\" height=\"400\" srcset=\"https:\/\/cfw.dianbaozh.com\/blog\/wp-content\/uploads\/2025\/08\/social-media.png 1000w, https:\/\/cfw.dianbaozh.com\/blog\/wp-content\/uploads\/2025\/08\/social-media-300x169.png 300w, https:\/\/cfw.dianbaozh.com\/blog\/wp-content\/uploads\/2025\/08\/social-media-768x432.png 768w\" sizes=\"(max-width: 710px) 100vw, 710px\" \/><\/p>\n<h2>\u4e00\uff0c\u4ec0\u4e48\u662fclash\u667a\u80fd\u5206\u6d41\uff1f<\/h2>\n<p>clash\u5206\u6d41\u89c4\u5219\u901a\u4fd7\u89e3\u91ca\uff1a<\/p>\n<p>\u60f3\u8c61\u4f60\u7684\u7f51\u7edc\u6d41\u91cf\u662f\u4e00\u6761\u9ad8\u901f\u8def\uff1a<\/p>\n<ul>\n<li><strong>\u6ca1\u6709\u5206\u6d41<\/strong>\u00a0= \u6240\u6709\u8f66\uff08\u6570\u636e\uff09\u90fd\u8d70\u540c\u4e00\u6761\u96a7\u9053\uff08\u4ee3\u7406\uff09 \u2192 \u56fd\u5185\u7f51\u7ad9\u4e5f\u7ed5\u9053\u56fd\u5916\uff0c\u5bfc\u81f4<strong>\u5fae\u4fe1\u5361\u987f\u3001\u767e\u5ea6\u53d8\u6162<\/strong><\/li>\n<li><strong>\u667a\u80fd\u5206\u6d41<\/strong>\u00a0= \u4ea4\u8b66\u6307\u6325\u7cfb\u7edf \u2192\u00a0<strong>\u56fd\u5185\u8f66\u76f4\u884c<\/strong>\uff08\u5feb\uff01\uff09\u3001<strong>\u56fd\u5916\u8f66\u8d70\u96a7\u9053<\/strong>\uff08\u901a\uff01\uff09<\/li>\n<\/ul>\n<blockquote><p><strong>\u6838\u5fc3\u4ef7\u503c<\/strong>\uff1a\u8ba9Clash\u81ea\u52a8\u5224\u65ad\u6d41\u91cf\u7c7b\u578b\uff0c\u8be5\u76f4\u8fde\u7684\u76f4\u8fde\uff0c\u8be5\u4ee3\u7406\u7684\u4ee3\u7406\uff0c<strong>\u4e0d\u7528\u624b\u52a8\u5207\u6362<\/strong>\uff01<\/p><\/blockquote>\n<h2>\u4e8c\uff0c\u6700\u7b80\u914d\u7f6e\u4e09\u6b65\u6cd5\uff085\u5206\u949f\u641e\u5b9a\uff09<\/h2>\n<p><strong>1\ufe0f\u20e3 \u5f00\u542fFake-IP\uff08\u5fc5\u505a\uff01\u9632DNS\u6cc4\u9732\uff09<\/strong><\/p>\n<p>\u5728<code>config.yaml<\/code>\u6dfb\u52a0\uff1a<\/p>\n<pre>dns:\r\nenhanced-mode: fake-ip # \u6838\u5fc3\u5b89\u5168\u914d\u7f6e\r\nnameserver:\r\n- 223.5.5.5 # \u963f\u91ccDNS<\/pre>\n<p>\u2705 <strong>\u9a8c\u8bc1\u65b9\u6cd5<\/strong>\uff1a\u8bbf\u95ee <a href=\"https:\/\/www.dnsleaktest.com\" target=\"_blank\" rel=\"noopener noreferrer\">DNS\u6cc4\u9732\u68c0\u6d4b<\/a>\uff0c\u7ed3\u679c\u53ea\u663e\u793a\u4ee3\u7406IP\u5373\u6210\u529f<\/p>\n<h3>2\ufe0f\u20e3 \u8bbe\u7f6e\u57fa\u7840\u5206\u6d41\u89c4\u5219<\/h3>\n<p>\u5728<code>rules<\/code>\u90e8\u5206\u6700\u524d\u9762\u6dfb\u52a0\uff1a<\/p>\n<pre># \u672c\u5730\u5e94\u7528\u76f4\u8fde\uff08\u89e3\u51b3\u5fae\u4fe1\/\u652f\u4ed8\u5b9d\u95ee\u9898\uff09\r\n- PROCESS-NAME,WeChat.exe,DIRECT\r\n- PROCESS-NAME,Alipay.exe,DIRECT\r\n\r\n# \u56fd\u5185\u57df\u540d\u76f4\u8fde\uff08\u52a0\u901f\u767e\u5ea6\/\u6dd8\u5b9d\uff09\r\n- DOMAIN-SUFFIX,qq.com,DIRECT\r\n- DOMAIN-SUFFIX,baidu.com,DIRECT\r\n- DOMAIN-SUFFIX,taobao.com,DIRECT\r\n\r\n# \u56fd\u5185IP\u76f4\u8fde\uff08\u7ec8\u6781\u4fdd\u969c\uff09\r\n- GEOIP,CN,DIRECT\r\n- GEOIP,PRIVATE,DIRECT\r\n\r\n# \u5176\u4ed6\u6d41\u91cf\u8d70\u4ee3\u7406\r\n- MATCH,PROXY<\/pre>\n<h3>3\ufe0f\u20e3 \u89c4\u5219\u987a\u5e8f\u5f88\u91cd\u8981\uff01<\/h3>\n<p><strong>\u5fc5\u987b\u6309\u8fd9\u4e2a\u987a\u5e8f<\/strong>\uff1a<\/p>\n<p>1\ufe0f\u20e3 PROCESS\u89c4\u5219\uff08\u5e94\u7528\u7ea7\uff09\u2192 2\ufe0f\u20e3 DOMAIN\u89c4\u5219\uff08\u57df\u540d\u7ea7\uff09\u2192 3\ufe0f\u20e3 GEOIP\u89c4\u5219\uff08IP\u7ea7\uff09\u2192 4\ufe0f\u20e3 MATCH\u515c\u5e95<\/p>\n<h2>\u4e09\uff0c\u65b0\u624b\u5fc5\u5b58\u6781\u7b80\u6a21\u677f<\/h2>\n<pre>rules:\r\n# 1. \u672c\u5730\u5e94\u7528\r\n- PROCESS-NAME,WeChat.exe,DIRECT\r\n- PROCESS-NAME,Alipay.exe,DIRECT\r\n\r\n# 2. \u56fd\u5185\u6838\u5fc3\u57df\u540d\r\n- DOMAIN-KEYWORD,qq,DIRECT # \u4fdd\u62a4\u817e\u8baf\u7cfb\r\n- DOMAIN-KEYWORD,baidu,DIRECT\r\n- DOMAIN-KEYWORD,taobao,DIRECT\r\n\r\n# 3. \u56fd\u5185IP\u6bb5\r\n- GEOIP,CN,DIRECT\r\n- GEOIP,PRIVATE,DIRECT\r\n\r\n# 4. \u5168\u90e8\u4ee3\u7406\r\n- MATCH,PROXY<\/pre>\n<p>\u590d\u5236\u5230Clash\u914d\u7f6e\u6587\u4ef6\u7684<code>rules<\/code>\u90e8\u5206\u6700\u4e0a\u9762\uff08\u539f\u6709\u89c4\u5219\u4fdd\u7559\uff09<\/p>\n<h2>\u56db\uff0c\u5e38\u89c1\u95ee\u9898\u901f\u89e3<\/h2>\n<ul>\n<li><strong>\u5fae\u4fe1\u767b\u5f55\u5931\u8d25<\/strong>\uff1a\u68c0\u67e5<code>PROCESS-NAME,WeChat.exe<\/code>\u662f\u5426\u5728\u89c4\u5219\u6700\u524d<\/li>\n<li><strong>\u767e\u5ea6\u53d8\u6162<\/strong>\uff1a\u6dfb\u52a0<code>- DOMAIN-SUFFIX,alicdn.com,DIRECT<\/code>\uff08\u4fdd\u62a4\u963f\u91ccCDN\uff09<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4e94\uff0cFAQ\uff1a\u5e38\u89c1\u95ee\u7b54<\/h2>\n<p><strong>Q\uff1a\u4e3a\u4ec0\u4e48\u5fae\u4fe1\u5fc5\u987b\u5355\u72ec\u8bbe\u7f6e\u76f4\u8fde\uff1f<\/strong><br \/>\nA\uff1a\u5fae\u4fe1\u4f7f\u7528\u7279\u6b8aCDN\uff0c\u8d70\u4ee3\u7406\u4f1a\u88ab\u5224\u5b9a\u5f02\u5e38\uff0c\u5bfc\u81f4<strong>\u767b\u5f55\u5931\u8d25\u751a\u81f3\u5c01\u53f7<\/strong>\uff01\u5fc5\u987b\u7528<code>PROCESS-NAME<\/code>\u7cbe\u51c6\u4fdd\u62a4\u3002<\/p>\n<p><strong>Q\uff1aGEOIP\u662f\u4ec0\u4e48\u4f5c\u7528\uff1f<\/strong><br \/>\nA\uff1a\u6839\u636eIP\u5730\u5740\u81ea\u52a8\u533a\u5206\u56fd\u5185\u5916\uff0c\u5373\u4f7f\u65b0\u7f51\u7ad9\u6ca1\u5728\u89c4\u5219\u91cc\uff0c\u4e5f\u80fd\u6b63\u786e\u76f4\u8fde\u3002<strong>\u6bd4DOMAIN\u89c4\u5219\u66f4\u5168\u9762<\/strong>\uff0c\u662f\u5206\u6d41\u7684\u6700\u7ec8\u4fdd\u969c\u3002<\/p>\n<p><strong>Q\uff1a\u89c4\u5219\u653e\u9519\u987a\u5e8f\u4f1a\u600e\u6837\uff1f<\/strong><br \/>\nA\uff1a\u540e\u679c\u4e25\u91cd\uff01\u5982\u679cGEOIP\u5728\u524d\u9762\uff0c\u6240\u6709\u6d41\u91cf\u5148\u5224\u65ad\u5730\u7406\u4f4d\u7f6e\uff0c<strong>\u5fae\u4fe1\u89c4\u5219\u5c31\u5931\u6548\u4e86<\/strong>\uff08\u4ecd\u4f1a\u88ab\u4ee3\u7406\uff09\u3002\u52a1\u5fc5\u6309&#8221;\u5e94\u7528\u2192\u57df\u540d\u2192IP&#8221;\u987a\u5e8f\u6392\u5217\u3002<\/p>\n<p>\u4ee5\u4e0a\u89c4\u5219\u5c31\u80fd\u89e3\u51b390%\u95ee\u9898\uff0c\u522b\u88ab\u590d\u6742\u6559\u7a0b\u5413\u5230\uff0c\u5148\u8dd1\u901a\u518d\u4f18\u5316\uff01<\/p>\n<p>\u76f8\u5173\u6587\u7ae0\uff1a<\/p>\n<p><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/1942249683692009115\" target=\"_blank\" rel=\"noopener\">\u7f16\u5199Clash\u89c4\u5219\u76f4\u8fde\u56fd\u5185\u7f51\u7ad9<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>clash\u5206\u6d41\u89c4\u5219\u65b0\u624b\u5165\u95e8\uff0c\u4f60\u662f\u5426\u7ecf\u5e38\u9047\u5230\uff1a\u5fae\u4fe1\u65e0\u6cd5\u767b\u5f55\uff08\u88ab\u9519\u8bef\u4ee3\u7406\uff09\u6216\u767e\u5ea6\u53d8\u5361\uff08\u6d41\u91cf\u7ed5\u9053\u6d77\u5916\uff09\u8fd9\u5c31\u662f\u6ca1\u914d\u7f6e\u597d&#8221;\u667a\u80fd\u5206\u6d41&#8221; \u667a\u80fd\u5206\u6d41\u5c31\u662f\u8ba9Clash\u81ea\u52a8\u5224\u65ad\uff1a\u56fd\u5185\u7f51\u7ad9\u76f4\u8fde\uff08\u5feb\uff09\uff0c\u56fd\u5916\u7f51\u7ad9\u8d70\u4ee3\u7406\uff08\u7545\uff09\u65b0\u624b\u53ea\u9700\u638c\u63e1\u8fd93\u6b65&#8230;<\/p>\n","protected":false},"author":1,"featured_media":29,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[35,38,37,39,36],"topic":[],"class_list":{"0":"post-92","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-articles","8":"tag-clash-tun","9":"tag-clash","12":"tag-36"},"_links":{"self":[{"href":"https:\/\/cfw.dianbaozh.com\/blog\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cfw.dianbaozh.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cfw.dianbaozh.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cfw.dianbaozh.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cfw.dianbaozh.com\/blog\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":0,"href":"https:\/\/cfw.dianbaozh.com\/blog\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cfw.dianbaozh.com\/blog\/wp-json\/wp\/v2\/media\/29"}],"wp:attachment":[{"href":"https:\/\/cfw.dianbaozh.com\/blog\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cfw.dianbaozh.com\/blog\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cfw.dianbaozh.com\/blog\/wp-json\/wp\/v2\/tags?post=92"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/cfw.dianbaozh.com\/blog\/wp-json\/wp\/v2\/topic?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}