id: 7b76bf9be58a405cb451aff164d75ad7
parent_id: 
item_type: 1
item_id: eb4107b2e6d34ae781baec0a601703aa
item_updated_time: 1764345467950
title_diff: "[{\"diffs\":[[1,\"clash_singbox-tutorials教程合集sing-box基础篇生成带有自定义\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":45}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>clash_singbox-tutorials/教程合集/sing-box/基础篇/生成带有自定义出站和规则的 sing-box 配置文件直链-geodata 方案.md at main · DustinWin/clash_singbox-tutorials</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"1662\\\"></a>\\\r\\\n<h1>clash_singbox-tutorials/教程合集/sing-box/基础篇/生成带有自定义出站和规则的 sing-box 配置文件直链-geodata 方案.md at main · DustinWin/clash_singbox-tutorials</h1>\\\r\\\n\\\r\\\n<div><span>\\\n  <div style=\\\"--en-clipped-content:article\\\">\\\n<div><br/></div><div style=\\\"font-size: 16px; display:block; min-width: 100%; position: relative;\\\"> <div style=\\\"font-size:16px;font-family:sans-serif;text-size-adjust:100%;box-sizing:border-box;color:rgb(31, 35, 40);background-color:rgb(255, 255, 255);color-scheme:light;\\\"><div style=\\\"box-sizing:border-box;font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, &quot;Noto Sans&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;;font-size:14px;line-height:1.5;color:rgb(31, 35, 40);background-color:rgb(255, 255, 255);overflow-wrap:break-word;--dialog-scrollgutter:15px;\\\"><div style=\\\"box-sizing:border-box;isolation:isolate;word-wrap:break-word;\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;\\\"><span style=\\\"box-sizing:border-box;\\\"><span style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;\\\"><span style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;--sticky-pane-height:calc(100vh - (max(0px, 0px)));\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;-webkit-box-flex:1;min-width:1px;\\\"><div style=\\\"box-sizing:border-box;-webkit-box-flex:1;\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"box-sizing:border-box;min-width:0px;container-type:inline-size;\\\"><div style=\\\"box-sizing:border-box;border-image:initial;border-radius:0px 0px 6px 6px;min-width:273px;\\\"><div style=\\\"box-sizing:border-box;background-color:rgb(255, 255, 255);border-radius:0px 0px 6px 6px;min-width:0px;-webkit-box-pack:center;justify-content:center;\\\"><div style=\\\"box-sizing:border-box;border-bottom-left-radius:6px;border-bottom-right-radius:6px;min-width:0px;\\\"><div style=\\\"box-sizing:border-box;font-family:-apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, &quot;Noto Sans&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;;font-size:16px;line-height:1.5;overflow-wrap:break-word;\\\"><span style=\\\"font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Noto Sans, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;font-size:16px;line-height:1.5;display:table;\\\"></span><div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;margin-top:0px;\\\"><h1 dir=\\\"auto\\\" style=\\\"margin:0.67em 0px;box-sizing:border-box;line-height:1.25;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgba(208, 215, 222, 0.7);font-size:2em;margin-top:0px;\\\">生成带有自定义出站和规则的 sing-box 配置文件直链-geodata 方案</h1><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84-sing-box-%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata-%E6%96%B9%E6%A1%88\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;float:left;padding-right:4px;margin-left:-20px;line-height:1;transform:translateY(calc(-50% - 0.3rem));\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='713'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='1987' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<ul dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n<li style=\\\"box-sizing:border-box;\\\">注：此方案适用于 <a href=\\\"https://github.com/SagerNet/sing-box\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\">sing-box</a>，采用 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">GEOSITE</code> 和 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">GEOIP</code> 规则搭配 geosite.dat 和 geoip.dat（或 Country.mmdb） <a href=\\\"https://github.com/MetaCubeX/meta-rules-dat\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\">路由规则文件</a></li>\\\n</ul>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h1 dir=\\\"auto\\\" style=\\\"margin:0.67em 0px;box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgba(208, 215, 222, 0.7);font-size:2em;\\\">前言：</h1><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#%E5%89%8D%E8%A8%80\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;float:left;padding-right:4px;margin-left:-20px;line-height:1;transform:translateY(calc(-50% - 0.3rem));\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='714'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='1990' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<ol dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n<li style=\\\"box-sizing:border-box;\\\">本教程可以生成扩展名为 .json 文件的直链，可以<strong style=\\\"box-sizing:border-box;font-weight:600;\\\">一键导入使用了 sing-box 内核的客户端</strong>\\\n如：<a href=\\\"https://github.com/juewuy/ShellCrash\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\">ShellCrash</a> 和 <a href=\\\"https://github.com/SagerNet/sing-box/releases\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\">sing-box for Android and Apple platforms</a> 等，详见<a href=\\\"https://sing-box.sagernet.org/zh/clients\\\" rel=\\\"nofollow\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\">支持 sing-box 的工具</a></li>\\\n<li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">生成的订阅链接地址不会改变，支持更新订阅，<strong style=\\\"box-sizing:border-box;font-weight:600;\\\">支持国内访问，支持同步机场节点</strong></li>\\\n<li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">生成的订阅链接</span><strong style=\\\"box-sizing:border-box;font-weight:600;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">自带规则集</span></strong><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">，规则集来源 </span><a href=\\\"https://github.com/MetaCubeX/meta-rules-dat\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">MetaCubeX/meta-rules-dat</span></a></li>\\\n<li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">本教程必须使用支持 </span><code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">outbound_providers</span></code><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\"> 代理集合（即 </span><a href=\\\"https://github.com/Dreamacro/clash\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">Clash</span></a><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\"> 订阅链接）的 </span><a href=\\\"https://github.com/PuerNya/sing-box\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">sing-box PuerNya 版内核</span></a><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">，请先</span><strong style=\\\"box-sizing:border-box;font-weight:600;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">确定自己机场的订阅链接是否为 Clash 订阅链接</span></strong><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">，若不是，需前往</span><a href=\\\"https://suburl.v1.mk/\\\" rel=\\\"nofollow\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">肥羊在线订阅转换工具</span></a><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">进行转换，“生成类型”选择“Clash”，其它参数保持默认即可，转换后的订阅链接需要在末尾添加 </span><code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">&amp;flag=clash</span></code><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">，然后添加到 .json 文件 </span><code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">outbound_providers</span></code><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\"> 代理集合的 </span><code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">download_url</span></code><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\"> 中</span></li>\\\n<li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">outbound_providers</code> 代理集合配置 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">path</code> 路径后，若路径中含有文件夹如：<em style=\\\"box-sizing:border-box;\\\">./providers/airport.yaml</em>，需要手动新建此文件夹 <em style=\\\"box-sizing:border-box;\\\">providers</em> 才能使 .yaml 订阅文件保存到本地，否则将保存到内存中（ 每次启动服务都要重新下载），而在 ShellCrash 中可以连接 SSH 后执行命令 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">mkdir -p $CRASHDIR/providers/</code> 来新建文件夹 <em style=\\\"box-sizing:border-box;\\\">providers</em></li>\\\n<li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">推荐使用 <a href=\\\"https://code.visualstudio.com/Download\\\" rel=\\\"nofollow\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\">Visual Studio Code</a> 等专业编辑器来修改配置文件</li>\\\n<li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">ShellCrash 支持本地导入配置文件，可以直接将下方的 .json 直链文件内容复制到 </span><em style=\\\"box-sizing:border-box;\\\"><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">$CRASHDIR/jsons/config.json</span></em><span style=\\\"box-sizing:border-box;transition:background-color 0.4s ease 0s;background-color:rgb(234, 226, 96);color:black;font-style:inherit;font-weight:inherit;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\"> 文件中，可代替通过 ShellCrash 配置脚本-&gt;6-&gt;2 导入配置文件的方式</span></li>\\\n</ol>\\\n<hr style=\\\"box-sizing:border-box;background:transparent;border-top:0px;border-right:0px;border-left:0px;border-image:initial;border-bottom:0px none rgb(31, 35, 40);overflow:hidden;padding:0px;background-color:rgb(208, 215, 222);border:0px;height:0.25em;margin:24px 0px;\\\"/><span style=\\\"display:table;\\\"></span><span style=\\\"display:table;clear:both;\\\"></span>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h1 dir=\\\"auto\\\" style=\\\"margin:0.67em 0px;box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgba(208, 215, 222, 0.7);font-size:2em;\\\">一、 准备编辑 .json 直链文件</h1><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#%E4%B8%80-%E5%87%86%E5%A4%87%E7%BC%96%E8%BE%91-json-%E7%9B%B4%E9%93%BE%E6%96%87%E4%BB%B6\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;float:left;padding-right:4px;margin-left:-20px;line-height:1;transform:translateY(calc(-50% - 0.3rem));\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='715'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2003' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h2 dir=\\\"auto\\\" style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgba(208, 215, 222, 0.7);font-size:1.5em;\\\">1. 注册 <a href=\\\"https://gist.github.com/\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:none;\\\">Gist</a></h2><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#1-%E6%B3%A8%E5%86%8C-gist\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;float:left;padding-right:4px;margin-left:-20px;line-height:1;transform:translateY(calc(-50% - 0.3rem));\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='716'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2005' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h2 dir=\\\"auto\\\" style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgba(208, 215, 222, 0.7);font-size:1.5em;\\\">2. 打开编辑页面</h2><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#2-%E6%89%93%E5%BC%80%E7%BC%96%E8%BE%91%E9%A1%B5%E9%9D%A2\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;float:left;padding-right:4px;margin-left:-20px;line-height:1;transform:translateY(calc(-50% - 0.3rem));\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='717'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2007' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">登录并打开 Gist 可以直接编辑文件，或者鼠标点击页面右上角头像左边的“+”图标新建文件</p>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h2 dir=\\\"auto\\\" style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgba(208, 215, 222, 0.7);font-size:1.5em;\\\">3. 输入描述和完整文件名</h2><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#3-%E8%BE%93%E5%85%A5%E6%8F%8F%E8%BF%B0%E5%92%8C%E5%AE%8C%E6%95%B4%E6%96%87%E4%BB%B6%E5%90%8D\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;float:left;padding-right:4px;margin-left:-20px;line-height:1;transform:translateY(calc(-50% - 0.3rem));\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='718'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2010' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">“Gist description...”输入描述，随意填写；“Filename including extension...”输入完整文件名<strong style=\\\"box-sizing:border-box;font-weight:600;\\\">包括扩展名</strong>，如 singboxlink.json\\\n<a href=\\\"https://private-user-images.githubusercontent.com/45238096/298664314-13346166-85cf-474c-9da7-55182e095758.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI0NTU1MDQsIm5iZiI6MTcxMjQ1NTIwNCwicGF0aCI6Ii80NTIzODA5Ni8yOTg2NjQzMTQtMTMzNDYxNjYtODVjZi00NzRjLTlkYTctNTUxODJlMDk1NzU4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDA3VDAyMDAwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJjMjE4NjIwOWJmYTdkMzJlN2YzZTA4YjdlN2UzY2QxZmFmMWEwMzNhNTFlMDEwMTdhNzVkNDY3ZjI2ODVkOTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.pNg4XyskSc2WP3HtZnVl5f2DFxapQMCMDuF9Nq1OWVw\\\" rel=\\\"noopener noreferrer\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\" target=\\\"_blank\\\"><img height=\\\"273\\\" src=\\\"https://private-user-images.githubusercontent.com/45238096/298664314-13346166-85cf-474c-9da7-55182e095758.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI0NTU1MDQsIm5iZiI6MTcxMjQ1NTIwNCwicGF0aCI6Ii80NTIzODA5Ni8yOTg2NjQzMTQtMTMzNDYxNjYtODVjZi00NzRjLTlkYTctNTUxODJlMDk1NzU4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDA3VDAyMDAwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJjMjE4NjIwOWJmYTdkMzJlN2YzZTA4YjdlN2UzY2QxZmFmMWEwMzNhNTFlMDEwMTdhNzVkNDY3ZjI2ODVkOTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.pNg4XyskSc2WP3HtZnVl5f2DFxapQMCMDuF9Nq1OWVw\\\" style=\\\"border-style:none;box-sizing:content-box;max-width:100%;background-color:rgb(255, 255, 255);\\\" width=\\\"60%\\\"></img></a></p>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h1 dir=\\\"auto\\\" style=\\\"margin:0.67em 0px;box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgba(208, 215, 222, 0.7);font-size:2em;\\\">二、 添加模板和配置文件</h1><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#%E4%BA%8C-%E6%B7%BB%E5%8A%A0%E6%A8%A1%E6%9D%BF%E5%92%8C%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;float:left;padding-right:4px;margin-left:-20px;line-height:1;transform:translateY(calc(-50% - 0.3rem));\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='719'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2012' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h2 dir=\\\"auto\\\" style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgba(208, 215, 222, 0.7);font-size:1.5em;\\\">1. 白名单模式（没有命中规则的网络流量统统使用代理，适用于服务器线路网络质量稳定、快速，不缺服务器流量的用户）</h2><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#1-%E7%99%BD%E5%90%8D%E5%8D%95%E6%A8%A1%E5%BC%8F%E6%B2%A1%E6%9C%89%E5%91%BD%E4%B8%AD%E8%A7%84%E5%88%99%E7%9A%84%E7%BD%91%E7%BB%9C%E6%B5%81%E9%87%8F%E7%BB%9F%E7%BB%9F%E4%BD%BF%E7%94%A8%E4%BB%A3%E7%90%86%E9%80%82%E7%94%A8%E4%BA%8E%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%BA%BF%E8%B7%AF%E7%BD%91%E7%BB%9C%E8%B4%A8%E9%87%8F%E7%A8%B3%E5%AE%9A%E5%BF%AB%E9%80%9F%E4%B8%8D%E7%BC%BA%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%B5%81%E9%87%8F%E7%9A%84%E7%94%A8%E6%88%B7\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;float:left;padding-right:4px;margin-left:-20px;line-height:1;transform:translateY(calc(-50% - 0.3rem));\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='720'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2014' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h3 dir=\\\"auto\\\" style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;font-size:1.25em;\\\">① 添加 .json 模板</h3><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#-%E6%B7%BB%E5%8A%A0-json-%E6%A8%A1%E6%9D%BF\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;transform:translateY(-50%);text-decoration:underline;float:left;padding-right:4px;margin-left:-20px;line-height:1;\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='721'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2016' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">将模板内容复制到自己 Gist 新建的 .json 文件中：</p>\\\n<div style=\\\"box-sizing:border-box;display:flex;justify-content:space-between;margin-bottom:16px;background-color:rgb(246, 248, 250);position:relative;overflow:auto;\\\"><pre style=\\\"border-radius:4px;background-color: #fbfaf8;border: 1px solid rgba(0,0,0,.14902);color: #333;font-size: 12px;padding: 8px;font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif;box-sizing: border-box;\\\"><code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">{\\\n  // 出站\\\n  &quot;outbounds&quot;: [\\\n    // 手动选择国家或地区节点；根据“国家或地区出站”的名称对 `outbounds` 值进行增删改，须一一对应\\\n    { &quot;tag&quot;: &quot; 节点选择&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 香港节点&quot;, &quot; 免费节点&quot;, &quot; 台湾节点&quot;, &quot; 日本节点&quot;, &quot; 新加坡节点&quot;, &quot; 美国节点&quot; ] },\\\n    // Speedtest 测速网站：选择` 全球直连` 为测试本地网络速度（运营商网络速度），可选择其它节点用于测试机场节点速度\\\n    { &quot;tag&quot;: &quot; 网络测速&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 全球直连&quot;, &quot; 香港节点&quot;, &quot; 免费节点&quot;, &quot; 台湾节点&quot;, &quot; 日本节点&quot;, &quot; 新加坡节点&quot;, &quot; 美国节点&quot; ] },\\\n    { &quot;tag&quot;: &quot; 漏网之鱼&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 节点选择&quot;, &quot; 全球直连&quot; ] },\\\n    { &quot;tag&quot;: &quot; 直连域名&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 全球直连&quot;, &quot; 节点选择&quot; ] },\\\n    { &quot;tag&quot;: &quot; 代理域名&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 节点选择&quot;, &quot; 全球直连&quot; ] },\\\n    { &quot;tag&quot;: &quot; 游戏平台&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 全球直连&quot;, &quot; 节点选择&quot; ] },\\\n    { &quot;tag&quot;: &quot;Ⓜ️ 微软服务&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 全球直连&quot;, &quot; 节点选择&quot; ] },\\\n    { &quot;tag&quot;: &quot; 谷歌服务&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 全球直连&quot;, &quot; 节点选择&quot; ] },\\\n    { &quot;tag&quot;: &quot; 苹果服务&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 全球直连&quot;, &quot; 节点选择&quot; ] },\\\n    { &quot;tag&quot;: &quot; 国内 IP&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 全球直连&quot;, &quot; 节点选择&quot; ] },\\\n    { &quot;tag&quot;: &quot; 电报消息&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 节点选择&quot; ] },\\\n    { &quot;tag&quot;: &quot; 私有网络&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 全球直连&quot; ] },\\\n    { &quot;tag&quot;: &quot; 广告拦截&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot;REJECT&quot; ] },\\\n    { &quot;tag&quot;: &quot; 全球直连&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot;DIRECT&quot; ] },\\\n    { &quot;tag&quot;: &quot;REJECT&quot;, &quot;type&quot;: &quot;block&quot; },\\\n    { &quot;tag&quot;: &quot;DIRECT&quot;, &quot;type&quot;: &quot;direct&quot; },\\\n    { &quot;tag&quot;: &quot;GLOBAL&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot;DIRECT&quot;, &quot;REJECT&quot;, &quot; 香港节点&quot;, &quot; 免费节点&quot;, &quot; 台湾节点&quot;, &quot; 日本节点&quot;, &quot; 新加坡节点&quot;, &quot; 美国节点&quot; ] },\\\n    { &quot;tag&quot;: &quot;dns-out&quot;, &quot;type&quot;: &quot;dns&quot; },\\\n\\\n    // 单个出站节点（以 vless 为例）\\\n    {\\\n      &quot;tag&quot;: &quot; 免费节点&quot;,\\\n      &quot;type&quot;: &quot;vless&quot;,\\\n      &quot;server&quot;: &quot;example.com&quot;,\\\n      &quot;server_port&quot;: 443,\\\n      &quot;uuid&quot;: &quot;{uuid}&quot;,\\\n      &quot;network&quot;: &quot;tcp&quot;,\\\n      &quot;tls&quot;: { &quot;enabled&quot;: true, &quot;server_name&quot;: &quot;example.com&quot;, &quot;insecure&quot;: false },\\\n      &quot;transport&quot;: { &quot;type&quot;: &quot;ws&quot;, &quot;path&quot;: &quot;/?ed=2048&quot;, &quot;headers&quot;: { &quot;Host&quot;: &quot;example.com&quot; } }\\\n    },\\\n\\\n    // -------------------- 国家或地区出站 --------------------\\\n    // 自动选择节点，即按照 url 测试结果使用延迟最低的节点；测试后容差大于 50ms 才会切换到延迟低的那个节点；筛选出“香港”节点，支持正则表达式\\\n    { &quot;tag&quot;: &quot; 香港节点&quot;, &quot;type&quot;: &quot;urltest&quot;, &quot;tolerance&quot;: 50, &quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot; ], &quot;includes&quot;: [ &quot;(?i)港|hk|hongkong|hong kong&quot; ] },\\\n    // 若有多个机场，可以使用 `&quot;use_all_providers&quot;: true` 代替 `&quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot;, ... ]`\\\n    { &quot;tag&quot;: &quot; 台湾节点&quot;, &quot;type&quot;: &quot;urltest&quot;, &quot;tolerance&quot;: 50, &quot;use_all_providers&quot;: true, &quot;includes&quot;: [ &quot;(?i)台|tw|taiwan&quot; ] },\\\n    { &quot;tag&quot;: &quot; 日本节点&quot;, &quot;type&quot;: &quot;urltest&quot;, &quot;tolerance&quot;: 50, &quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot; ], &quot;includes&quot;: [ &quot;(?i)日本|jp|japan&quot; ] },\\\n    { &quot;tag&quot;: &quot; 新加坡节点&quot;, &quot;type&quot;: &quot;urltest&quot;, &quot;tolerance&quot;: 50, &quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot; ], &quot;includes&quot;: [ &quot;(?i)新|sg|singapore&quot; ] },\\\n    { &quot;tag&quot;: &quot; 美国节点&quot;, &quot;type&quot;: &quot;urltest&quot;, &quot;tolerance&quot;: 50, &quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot; ], &quot;includes&quot;: [ &quot;(?i)美|us|unitedstates|united states&quot; ] }\\\n  ],\\\n  // 代理集合（获取机场订阅链接内的所有节点）\\\n  &quot;outbound_providers&quot;: [\\\n    {\\\n      &quot;tag&quot;: &quot; 我的机场 1&quot;,\\\n      &quot;type&quot;: &quot;http&quot;,\\\n      &quot;healthcheck_url&quot;: &quot;https://www.gstatic.com/generate_204&quot;,\\\n      &quot;healthcheck_interval&quot;: &quot;10m&quot;,\\\n      // 机场订阅链接，使用 Clash 链接\\\n      &quot;download_url&quot;: &quot;https://example.com/xxx/xxx&amp;flag=clash&quot;,\\\n      &quot;path&quot;: &quot;./providers/airport1.yaml&quot;,\\\n      // 初步筛选需要的节点，可有效减轻路由器压力，支持正则表达式，若不筛选可删除此配置项\\\n      &quot;includes&quot;: [ &quot;香港|台湾|日本|新加坡|美国&quot; ],\\\n      // 初步排除不需要的节点，支持正则表达式，若不排除可删除此配置项\\\n      &quot;excludes&quot;: &quot;高倍|×10&quot;,\\\n      &quot;download_ua&quot;: &quot;clash.meta&quot;,\\\n      &quot;download_interval&quot;: &quot;24h&quot;\\\n    },\\\n    {\\\n      &quot;tag&quot;: &quot; 我的机场 2&quot;,\\\n      &quot;type&quot;: &quot;http&quot;,\\\n      &quot;healthcheck_url&quot;: &quot;https://www.gstatic.com/generate_204&quot;,\\\n      &quot;healthcheck_interval&quot;: &quot;10m&quot;,\\\n      &quot;download_url&quot;: &quot;https://example.com/xxx/xxx&amp;flag=clash&quot;,\\\n      &quot;path&quot;: &quot;./providers/airport2.yaml&quot;,\\\n      &quot;includes&quot;: [ &quot;香港|台湾|日本|新加坡|美国&quot; ],\\\n      &quot;excludes&quot;: &quot;高倍|×10&quot;,\\\n      &quot;download_ua&quot;: &quot;clash.meta&quot;,\\\n      &quot;download_interval&quot;: &quot;24h&quot;\\\n    }\\\n  ],\\\n  // 路由\\\n  &quot;route&quot;: {\\\n    // 规则\\\n    &quot;rules&quot;: [\\\n      { &quot;protocol&quot;: [ &quot;dns&quot; ], &quot;outbound&quot;: &quot;dns-out&quot; },\\\n      { &quot;clash_mode&quot;: &quot;Direct&quot;, &quot;outbound&quot;: &quot;DIRECT&quot; },\\\n      { &quot;clash_mode&quot;: &quot;Global&quot;, &quot;outbound&quot;: &quot;GLOBAL&quot; },\\\n      // 自定义规则优先放前面\\\n      { &quot;geosite&quot;: [ &quot;category-ads-all&quot; ], &quot;outbound&quot;: &quot; 广告拦截&quot; },\\\n      // 为过滤 P2P 流量（BT 下载），可添加一条 `port_range` 规则（ShellCrash 会默认开启“只代理常用端口”，可忽略此项）\\\n      { &quot;port_range&quot;: [ &quot;6881:6889&quot; ], &quot;outbound&quot;: &quot; 全球直连&quot; },\\\n      { &quot;geosite&quot;: [ &quot;private&quot; ], &quot;outbound&quot;: &quot; 私有网络&quot; },\\\n      { &quot;geosite&quot;: [ &quot;microsoft@cn&quot; ], &quot;outbound&quot;: &quot;Ⓜ️ 微软服务&quot; },\\\n      { &quot;geosite&quot;: [ &quot;apple-cn&quot; ], &quot;outbound&quot;: &quot; 苹果服务&quot; },\\\n      { &quot;geosite&quot;: [ &quot;google-cn&quot; ], &quot;outbound&quot;: &quot; 谷歌服务&quot; },\\\n      { &quot;geosite&quot;: [ &quot;category-games@cn&quot; ], &quot;outbound&quot;: &quot; 游戏平台&quot; },\\\n      { &quot;geosite&quot;: [ &quot;speedtest&quot; ], &quot;outbound&quot;: &quot; 网络测速&quot; },\\\n      { &quot;geosite&quot;: [ &quot;geolocation-!cn&quot; ], &quot;outbound&quot;: &quot; 代理域名&quot; },\\\n      { &quot;geosite&quot;: [ &quot;cn&quot; ], &quot;outbound&quot;: &quot; 直连域名&quot; },\\\n      { &quot;geoip&quot;: [ &quot;telegram&quot; ], &quot;outbound&quot;: &quot; 电报消息&quot;, &quot;skip_resolve&quot;: true },\\\n      { &quot;geoip&quot;: [ &quot;private&quot; ],  &quot;outbound&quot;: &quot; 私有网络&quot;, &quot;skip_resolve&quot;: true },\\\n      { &quot;geoip&quot;: [ &quot;cn&quot; ], &quot;outbound&quot;: &quot; 国内 IP&quot; }\\\n    ],\\\n    // geosite 配置项\\\n    &quot;geosite&quot;: {\\\n      &quot;download_url&quot;: &quot;https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/release/geosite.db&quot;\\\n    },\\\n    // geoip 配置项\\\n    &quot;geoip&quot;: {\\\n      &quot;download_url&quot;: &quot;https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/release/geoip.db&quot;\\\n    },\\\n    // 默认出站，即没有命中规则的域名或 IP 走该规则\\\n    &quot;final&quot;: &quot; 漏网之鱼&quot;\\\n  }\\\n}\\\n</code></pre><div style=\\\"display:block; animation:0s ease 0s 1 normal none running none; box-sizing:border-box;\\\">\\\n    <span style=\\\"box-sizing:border-box;font-size:14px;font-weight:500;line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;appearance:none;transition:color 80ms cubic-bezier(0.33, 1, 0.68, 1) 0s, background-color, box-shadow, border-color;border:0px;border-radius:6px;color:rgb(9, 105, 218);background-color:transparent;box-shadow:none;position:relative;width:28px;height:28px;justify-content:center;align-items:center;margin:8px;padding:0px;display:flex;\\\">\\\n      <img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-copy js-clipboard-copy-icon js-evernote-checked' data-evernote-id='1048'%3e %3cpath d='M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z' data-evernote-id='2018' class='js-evernote-checked'%3e%3c/path%3e%3cpath d='M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z' data-evernote-id='2019' class='js-evernote-checked'%3e%3c/path%3e %3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;margin-right:4px;color:rgb(99, 108, 118);vertical-align:text-bottom;overflow:visible;\\\"></img>\\\n      <img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-check js-clipboard-check-icon color-fg-success d-none js-evernote-checked' data-evernote-id='1049'%3e %3cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z' data-evernote-id='2020' class='js-evernote-checked'%3e%3c/path%3e %3c/svg%3e\\\" style=\\\"box-sizing:border-box;fill:currentcolor;margin-right:4px;vertical-align:text-bottom;overflow:visible;color:rgb(9, 105, 218);display:none;\\\"></img>\\\n    </span>\\\n  </div></div>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\"><strong style=\\\"box-sizing:border-box;font-weight:600;\\\">贴一张面板效果图（举个例子：我手动选择 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\"> 台湾节点</code> 策略组，而该策略组是将机场内所有台湾节点按照 url 测试结果自动选择延迟最低的台湾节点）：</strong><br style=\\\"box-sizing:border-box;\\\"/>\\\n<a href=\\\"https://private-user-images.githubusercontent.com/45238096/298638950-1c1a1866-1fc1-4277-92b7-d138e36a4a4b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI0NTU1MDQsIm5iZiI6MTcxMjQ1NTIwNCwicGF0aCI6Ii80NTIzODA5Ni8yOTg2Mzg5NTAtMWMxYTE4NjYtMWZjMS00Mjc3LTkyYjctZDEzOGUzNmE0YTRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDA3VDAyMDAwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2ZjViYzliODFiMDdjZDA0NWMzMjUxZmVlZTFlNTIxMWRiYmNmYmNmYjFkZTYwYjg3NjRjMDU5YWM4NDc3Y2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9R15b5nnnmyn-YIOGnP6vc65uaWwCxg7DxVtx4RSaA8\\\" rel=\\\"noopener noreferrer\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\" target=\\\"_blank\\\"><img height=\\\"214\\\" src=\\\"https://private-user-images.githubusercontent.com/45238096/298638950-1c1a1866-1fc1-4277-92b7-d138e36a4a4b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI0NTU1MDQsIm5iZiI6MTcxMjQ1NTIwNCwicGF0aCI6Ii80NTIzODA5Ni8yOTg2Mzg5NTAtMWMxYTE4NjYtMWZjMS00Mjc3LTkyYjctZDEzOGUzNmE0YTRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDA3VDAyMDAwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2ZjViYzliODFiMDdjZDA0NWMzMjUxZmVlZTFlNTIxMWRiYmNmYmNmYjFkZTYwYjg3NjRjMDU5YWM4NDc3Y2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9R15b5nnnmyn-YIOGnP6vc65uaWwCxg7DxVtx4RSaA8\\\" style=\\\"border-style:none;box-sizing:content-box;max-width:100%;background-color:rgb(255, 255, 255);\\\" width=\\\"60%\\\"></img></a></p>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h3 dir=\\\"auto\\\" style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;font-size:1.25em;\\\">② 添加 dns.json</h3><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#-%E6%B7%BB%E5%8A%A0-dnsjson\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;transform:translateY(-50%);text-decoration:underline;float:left;padding-right:4px;margin-left:-20px;line-height:1;\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='722'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2024' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">• 作用是使 DNS 能够精确解析国内外域名，国内域名走 realip，国外域名走 fakeip（属 sing-box 内核的核心功能）<br style=\\\"box-sizing:border-box;\\\"/>\\\n• 连接 SSH 后执行 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">vi $CRASHDIR/jsons/dns.json</code>，按一下 Ins 键（Insert 键），编辑如下内容并粘贴：</p>\\\n<div style=\\\"box-sizing:border-box;display:flex;justify-content:space-between;margin-bottom:16px;background-color:rgb(246, 248, 250);position:relative;overflow:auto;\\\"><pre style=\\\"border-radius:4px;background-color: #fbfaf8;border: 1px solid rgba(0,0,0,.14902);color: #333;font-size: 12px;padding: 8px;font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif;box-sizing: border-box;\\\"><code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">{\\\n  // DNS\\\n  &quot;dns&quot;: {\\\n    // DNS 服务器\\\n    &quot;servers&quot;: [\\\n      // 广告 DNS\\\n      { &quot;tag&quot;: &quot;dns_block&quot;, &quot;address&quot;: &quot;rcode://refused&quot; },\\\n      // 阿里 DNS\\\n      { &quot;tag&quot;: &quot;dns_alidns&quot;, &quot;address&quot;: &quot;h3://223.5.5.5/dns-query&quot;, &quot;detour&quot;: &quot;DIRECT&quot; },\\\n      // 腾讯 DNS\\\n      { &quot;tag&quot;: &quot;dns_dnspod&quot;, &quot;address&quot;: &quot;https://1.12.12.12/dns-query&quot;, &quot;detour&quot;: &quot;DIRECT&quot; },\\\n      // FakeIP\\\n      { &quot;tag&quot;: &quot;dns_fakeip&quot;, &quot;address&quot;: &quot;fakeip&quot; }\\\n    ],\\\n    // DNS 规则\\\n    &quot;rules&quot;: [\\\n      { &quot;outbound&quot;: &quot;any&quot;, &quot;server&quot;: [ &quot;dns_alidns&quot;, &quot;dns_dnspod&quot; ] },\\\n      { &quot;clash_mode&quot;: &quot;Direct&quot;, &quot;server&quot;: [ &quot;dns_alidns&quot;, &quot;dns_dnspod&quot; ] },\\\n      { &quot;clash_mode&quot;: &quot;Global&quot;, &quot;server&quot;: &quot;dns_fakeip&quot;, &quot;rewrite_ttl&quot;: 1 },\\\n      // geosite.db 规则集文件内必须包含 `category-ads-all` 规则\\\n      { &quot;geosite&quot;: [ &quot;category-ads-all&quot; ], &quot;server&quot;: &quot;dns_block&quot; },\\\n      // geosite.db 规则集文件内必须包含以下规则\\\n      { &quot;geosite&quot;: [ &quot;microsoft@cn&quot;, &quot;apple-cn&quot;, &quot;google-cn&quot;, &quot;category-games@cn&quot;, &quot;cn&quot;, &quot;private&quot; ], &quot;query_type&quot;: [ &quot;A&quot;, &quot;AAAA&quot; ], &quot;server&quot;: [ &quot;dns_alidns&quot;, &quot;dns_dnspod&quot; ] },\\\n      // geosite.db 规则集文件内必须包含 `geolocation-!cn` 规则\\\n      { &quot;geosite&quot;: [ &quot;geolocation-!cn&quot; ], &quot;query_type&quot;: [ &quot;A&quot;, &quot;AAAA&quot; ], &quot;server&quot;: &quot;dns_fakeip&quot;, &quot;rewrite_ttl&quot;: 1 }\\\n    ],\\\n    // 默认 DNS 服务器，即上述 DNS 规则外的域名使用该 DNS 解析\\\n    &quot;final&quot;: [ &quot;dns_alidns&quot;, &quot;dns_dnspod&quot; ],\\\n    &quot;strategy&quot;: &quot;prefer_ipv4&quot;,\\\n    &quot;independent_cache&quot;: true,\\\n    &quot;reverse_mapping&quot;: true,\\\n    &quot;fakeip&quot;: { &quot;enabled&quot;: true, &quot;inet4_range&quot;: &quot;198.18.0.0/15&quot;, &quot;inet6_range&quot;: &quot;fc00::/18&quot; }\\\n  }\\\n}\\\n</code></pre><div style=\\\"display:block; animation:0s ease 0s 1 normal none running none; box-sizing:border-box;\\\">\\\n    <span style=\\\"box-sizing:border-box;font-size:14px;font-weight:500;line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;appearance:none;transition:color 80ms cubic-bezier(0.33, 1, 0.68, 1) 0s, background-color, box-shadow, border-color;border:0px;border-radius:6px;color:rgb(9, 105, 218);background-color:transparent;box-shadow:none;position:relative;width:28px;height:28px;justify-content:center;align-items:center;margin:8px;padding:0px;display:flex;\\\">\\\n      <img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-copy js-clipboard-copy-icon js-evernote-checked' data-evernote-id='1050'%3e %3cpath d='M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z' data-evernote-id='2027' class='js-evernote-checked'%3e%3c/path%3e%3cpath d='M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z' data-evernote-id='2028' class='js-evernote-checked'%3e%3c/path%3e %3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;margin-right:4px;color:rgb(99, 108, 118);vertical-align:text-bottom;overflow:visible;\\\"></img>\\\n      <img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-check js-clipboard-check-icon color-fg-success d-none js-evernote-checked' data-evernote-id='1051'%3e %3cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z' data-evernote-id='2029' class='js-evernote-checked'%3e%3c/path%3e %3c/svg%3e\\\" style=\\\"box-sizing:border-box;fill:currentcolor;margin-right:4px;vertical-align:text-bottom;overflow:visible;color:rgb(9, 105, 218);display:none;\\\"></img>\\\n    </span>\\\n  </div></div>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">按一下 Esc 键（退出键），输入英文冒号 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">:</code>，继续输入 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">wq</code> 并回车</p>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h2 dir=\\\"auto\\\" style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgba(208, 215, 222, 0.7);font-size:1.5em;\\\">2. 黑名单模式（只有命中规则的网络流量才使用代理，适用于服务器线路网络质量不稳定或不够快，或服务器流量紧缺的用户。通常也是软路由用户、家庭网关用户的常用模式）</h2><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#2-%E9%BB%91%E5%90%8D%E5%8D%95%E6%A8%A1%E5%BC%8F%E5%8F%AA%E6%9C%89%E5%91%BD%E4%B8%AD%E8%A7%84%E5%88%99%E7%9A%84%E7%BD%91%E7%BB%9C%E6%B5%81%E9%87%8F%E6%89%8D%E4%BD%BF%E7%94%A8%E4%BB%A3%E7%90%86%E9%80%82%E7%94%A8%E4%BA%8E%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%BA%BF%E8%B7%AF%E7%BD%91%E7%BB%9C%E8%B4%A8%E9%87%8F%E4%B8%8D%E7%A8%B3%E5%AE%9A%E6%88%96%E4%B8%8D%E5%A4%9F%E5%BF%AB%E6%88%96%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%B5%81%E9%87%8F%E7%B4%A7%E7%BC%BA%E7%9A%84%E7%94%A8%E6%88%B7%E9%80%9A%E5%B8%B8%E4%B9%9F%E6%98%AF%E8%BD%AF%E8%B7%AF%E7%94%B1%E7%94%A8%E6%88%B7%E5%AE%B6%E5%BA%AD%E7%BD%91%E5%85%B3%E7%94%A8%E6%88%B7%E7%9A%84%E5%B8%B8%E7%94%A8%E6%A8%A1%E5%BC%8F\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;float:left;padding-right:4px;margin-left:-20px;line-height:1;transform:translateY(calc(-50% - 0.3rem));\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='723'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2032' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h3 dir=\\\"auto\\\" style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;font-size:1.25em;\\\">① 添加 .json 模板</h3><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#-%E6%B7%BB%E5%8A%A0-json-%E6%A8%A1%E6%9D%BF-1\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;transform:translateY(-50%);text-decoration:underline;float:left;padding-right:4px;margin-left:-20px;line-height:1;\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='724'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2034' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">将模板内容复制到自己 Gist 新建的 .json 文件中：</p>\\\n<div style=\\\"box-sizing:border-box;display:flex;justify-content:space-between;margin-bottom:16px;background-color:rgb(246, 248, 250);position:relative;overflow:auto;\\\"><pre style=\\\"border-radius:4px;background-color: #fbfaf8;border: 1px solid rgba(0,0,0,.14902);color: #333;font-size: 12px;padding: 8px;font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif;box-sizing: border-box;\\\"><code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">{\\\n  // 出站\\\n  &quot;outbounds&quot;: [\\\n    // 手动选择国家或地区节点；根据“国家或地区出站”的名称对 `outbounds` 值进行增删改，须一一对应\\\n    { &quot;tag&quot;: &quot; 节点选择&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 香港节点&quot;, &quot; 免费节点&quot;, &quot; 台湾节点&quot;, &quot; 日本节点&quot;, &quot; 新加坡节点&quot;, &quot; 美国节点&quot; ] },\\\n    // Speedtest 测速网站：选择` 全球直连` 为测试本地网络速度（运营商网络速度），可选择其它节点用于测试机场节点速度\\\n    { &quot;tag&quot;: &quot; 网络测速&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 全球直连&quot;, &quot; 香港节点&quot;, &quot; 免费节点&quot;, &quot; 台湾节点&quot;, &quot; 日本节点&quot;, &quot; 新加坡节点&quot;, &quot; 美国节点&quot; ] },\\\n    { &quot;tag&quot;: &quot; 漏网之鱼&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 全球直连&quot;, &quot; 节点选择&quot; ] },\\\n    { &quot;tag&quot;: &quot; GFWList 域名&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 节点选择&quot;, &quot; 全球直连&quot; ] },\\\n    { &quot;tag&quot;: &quot; 电报消息&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 节点选择&quot; ] },\\\n    { &quot;tag&quot;: &quot; 广告拦截&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot;REJECT&quot; ] },\\\n    { &quot;tag&quot;: &quot; 全球直连&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot;DIRECT&quot; ] },\\\n    { &quot;tag&quot;: &quot;REJECT&quot;, &quot;type&quot;: &quot;block&quot; },\\\n    { &quot;tag&quot;: &quot;DIRECT&quot;, &quot;type&quot;: &quot;direct&quot; },\\\n    { &quot;tag&quot;: &quot;GLOBAL&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot;DIRECT&quot;, &quot;REJECT&quot;, &quot; 香港节点&quot;, &quot; 免费节点&quot;, &quot; 台湾节点&quot;, &quot; 日本节点&quot;, &quot; 新加坡节点&quot;, &quot; 美国节点&quot; ] },\\\n    { &quot;tag&quot;: &quot;dns-out&quot;, &quot;type&quot;: &quot;dns&quot; },\\\n\\\n    // 单个出站节点（以 vless 为例）\\\n    {\\\n      &quot;tag&quot;: &quot; 免费节点&quot;,\\\n      &quot;type&quot;: &quot;vless&quot;,\\\n      &quot;server&quot;: &quot;example.com&quot;,\\\n      &quot;server_port&quot;: 443,\\\n      &quot;uuid&quot;: &quot;{uuid}&quot;,\\\n      &quot;network&quot;: &quot;tcp&quot;,\\\n      &quot;tls&quot;: { &quot;enabled&quot;: true, &quot;server_name&quot;: &quot;example.com&quot;, &quot;insecure&quot;: false },\\\n      &quot;transport&quot;: { &quot;type&quot;: &quot;ws&quot;, &quot;path&quot;: &quot;/?ed=2048&quot;, &quot;headers&quot;: { &quot;Host&quot;: &quot;example.com&quot; } }\\\n    },\\\n\\\n    // -------------------- 国家或地区出站 --------------------\\\n    // 自动选择节点，即按照 url 测试结果使用延迟最低的节点；测试后容差大于 50ms 才会切换到延迟低的那个节点；筛选出“香港”节点，支持正则表达式\\\n    { &quot;tag&quot;: &quot; 香港节点&quot;, &quot;type&quot;: &quot;urltest&quot;, &quot;tolerance&quot;: 50, &quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot; ], &quot;includes&quot;: [ &quot;(?i)港|hk|hongkong|hong kong&quot; ] },\\\n    // 若有多个机场，可以使用 `&quot;use_all_providers&quot;: true` 代替 `&quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot;, ... ]`\\\n    { &quot;tag&quot;: &quot; 台湾节点&quot;, &quot;type&quot;: &quot;urltest&quot;, &quot;tolerance&quot;: 50, &quot;use_all_providers&quot;: true, &quot;includes&quot;: [ &quot;(?i)台|tw|taiwan&quot; ] },\\\n    { &quot;tag&quot;: &quot; 日本节点&quot;, &quot;type&quot;: &quot;urltest&quot;, &quot;tolerance&quot;: 50, &quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot; ], &quot;includes&quot;: [ &quot;(?i)日本|jp|japan&quot; ] },\\\n    { &quot;tag&quot;: &quot; 新加坡节点&quot;, &quot;type&quot;: &quot;urltest&quot;, &quot;tolerance&quot;: 50, &quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot; ], &quot;includes&quot;: [ &quot;(?i)新|sg|singapore&quot; ] },\\\n    { &quot;tag&quot;: &quot; 美国节点&quot;, &quot;type&quot;: &quot;urltest&quot;, &quot;tolerance&quot;: 50, &quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot; ], &quot;includes&quot;: [ &quot;(?i)美|us|unitedstates|united states&quot; ] }\\\n  ],\\\n  // 代理集合（获取机场订阅链接内的所有节点）\\\n  &quot;outbound_providers&quot;: [\\\n    {\\\n      &quot;tag&quot;: &quot; 我的机场 1&quot;,\\\n      &quot;type&quot;: &quot;http&quot;,\\\n      &quot;healthcheck_url&quot;: &quot;https://www.gstatic.com/generate_204&quot;,\\\n      &quot;healthcheck_interval&quot;: &quot;10m&quot;,\\\n      // 机场订阅链接，使用 Clash 链接\\\n      &quot;download_url&quot;: &quot;https://example.com/xxx/xxx&amp;flag=clash&quot;,\\\n      &quot;path&quot;: &quot;./providers/airport1.yaml&quot;,\\\n      // 初步筛选需要的节点，可有效减轻路由器压力，支持正则表达式，若不筛选可删除此配置项\\\n      &quot;includes&quot;: [ &quot;香港|台湾|日本|新加坡|美国&quot; ],\\\n      // 初步排除不需要的节点，支持正则表达式，若不排除可删除此配置项\\\n      &quot;excludes&quot;: &quot;高倍|×10&quot;,\\\n      &quot;download_ua&quot;: &quot;clash.meta&quot;,\\\n      &quot;download_interval&quot;: &quot;24h&quot;\\\n    },\\\n    {\\\n      &quot;tag&quot;: &quot; 我的机场 2&quot;,\\\n      &quot;type&quot;: &quot;http&quot;,\\\n      &quot;healthcheck_url&quot;: &quot;https://www.gstatic.com/generate_204&quot;,\\\n      &quot;healthcheck_interval&quot;: &quot;10m&quot;,\\\n      &quot;download_url&quot;: &quot;https://example.com/xxx/xxx&amp;flag=clash&quot;,\\\n      &quot;path&quot;: &quot;./providers/airport2.yaml&quot;,\\\n      &quot;includes&quot;: [ &quot;香港|台湾|日本|新加坡|美国&quot; ],\\\n      &quot;excludes&quot;: &quot;高倍|×10&quot;,\\\n      &quot;download_ua&quot;: &quot;clash.meta&quot;,\\\n      &quot;download_interval&quot;: &quot;24h&quot;\\\n    }\\\n  ],\\\n  // 路由\\\n  &quot;route&quot;: {\\\n    // 规则\\\n    &quot;rules&quot;: [\\\n      { &quot;protocol&quot;: [ &quot;dns&quot; ], &quot;outbound&quot;: &quot;dns-out&quot; },\\\n      { &quot;clash_mode&quot;: &quot;Direct&quot;, &quot;outbound&quot;: &quot;DIRECT&quot; },\\\n      { &quot;clash_mode&quot;: &quot;Global&quot;, &quot;outbound&quot;: &quot; 节点选择&quot; },\\\n      // 自定义规则优先放前面\\\n      { &quot;geosite&quot;: [ &quot;category-ads-all&quot; ], &quot;outbound&quot;: &quot; 广告拦截&quot; },\\\n      { &quot;geosite&quot;: [ &quot;speedtest&quot; ], &quot;outbound&quot;: &quot; 网络测速&quot; },\\\n      { &quot;geosite&quot;: [ &quot;gfw&quot; ], &quot;outbound&quot;: &quot; GFWList 域名&quot; },\\\n      { &quot;geoip&quot;: [ &quot;telegram&quot; ], &quot;outbound&quot;: &quot; 电报消息&quot;, &quot;skip_resolve&quot;: true },\\\n    ],\\\n    // geosite 配置项\\\n    &quot;geosite&quot;: {\\\n      &quot;path&quot;: &quot;./geodata/geosite.db&quot;,\\\n      &quot;download_url&quot;: &quot;https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/release/geosite.db&quot;\\\n    },\\\n    // geoip 配置项\\\n    &quot;geoip&quot;: {\\\n      &quot;path&quot;: &quot;./geodata/geoip.db&quot;,\\\n      &quot;download_url&quot;: &quot;https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/release/geoip.db&quot;\\\n    },\\\n    // 默认出站，即没有命中规则的域名或 IP 走该规则\\\n    &quot;final&quot;: &quot; 漏网之鱼&quot;\\\n  }\\\n}\\\n</code></pre><div style=\\\"display:block; animation:0s ease 0s 1 normal none running none; box-sizing:border-box;\\\">\\\n    <span style=\\\"box-sizing:border-box;font-size:14px;font-weight:500;line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;appearance:none;transition:color 80ms cubic-bezier(0.33, 1, 0.68, 1) 0s, background-color, box-shadow, border-color;border:0px;border-radius:6px;color:rgb(9, 105, 218);background-color:transparent;box-shadow:none;position:relative;width:28px;height:28px;justify-content:center;align-items:center;margin:8px;padding:0px;display:flex;\\\">\\\n      <img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-copy js-clipboard-copy-icon js-evernote-checked' data-evernote-id='1052'%3e %3cpath d='M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z' data-evernote-id='2036' class='js-evernote-checked'%3e%3c/path%3e%3cpath d='M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z' data-evernote-id='2037' class='js-evernote-checked'%3e%3c/path%3e %3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;margin-right:4px;color:rgb(99, 108, 118);vertical-align:text-bottom;overflow:visible;\\\"></img>\\\n      <img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-check js-clipboard-check-icon color-fg-success d-none js-evernote-checked' data-evernote-id='1053'%3e %3cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z' data-evernote-id='2038' class='js-evernote-checked'%3e%3c/path%3e %3c/svg%3e\\\" style=\\\"box-sizing:border-box;fill:currentcolor;margin-right:4px;vertical-align:text-bottom;overflow:visible;color:rgb(9, 105, 218);display:none;\\\"></img>\\\n    </span>\\\n  </div></div>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h3 dir=\\\"auto\\\" style=\\\"box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;font-size:1.25em;\\\">② 添加 dns.json</h3><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#-%E6%B7%BB%E5%8A%A0-dnsjson-1\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;transform:translateY(-50%);text-decoration:underline;float:left;padding-right:4px;margin-left:-20px;line-height:1;\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='725'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2040' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">• 作用是使 DNS 能够精确解析国内外域名，国内域名走 realip，国外域名走 fakeip（属 sing-box 内核的核心功能）<br style=\\\"box-sizing:border-box;\\\"/>\\\n• 连接 SSH 后执行 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">vi $CRASHDIR/jsons/dns.json</code>，按一下 Ins 键（Insert 键），编辑如下内容并粘贴：</p>\\\n<div style=\\\"box-sizing:border-box;display:flex;justify-content:space-between;margin-bottom:16px;background-color:rgb(246, 248, 250);position:relative;overflow:auto;\\\"><pre style=\\\"border-radius:4px;background-color: #fbfaf8;border: 1px solid rgba(0,0,0,.14902);color: #333;font-size: 12px;padding: 8px;font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif;box-sizing: border-box;\\\"><code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">{\\\n  // DNS\\\n  &quot;dns&quot;: {\\\n    // DNS 服务器\\\n    &quot;servers&quot;: [\\\n      // 广告 DNS\\\n      { &quot;tag&quot;: &quot;dns_block&quot;, &quot;address&quot;: &quot;rcode://refused&quot; },\\\n      // 阿里 DNS\\\n      { &quot;tag&quot;: &quot;dns_alidns&quot;, &quot;address&quot;: &quot;h3://223.5.5.5/dns-query&quot;, &quot;detour&quot;: &quot;DIRECT&quot; },\\\n      // 腾讯 DNS\\\n      { &quot;tag&quot;: &quot;dns_dnspod&quot;, &quot;address&quot;: &quot;https://1.12.12.12/dns-query&quot;, &quot;detour&quot;: &quot;DIRECT&quot; },\\\n      // FakeIP\\\n      { &quot;tag&quot;: &quot;dns_fakeip&quot;, &quot;address&quot;: &quot;fakeip&quot; }\\\n    ],\\\n    // DNS 规则\\\n    &quot;rules&quot;: [\\\n      { &quot;outbound&quot;: &quot;any&quot;, &quot;server&quot;: [ &quot;dns_alidns&quot;, &quot;dns_dnspod&quot; ] },\\\n      { &quot;clash_mode&quot;: &quot;Direct&quot;, &quot;server&quot;: [ &quot;dns_alidns&quot;, &quot;dns_dnspod&quot; ] },\\\n      { &quot;clash_mode&quot;: &quot;Global&quot;, &quot;server&quot;: &quot;dns_fakeip&quot;, &quot;rewrite_ttl&quot;: 1 },\\\n      // geosite.db 规则集文件内必须包含 `category-ads-all` 规则\\\n      { &quot;geosite&quot;: [ &quot;category-ads-all&quot; ], &quot;server&quot;: &quot;dns_block&quot; },\\\n      // geosite.db 规则集文件内必须包含 `gfw` 规则\\\n      { &quot;geosite&quot;: [ &quot;gfw&quot; ], &quot;query_type&quot;: [ &quot;A&quot;, &quot;AAAA&quot; ], &quot;server&quot;: &quot;dns_fakeip&quot;, &quot;rewrite_ttl&quot;: 1 }\\\n    ],\\\n    // 默认 DNS 服务器，即上述 DNS 规则外的域名使用该 DNS 解析\\\n    &quot;final&quot;: [ &quot;dns_alidns&quot;, &quot;dns_dnspod&quot; ],\\\n    &quot;strategy&quot;: &quot;prefer_ipv4&quot;,\\\n    &quot;independent_cache&quot;: true,\\\n    &quot;reverse_mapping&quot;: true,\\\n    &quot;fakeip&quot;: { &quot;enabled&quot;: true, &quot;inet4_range&quot;: &quot;198.18.0.0/15&quot;, &quot;inet6_range&quot;: &quot;fc00::/18&quot; }\\\n  }\\\n}\\\n</code></pre><div style=\\\"display:block; animation:0s ease 0s 1 normal none running none; box-sizing:border-box;\\\">\\\n    <span style=\\\"box-sizing:border-box;font-size:14px;font-weight:500;line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;appearance:none;transition:color 80ms cubic-bezier(0.33, 1, 0.68, 1) 0s, background-color, box-shadow, border-color;border:0px;border-radius:6px;color:rgb(9, 105, 218);background-color:transparent;box-shadow:none;position:relative;width:28px;height:28px;justify-content:center;align-items:center;margin:8px;padding:0px;display:flex;\\\">\\\n      <img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-copy js-clipboard-copy-icon js-evernote-checked' data-evernote-id='1054'%3e %3cpath d='M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z' data-evernote-id='2043' class='js-evernote-checked'%3e%3c/path%3e%3cpath d='M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z' data-evernote-id='2044' class='js-evernote-checked'%3e%3c/path%3e %3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;margin-right:4px;color:rgb(99, 108, 118);vertical-align:text-bottom;overflow:visible;\\\"></img>\\\n      <img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-check js-clipboard-check-icon color-fg-success d-none js-evernote-checked' data-evernote-id='1055'%3e %3cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z' data-evernote-id='2045' class='js-evernote-checked'%3e%3c/path%3e %3c/svg%3e\\\" style=\\\"box-sizing:border-box;fill:currentcolor;margin-right:4px;vertical-align:text-bottom;overflow:visible;color:rgb(9, 105, 218);display:none;\\\"></img>\\\n    </span>\\\n  </div></div>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">按一下 Esc 键（退出键），输入英文冒号 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">:</code>，继续输入 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">wq</code> 并回车</p>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h1 dir=\\\"auto\\\" style=\\\"margin:0.67em 0px;box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgba(208, 215, 222, 0.7);font-size:2em;\\\">三、 修改模板和配置文件</h1><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#%E4%B8%89-%E4%BF%AE%E6%94%B9%E6%A8%A1%E6%9D%BF%E5%92%8C%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;float:left;padding-right:4px;margin-left:-20px;line-height:1;transform:translateY(calc(-50% - 0.3rem));\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='726'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2047' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<ol dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n<li style=\\\"box-sizing:border-box;\\\">将代理集合 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">outbound_providers</code> 中的 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">download_url</code> 链接改成自己机场的订阅链接（必须为 Clash 订阅链接，详见《前言：4》）</li>\\\n<li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">确定自己机场中有哪些国家或地区的节点，然后对模板文件里 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">outbounds</code> 中的“<strong style=\\\"box-sizing:border-box;font-weight:600;\\\">国家或地区出站</strong>”以及 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\"> 节点选择</code>、<code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\"> 网络测速</code> 和 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">GLOBAL</code> 下的 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">outbounds</code> 里面的国家或地区进行增删改</li>\\\n</ol>\\\n<ul dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n<li style=\\\"box-sizing:border-box;\\\">注：两者中的国家或地区必须一一对应，新增就全部新增，删除就全部删除，修改就全部修改（重要）</li>\\\n</ul>\\\n<ol dir=\\\"auto\\\" start=\\\"3\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n<li style=\\\"box-sizing:border-box;\\\">在 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\"> 节点选择</code> 出站下的 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">outbounds</code> 里，可以将最稳定的节点放在最前面，配置完成后会自动选择最稳定的节点</li>\\\n<li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">在“国家或地区出站”里，<code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">type</code> 为 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">urltest</code> 就是自动选择延迟最低的节点，将 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">urltest</code> 改成 <code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">selector</code> 就是手动选择节点\\\n举个例子：我的机场有 2 个节点，分别是香港节点和日本节点，我想让<a href=\\\"https://www.bilibili.com/\\\" rel=\\\"nofollow\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\">哔哩哔哩</a>（B 站）自动选择延迟最低的香港节点，<a href=\\\"https://www.acfun.cn/\\\" rel=\\\"nofollow\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\">AcFun</a>（A 站）可以手动选择日本节点，这个需求怎么写？\\\n我们可以进入 <a href=\\\"https://github.com/MetaCubeX/meta-rules-dat/tree/sing/geo\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\">MetaCubeX/meta-rules-dat/sing/geo</a> 后在左侧“Go to file”搜索框内分别搜索“bilibili”和“acfun”，显然可以<strong style=\\\"box-sizing:border-box;font-weight:600;\\\">精确搜索到结果</strong>，输入“bilibili”可以搜索到“geo/geosite/bilibili”和“geo-lite/geoip/bilibili”（须下载后缀带有“-lite”的 geoip 规则集文件），输入“acfun”仅搜索到“geo/geosite/acfun”，那么就可以这样编写：</li>\\\n</ol>\\\n<ul dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n<li style=\\\"box-sizing:border-box;\\\">注：以下只是节选，请酌情套用</li>\\\n</ul>\\\n<div style=\\\"box-sizing:border-box;display:flex;justify-content:space-between;margin-bottom:16px;background-color:rgb(246, 248, 250);position:relative;overflow:auto;\\\"><pre style=\\\"border-radius:4px;background-color: #fbfaf8;border: 1px solid rgba(0,0,0,.14902);color: #333;font-size: 12px;padding: 8px;font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif;box-sizing: border-box;\\\"><code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">{\\\n  // 出站\\\n  &quot;outbounds&quot;: [\\\n    // 默认选择香港节点\\\n    { &quot;tag&quot;: &quot; 哔哩哔哩&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 香港节点&quot;, &quot; 全球直连&quot; ] },\\\n    // 默认选择日本节点\\\n    { &quot;tag&quot;: &quot;️ AcFun&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot; 日本节点&quot;, &quot; 全球直连&quot; ] },\\\n    // 自动选择延迟最低的香港节点；容差大于 50ms 才会切换到延迟低的那个节点\\\n    { &quot;tag&quot;: &quot; 香港节点&quot;, &quot;type&quot;: &quot;urltest&quot;, &quot;tolerance&quot;: 50, &quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot; ], &quot;includes&quot;: [ &quot;(?i)港|hk|hongkong|hong kong&quot; ] },\\\n    // 手动选择日本节点\\\n    { &quot;tag&quot;: &quot; 日本节点&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot; ], &quot;includes&quot;: [ &quot;(?i)日本|jp|japan&quot; ] },\\\n    { &quot;tag&quot;: &quot; 全球直连&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;outbounds&quot;: [ &quot;DIRECT&quot; ] },\\\n    { &quot;tag&quot;: &quot;DIRECT&quot;, &quot;type&quot;: &quot;direct&quot; }\\\n  ],\\\n  // 路由\\\n  &quot;route&quot;: {\\\n    // 规则\\\n    &quot;rules&quot;: [\\\n      // 自定义规则优先放前面\\\n      { &quot;geosite&quot;: [ &quot;bilibili&quot; ], &quot;outbound&quot;: &quot; 哔哩哔哩&quot; },\\\n      { &quot;geoip&quot;: [ &quot;bilibili&quot; ], &quot;outbound&quot;: &quot; 哔哩哔哩&quot;, &quot;skip_resolve&quot;: true  },\\\n      { &quot;geosite&quot;: [ &quot;acfun&quot; ], &quot;outbound&quot;: &quot;️ AcFun&quot; }\\\n    ]\\\n  }\\\n}\\\n</code></pre><div style=\\\"display:block; animation:0s ease 0s 1 normal none running none; box-sizing:border-box;\\\">\\\n    <span style=\\\"box-sizing:border-box;font-size:14px;font-weight:500;line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;appearance:none;transition:color 80ms cubic-bezier(0.33, 1, 0.68, 1) 0s, background-color, box-shadow, border-color;border:0px;border-radius:6px;color:rgb(9, 105, 218);background-color:transparent;box-shadow:none;position:relative;width:28px;height:28px;justify-content:center;align-items:center;margin:8px;padding:0px;display:flex;\\\">\\\n      <img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-copy js-clipboard-copy-icon js-evernote-checked' data-evernote-id='1056'%3e %3cpath d='M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z' data-evernote-id='2058' class='js-evernote-checked'%3e%3c/path%3e%3cpath d='M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z' data-evernote-id='2059' class='js-evernote-checked'%3e%3c/path%3e %3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;margin-right:4px;color:rgb(99, 108, 118);vertical-align:text-bottom;overflow:visible;\\\"></img>\\\n      <img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-check js-clipboard-check-icon color-fg-success d-none js-evernote-checked' data-evernote-id='1057'%3e %3cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z' data-evernote-id='2060' class='js-evernote-checked'%3e%3c/path%3e %3c/svg%3e\\\" style=\\\"box-sizing:border-box;fill:currentcolor;margin-right:4px;vertical-align:text-bottom;overflow:visible;color:rgb(9, 105, 218);display:none;\\\"></img>\\\n    </span>\\\n  </div></div>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h1 dir=\\\"auto\\\" style=\\\"margin:0.67em 0px;box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgba(208, 215, 222, 0.7);font-size:2em;\\\">四、 生成 .json 文件链接</h1><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#%E5%9B%9B-%E7%94%9F%E6%88%90-json-%E6%96%87%E4%BB%B6%E9%93%BE%E6%8E%A5\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;float:left;padding-right:4px;margin-left:-20px;line-height:1;transform:translateY(calc(-50% - 0.3rem));\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='727'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2061' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">编辑完成后，点击右下角的“Create secret gist”按钮，然后点击右上角的“Raw”按钮<br style=\\\"box-sizing:border-box;\\\"/>\\\n<a href=\\\"https://private-user-images.githubusercontent.com/45238096/298665181-de55458c-b403-438c-adf9-2503f1aad71f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI0NTU1MDQsIm5iZiI6MTcxMjQ1NTIwNCwicGF0aCI6Ii80NTIzODA5Ni8yOTg2NjUxODEtZGU1NTQ1OGMtYjQwMy00MzhjLWFkZjktMjUwM2YxYWFkNzFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDA3VDAyMDAwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwNmNiYjliYzBjNzhlODJkYzIwY2MwZDZlY2EzMWRjZGUwYTlmMzk2OGNlZWIwYTk0MTY5NzNhM2RmYTc2YzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0FV6ul1WNbQa6WIJ-82ThNN7f6nOwiSvYwMh1O3rBOE\\\" rel=\\\"noopener noreferrer\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\" target=\\\"_blank\\\"><img height=\\\"222\\\" src=\\\"https://private-user-images.githubusercontent.com/45238096/298665181-de55458c-b403-438c-adf9-2503f1aad71f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI0NTU1MDQsIm5iZiI6MTcxMjQ1NTIwNCwicGF0aCI6Ii80NTIzODA5Ni8yOTg2NjUxODEtZGU1NTQ1OGMtYjQwMy00MzhjLWFkZjktMjUwM2YxYWFkNzFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDA3VDAyMDAwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwNmNiYjliYzBjNzhlODJkYzIwY2MwZDZlY2EzMWRjZGUwYTlmMzk2OGNlZWIwYTk0MTY5NzNhM2RmYTc2YzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0FV6ul1WNbQa6WIJ-82ThNN7f6nOwiSvYwMh1O3rBOE\\\" style=\\\"border-style:none;box-sizing:content-box;max-width:100%;background-color:rgb(255, 255, 255);\\\" width=\\\"60%\\\"></img></a></p>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">取出地址栏中的网址，删除后面的一串随机码，<strong style=\\\"box-sizing:border-box;font-weight:600;\\\">完成后该 .json 文件直链才是最终生成的订阅链接</strong>，该订阅链接地址不会改变，在不更改文件名的情况下即使编辑该 .json 文件并提交了 n 次也不会改变\\\n举例，这是原地址：\\\n<code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">https://gist.githubusercontent.com/DustinWin/40c0611fda5d6fcd0795ee5a15de7c73/raw/b3c63051134510ae9825068bbcf5219817761f57/singboxlink.json</code>\\\n删除后面的一串随机码（当前编辑该文件生成的随机码“b3c63051134510ae9825068bbcf5219817761f57”）<br style=\\\"box-sizing:border-box;\\\"/>\\\n<a href=\\\"https://private-user-images.githubusercontent.com/45238096/298665878-a409ace5-8f03-4776-b9e3-dce3ba804844.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI0NTU1MDQsIm5iZiI6MTcxMjQ1NTIwNCwicGF0aCI6Ii80NTIzODA5Ni8yOTg2NjU4NzgtYTQwOWFjZTUtOGYwMy00Nzc2LWI5ZTMtZGNlM2JhODA0ODQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDA3VDAyMDAwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzZGEyNGE3YjA2NzRkNzUxZTYwOTM5ZDhhOTM4YWIxMTE4NzIxZWU4MjA5YTVkY2RkNTZmYWZjODE0YTAzMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9dmMBR0pIfKg7MVdl3nFuNxSEYH-Wan4mSqXftDtDkQ\\\" rel=\\\"noopener noreferrer\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\" target=\\\"_blank\\\"><img height=\\\"27\\\" src=\\\"https://private-user-images.githubusercontent.com/45238096/298665878-a409ace5-8f03-4776-b9e3-dce3ba804844.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI0NTU1MDQsIm5iZiI6MTcxMjQ1NTIwNCwicGF0aCI6Ii80NTIzODA5Ni8yOTg2NjU4NzgtYTQwOWFjZTUtOGYwMy00Nzc2LWI5ZTMtZGNlM2JhODA0ODQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDA3VDAyMDAwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzZGEyNGE3YjA2NzRkNzUxZTYwOTM5ZDhhOTM4YWIxMTE4NzIxZWU4MjA5YTVkY2RkNTZmYWZjODE0YTAzMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9dmMBR0pIfKg7MVdl3nFuNxSEYH-Wan4mSqXftDtDkQ\\\" style=\\\"border-style:none;box-sizing:content-box;max-width:100%;background-color:rgb(255, 255, 255);\\\" width=\\\"60%\\\"></img></a></p>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">删除后变成：\\\n<code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">https://gist.githubusercontent.com/DustinWin/40c0611fda5d6fcd0795ee5a15de7c73/raw/singboxlink.json</code></p>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h1 dir=\\\"auto\\\" style=\\\"margin:0.67em 0px;box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgba(208, 215, 222, 0.7);font-size:2em;\\\">五、 导入订阅链接（以 ShellCrash 导入订阅链接为例）</h1><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#%E4%BA%94-%E5%AF%BC%E5%85%A5%E8%AE%A2%E9%98%85%E9%93%BE%E6%8E%A5%E4%BB%A5-shellcrash-%E5%AF%BC%E5%85%A5%E8%AE%A2%E9%98%85%E9%93%BE%E6%8E%A5%E4%B8%BA%E4%BE%8B\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;float:left;padding-right:4px;margin-left:-20px;line-height:1;transform:translateY(calc(-50% - 0.3rem));\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='728'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2067' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">进入 ShellCrash 配置脚本-&gt;6-&gt;2，粘贴最终生成的订阅链接即可，具体设置请参考《<a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/ShellCrash%20%E9%85%8D%E7%BD%AE-geodata%20%E6%96%B9%E6%A1%88.md\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\">ShellCrash 配置-geodata 方案</a>》</p>\\\n<div dir=\\\"auto\\\" style=\\\"box-sizing:border-box;position:relative;\\\"><h1 dir=\\\"auto\\\" style=\\\"margin:0.67em 0px;box-sizing:border-box;line-height:1.25;margin-top:24px;margin-bottom:16px;font-weight:600;padding-bottom:0.3em;border-bottom:1px solid rgba(208, 215, 222, 0.7);font-size:2em;\\\">六、 私人定制</h1><a href=\\\"https://github.com/DustinWin/clash_singbox-tutorials/blob/main/%E6%95%99%E7%A8%8B%E5%90%88%E9%9B%86/sing-box/%E5%9F%BA%E7%A1%80%E7%AF%87/%E7%94%9F%E6%88%90%E5%B8%A6%E6%9C%89%E8%87%AA%E5%AE%9A%E4%B9%89%E5%87%BA%E7%AB%99%E5%92%8C%E8%A7%84%E5%88%99%E7%9A%84%20sing-box%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%B4%E9%93%BE-geodata%20%E6%96%B9%E6%A1%88.md#%E5%85%AD-%E7%A7%81%E4%BA%BA%E5%AE%9A%E5%88%B6\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;position:absolute;top:50%;left:-28px;display:flex;width:28px;height:28px;margin:auto;border-radius:6px;opacity:0;justify-content:center;align-items:center;float:left;padding-right:4px;margin-left:-20px;line-height:1;transform:translateY(calc(-50% - 0.3rem));\\\"><img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' class='octicon octicon-link js-evernote-checked' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true' data-evernote-id='729'%3e%3cpath d='m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z' data-evernote-id='2069' class='js-evernote-checked'%3e%3c/path%3e%3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;vertical-align:text-bottom;color:rgb(31, 35, 40);overflow:visible;\\\"></img></a></div>\\\n<p dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;\\\">到了这里，相信你对里面的机制已经有了一定的认识，那么我们可以对自己的需求进行定制了\\\n最常见的有：我购买的机场支持<a href=\\\"https://www.netflix.com/\\\" rel=\\\"nofollow\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\">奈飞</a>和<a href=\\\"https://www.primevideo.com/\\\" rel=\\\"nofollow\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\">亚马逊</a>，但仅新加坡这一个节点支持亚马逊，日本和韩国节点支持奈飞，这个规则怎么写？</p>\\\n<ol dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n<li style=\\\"box-sizing:border-box;\\\">进入 <a href=\\\"https://github.com/MetaCubeX/meta-rules-dat/tree/sing/geo\\\" style=\\\"background-color:transparent;box-sizing:border-box;color:rgb(9, 105, 218);text-underline-offset:3.2px;text-decoration:underline;\\\">MetaCubeX/meta-rules-dat/sing/geo</a> 后在左侧“Go to file”搜索框内分别搜索“netflix”和“primevideo”</li>\\\n<li style=\\\"box-sizing:border-box;margin-top:0.25em;\\\">输入“netflix”可以搜索到“geo/geosite/netflix”和“geo/geoip/netflix”，输入“primevideo”仅搜索到“geo/geosite/primevideo”，那么我们可以这样编写：</li>\\\n</ol>\\\n<ul dir=\\\"auto\\\" style=\\\"box-sizing:border-box;margin-top:0px;margin-bottom:16px;padding-left:2em;\\\">\\\n<li style=\\\"box-sizing:border-box;\\\">注：以下只是节选，请酌情套用</li>\\\n</ul>\\\n<div style=\\\"box-sizing:border-box;display:flex;justify-content:space-between;background-color:rgb(246, 248, 250);position:relative;overflow:auto;margin-bottom:0px;\\\"><pre style=\\\"border-radius:4px;background-color: #fbfaf8;border: 1px solid rgba(0,0,0,.14902);color: #333;font-size: 12px;padding: 8px;font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif;box-sizing: border-box;\\\"><code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">{\\\n  // 出站\\\n  &quot;outbounds&quot;: [\\\n    // 打开奈飞后手动选择日本或韩国节点\\\n    { &quot;tag&quot;: &quot; 奈飞视频&quot;, &quot;type&quot;: &quot;selector&quot;, &quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot; ], &quot;includes&quot;: [ &quot;(?i)日本|jp|japan|韩|kr|korea&quot; ] },\\\n    // 打开亚马逊后自动选择延迟最低的新加坡节点；容差大于 50ms 才会切换到延迟低的那个节点\\\n    { &quot;tag&quot;: &quot; Prime Video&quot;, &quot;type&quot;: &quot;urltest&quot;, &quot;tolerance&quot;: 50, &quot;providers&quot;: [ &quot; 我的机场 1&quot;, &quot; 我的机场 2&quot; ], &quot;includes&quot;: [ &quot;(?i)新|sg|singapore&quot; ] }\\\n  ],\\\n  // 路由\\\n  &quot;route&quot;: {\\\n    // 规则\\\n    &quot;rules&quot;: [\\\n      // 自定义规则优先放前面\\\n      { &quot;geosite&quot;: [ &quot;netflix&quot; ], &quot;outbound&quot;: &quot; 奈飞视频&quot; },\\\n      { &quot;geoip&quot;: [ &quot;netflix&quot; ], &quot;outbound&quot;: &quot; 奈飞视频&quot;, &quot;skip_resolve&quot;: true }\\\n      { &quot;geosite&quot;: [ &quot;primevideo&quot; ], &quot;outbound&quot;: &quot; Prime Video&quot; }\\\n    ]\\\n  }\\\n}\\\n</code></pre><div style=\\\"display:block; animation:0s ease 0s 1 normal none running none; box-sizing:border-box;\\\">\\\n    <span style=\\\"box-sizing:border-box;font-size:14px;font-weight:500;line-height:20px;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;appearance:none;transition:color 80ms cubic-bezier(0.33, 1, 0.68, 1) 0s, background-color, box-shadow, border-color;border:0px;border-radius:6px;color:rgb(9, 105, 218);background-color:transparent;box-shadow:none;position:relative;width:28px;height:28px;justify-content:center;align-items:center;margin:8px;padding:0px;display:flex;\\\">\\\n      <img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-copy js-clipboard-copy-icon js-evernote-checked' data-evernote-id='1058'%3e %3cpath d='M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z' data-evernote-id='2076' class='js-evernote-checked'%3e%3c/path%3e%3cpath d='M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z' data-evernote-id='2077' class='js-evernote-checked'%3e%3c/path%3e %3c/svg%3e\\\" style=\\\"box-sizing:border-box;display:inline-block;fill:currentcolor;margin-right:4px;color:rgb(99, 108, 118);vertical-align:text-bottom;overflow:visible;\\\"></img>\\\n      <img src=\\\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' height='16' viewBox='0 0 16 16' version='1.1' width='16' data-view-component='true' class='octicon octicon-check js-clipboard-check-icon color-fg-success d-none js-evernote-checked' data-evernote-id='1059'%3e %3cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z' data-evernote-id='2078' class='js-evernote-checked'%3e%3c/path%3e %3c/svg%3e\\\" style=\\\"box-sizing:border-box;fill:currentcolor;margin-right:4px;vertical-align:text-bottom;overflow:visible;color:rgb(9, 105, 218);display:none;\\\"></img>\\\n    </span>\\\n  </div></div>\\\n<span style=\\\"font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Noto Sans, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;font-size:16px;line-height:1.5;display:table;clear:both;\\\"></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></span></div></span></span></div></div></div></div></div></div>\\\n</div>\\\n</span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":107137}]"
metadata_diff: {"new":{"id":"eb4107b2e6d34ae781baec0a601703aa","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345780852,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:20:15.914Z
created_time: 2025-11-28T16:20:15.914Z
type_: 13