{"slug":"record","title":"记录","description":"一些记录，不定时更新","coverImage":"https://b.acofork.com/img/record-record.webp","coverWidth":1200,"coverHeight":900,"date":"1998-12-31","tags":["杂谈"],"pinned":false,"wordCount":1492,"html":"<h2 id=\"zt重置设备id\">zt重置设备ID</h2><p>在 ZeroTier 中，如果你通过克隆 VM 或复制系统镜像导致 设备 ID（Node ID）重复，需要重置设备 ID。ZeroTier 的设备 ID 是基于本机生成的私钥，无法在软件内直接修改，但可以通过以下方法重置：</p>\n<p>方法 1：在 Linux / Debian 上重置</p>\n<p>停止 ZeroTier 服务：</p>\n<div class=\"markdown-code\" data-language=\"shell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>shell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-shell\"><span class=\"hljs-built_in\">sudo</span> systemctl stop zerotier-one</code></pre></div><p>删除本地身份文件（Node ID）：</p>\n<div class=\"markdown-code\" data-language=\"shell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>shell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-shell\"><span class=\"hljs-built_in\">sudo</span> <span class=\"hljs-built_in\">rm</span> -rf /var/lib/zerotier-one/identity.*</code></pre></div><p>注意：identity.* 文件包含你的 Node ID，如果删除，ZeroTier 会生成新的 Node ID。</p>\n<p>启动 ZeroTier 服务：</p>\n<div class=\"markdown-code\" data-language=\"shell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>shell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-shell\"><span class=\"hljs-built_in\">sudo</span> systemctl start zerotier-one</code></pre></div><h2 id=\"r2-py所需依赖\">r2.py所需依赖</h2><div class=\"markdown-code\" data-language=\"shell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>shell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-shell\">pip install keyboard pyperclip pillow boto3 pyautogui</code></pre></div><h2 id=\"shellclash\">ShellClash</h2><blockquote>\n<p>用于在Linux上使用CLI来进行正向代理。通过导入标准的Clash <code>config.yaml</code> 来实现</p>\n</blockquote>\n<p><a href=\"https://github.com/juewuy/ShellCrash\" target=\"_blank\" rel=\"noopener noreferrer\">https://github.com/juewuy/ShellCrash</a></p>\n<p>Tg通知频道：<a href=\"https://t.me/ShellClash\" target=\"_blank\" rel=\"noopener noreferrer\">https://t.me/ShellClash</a></p>\n<div class=\"markdown-code\" data-language=\"shell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>shell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-shell\">bash -c <span class=\"hljs-string\">\"<span class=\"hljs-subst\">$(curl -kfsSl https://r2.072103.xyz/shellclash.sh)</span>\"</span> &amp;&amp; <span class=\"hljs-built_in\">source</span> /etc/profile &amp;&gt; /dev/null</code></pre></div><p>打开CLI：clash、crash\n导入配置文件：6-2\n安装本地Web面板：9-4-1\n开机自启：4-1</p>\n<h2 id=\"vless通用配置-不加密\">Vless通用配置（不加密）</h2><div class=\"markdown-code\" data-language=\"json\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1\"></path><path d=\"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 0-2-2V5a2 2 0 0 0-2-2h-1\"></path></svg><span>json</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-json\"><span class=\"hljs-punctuation\">{</span>\n  <span class=\"hljs-attr\">\"inbounds\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">[</span>\n    <span class=\"hljs-punctuation\">{</span>\n      <span class=\"hljs-attr\">\"port\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-number\">1080</span><span class=\"hljs-punctuation\">,</span>  <span class=\"hljs-comment\">// 监听端口，可以根据需要修改</span>\n      <span class=\"hljs-attr\">\"protocol\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">\"vless\"</span><span class=\"hljs-punctuation\">,</span>  <span class=\"hljs-comment\">// 使用 VLESS 协议</span>\n      <span class=\"hljs-attr\">\"settings\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">{</span>\n        <span class=\"hljs-attr\">\"clients\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">[</span>\n          <span class=\"hljs-punctuation\">{</span>\n            <span class=\"hljs-attr\">\"id\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">\"0721-07210721onani\"</span><span class=\"hljs-punctuation\">,</span>  <span class=\"hljs-comment\">// 这里是一个 UUID，用于识别用户</span>\n            <span class=\"hljs-attr\">\"level\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-number\">0</span><span class=\"hljs-punctuation\">,</span>  <span class=\"hljs-comment\">// 用户等级，设置为 0 表示普通用户</span>\n            <span class=\"hljs-attr\">\"email\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">\"user@example.com\"</span>  <span class=\"hljs-comment\">// 用户邮箱（可选）</span>\n          <span class=\"hljs-punctuation\">}</span>\n        <span class=\"hljs-punctuation\">]</span><span class=\"hljs-punctuation\">,</span>\n        <span class=\"hljs-attr\">\"decryption\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">\"none\"</span>  <span class=\"hljs-comment\">// 设置为 none，表示没有加密</span>\n      <span class=\"hljs-punctuation\">}</span><span class=\"hljs-punctuation\">,</span>\n      <span class=\"hljs-attr\">\"streamSettings\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">{</span>\n        <span class=\"hljs-attr\">\"network\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">\"tcp\"</span><span class=\"hljs-punctuation\">,</span>  <span class=\"hljs-comment\">// 使用 TCP 网络</span>\n        <span class=\"hljs-attr\">\"security\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">\"none\"</span>  <span class=\"hljs-comment\">// 不使用加密，适用于 VLESS</span>\n      <span class=\"hljs-punctuation\">}</span>\n    <span class=\"hljs-punctuation\">}</span>\n  <span class=\"hljs-punctuation\">]</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">\"outbounds\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">[</span>\n    <span class=\"hljs-punctuation\">{</span>\n      <span class=\"hljs-attr\">\"protocol\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">\"freedom\"</span><span class=\"hljs-punctuation\">,</span>  <span class=\"hljs-comment\">// 允许自由流量通过</span>\n      <span class=\"hljs-attr\">\"settings\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">{</span><span class=\"hljs-punctuation\">}</span>\n    <span class=\"hljs-punctuation\">}</span>\n  <span class=\"hljs-punctuation\">]</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">\"routing\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">{</span>\n    <span class=\"hljs-attr\">\"rules\"</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">[</span><span class=\"hljs-punctuation\">]</span>\n  <span class=\"hljs-punctuation\">}</span>\n<span class=\"hljs-punctuation\">}</span></code></pre></div><hr />\n<h2 id=\"amd笔记本优化\">AMD笔记本优化</h2><blockquote>\n<p>目标：关闭fTPM并且禁止系统重新安装、关闭Windows自动更新</p>\n</blockquote>\n<ul>\n<li>关闭fTPM： 组策略编辑器：<code>计算机配置 - 管理模板 - 系统 - 设备安装 - 设备安装限制 - 阻止安装与下列任何设备实例 ID 相匹配的设备</code> 填写：设备管理器中的<strong>受信任的平台模块 2.0</strong> 的<code>详细信息 - 设备实例路径</code>中的值</li>\n<li>关闭Windows自动更新：<code>计算机配置 - 管理模板 - Windows组件 - Windows更新</code>中的：<ul>\n<li>配置自动更新 - 已禁用</li>\n<li>删除所有使用Windows更新功能的访问权限 - 已启用</li>\n<li>不要连接任何Windows更新Internet位置 - 已启用</li>\n<li>Windows更新不包括驱动更新 - 已启用</li>\n</ul>\n</li>\n</ul>\n<hr />\n<h2 id=\"vps融合怪测试脚本\">VPS融合怪测试脚本</h2><div class=\"markdown-code\" data-language=\"shell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>shell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-shell\">bash &lt;(curl -sL kejilion.sh)</code></pre></div><ul>\n<li>融合怪测试：8-32</li>\n<li>IP纯净度测试：8-4</li>\n</ul>\n<hr />\n<h2 id=\"哪吒探针cloudflare版\">哪吒探针Cloudflare版</h2><p><a href=\"https://github.com/yumusb/nezha-new\" target=\"_blank\" rel=\"noopener noreferrer\">https://github.com/yumusb/nezha-new</a></p>\n<hr />\n<h2 id=\"vps一键魔法脚本\">VPS一键魔法脚本</h2><ul>\n<li><p>Hysteria2（UDP）：</p>\n<div class=\"markdown-code\" data-language=\"shell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>shell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-shell\">bash &lt;(curl -fsSL https://raw.githubusercontent.com/0x0129/hysteria2/main/install.sh) -port 0721</code></pre></div></li>\n<li><p>Vless+Trojan+Shadowsocks：</p>\n<div class=\"markdown-code\" data-language=\"shell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>shell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-shell\">bash &lt;(curl -s -L https://git.io/v2ray.sh)</code></pre></div></li>\n<li><p>x-ui：</p>\n<div class=\"markdown-code\" data-language=\"shell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>shell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-shell\">bash &lt;(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)</code></pre></div></li>\n</ul>\n<hr />\n<h2 id=\"hysteria2-服务端搭建-全平台通用\">Hysteria2 服务端搭建（全平台通用）</h2><ol>\n<li><p>下载 Hysteria2 可执行文件： <a href=\"https://github.com/apernet/hysteria/releases\" target=\"_blank\" rel=\"noopener noreferrer\">https://github.com/apernet/hysteria/releases</a></p>\n</li>\n<li><p>创建自签名SSL/TLS证书：</p>\n<ul>\n<li>创建私钥：<code>openssl genpkey -algorithm RSA -out hy2.key</code></li>\n<li>创建证书签名请求：<code>openssl req -new -key hy2.key -out hy2.csr</code></li>\n<li>创建证书：<code>openssl x509 -req -in hy2.csr -signkey hy2.key -out hy2.crt -days 9999</code></li>\n</ul>\n</li>\n<li><p><code>config.yaml</code>：</p>\n</li>\n</ol>\n<div class=\"markdown-code\" data-language=\"yaml\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\"></path><path d=\"M14 2v5a1 1 0 0 0 1 1h5\"></path><path d=\"M10 9H8\"></path><path d=\"M16 13H8\"></path><path d=\"M16 17H8\"></path></svg><span>yaml</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-yaml\"><span class=\"hljs-attr\">listen:</span> <span class=\"hljs-string\">:443</span> \n\n<span class=\"hljs-attr\">tls:</span>\n  <span class=\"hljs-attr\">cert:</span> <span class=\"hljs-string\">hy2.crt</span> \n  <span class=\"hljs-attr\">key:</span> <span class=\"hljs-string\">hy2.key</span> \n\n<span class=\"hljs-attr\">auth:</span>\n  <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">password</span>\n  <span class=\"hljs-attr\">password:</span> <span class=\"hljs-number\">0721</span>\n\n<span class=\"hljs-attr\">masquerade:</span> \n  <span class=\"hljs-attr\">type:</span> <span class=\"hljs-string\">proxy</span>\n  <span class=\"hljs-attr\">proxy:</span>\n    <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">https://news.ycombinator.com/</span> \n    <span class=\"hljs-attr\">rewriteHost:</span> <span class=\"hljs-literal\">true</span></code></pre></div><ol>\n<li><p>启动 Hysteria2参数：<code>server</code></p>\n</li>\n<li><p>V2Ray客户端连接直链：</p>\n<div class=\"markdown-code\" data-language=\"shell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>shell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-shell\">hysteria2://0721@10.147.17.1:443?sni=bing.com&amp;insecure=1#家里云</code></pre></div></li>\n</ol>\n<hr />\n<h2 id=\"cloudflare一键魔法\">Cloudflare一键魔法</h2><p>下载 <a href=\"https://github.com/cmliu/edgetunnel/archive/refs/heads/main.zip\" target=\"_blank\" rel=\"noopener noreferrer\">https://github.com/cmliu/edgetunnel/archive/refs/heads/main.zip</a> 将它上传到Cloudflare Pages设置UUID。访问 https://你的域名.pages.dev/UUID</p>\n<hr />\n<h2 id=\"cloudflare-优选方法\">Cloudflare 优选方法</h2><h4 id=\"a-aaaa-cname\">A、AAAA、CNAME</h4><ol>\n<li>B域名直接套CDN指向源站</li>\n<li>B域名开启SaaS，设置回退源为指向源站的域名，自定义主机名为A域名</li>\n<li>B域名指向优选域名，不套CDN</li>\n<li>A域名指向B域名指向的优选域名的域名 ，不套CDN</li>\n</ol>\n<h4 id=\"cloudflare-pages\">Cloudflare Pages</h4><ol>\n<li>直接在Pages创建自定义域</li>\n<li>更改子域NS到阿里云云解析DNS</li>\n<li>在阿里云云解析DNS设置解析分流</li>\n</ol>\n<h4 id=\"cloudflare-workers\">Cloudflare Workers</h4><ol>\n<li>直接在Workers创建路由，如：example.com/*</li>\n<li>将被设置路由的域名解析到优选域名</li>\n</ol>\n<hr />\n<h3 id=\"cloudflare-优选域名\">Cloudflare 优选域名</h3><p>二叉树树自用： fenliu.072103.xyz</p>\n<p><img src=\"https://b.acofork.com/img/record-0cfff651-0590-4700-81f4-79c9e576c38d.webp\" alt=\"\" width=\"1241\" height=\"849\" loading=\"eager\" decoding=\"async\" /></p>\n<p><a href=\"https://blog.cmliussss.com/\" target=\"_blank\" rel=\"noopener noreferrer\">CM大佬</a>： cf.090227.xyz<img src=\"https://b.acofork.com/img/record-8f2ac2b4-b5b7-4d9e-8d80-103181e975a9.webp\" alt=\"\" width=\"991\" height=\"845\" loading=\"lazy\" decoding=\"async\" /></p>\n<p><a href=\"https://www.wetest.vip/page/cloudflare/cname.html\" target=\"_blank\" rel=\"noopener noreferrer\">微测网</a>：cloudflare.182682.xyz</p>\n<p><img src=\"https://b.acofork.com/img/record-1b8b0adb-f3bc-4513-814e-4f20529a86cf.webp\" alt=\"\" width=\"991\" height=\"875\" loading=\"lazy\" decoding=\"async\" /></p>\n<hr />\n<h2 id=\"魔法软件\">魔法软件</h2><p>Windows：</p>\n<p><a href=\"https://github.com/2dust/v2rayN\" target=\"_blank\" rel=\"noopener noreferrer\">https://github.com/2dust/v2rayN</a></p>\n<p>Linux：</p>\n<p><a href=\"https://github.com/2dust/v2rayNG\" target=\"_blank\" rel=\"noopener noreferrer\">https://github.com/2dust/v2rayNG</a></p>\n<hr />\n<h2 id=\"使用cloudflared中继rdp流量\">使用Cloudflared中继RDP流量</h2><div class=\"markdown-code\" data-language=\"shell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>shell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-shell\">cloudflared access rdp --hostname rdp.onani.cn --url rdp://localhost:3380</code></pre></div><hr />\n<h2 id=\"frp相关\">FRP相关</h2><h4 id=\"frp基本认证参数\">FRP基本认证参数</h4><div class=\"markdown-code\" data-language=\"yaml\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\"></path><path d=\"M14 2v5a1 1 0 0 0 1 1h5\"></path><path d=\"M10 9H8\"></path><path d=\"M16 13H8\"></path><path d=\"M16 17H8\"></path></svg><span>yaml</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-yaml\"><span class=\"hljs-string\">auth.token</span> <span class=\"hljs-string\">=</span> <span class=\"hljs-string\">\"07210721\"</span></code></pre></div><h4 id=\"frp-systemd服务配置-开机自启\">FRP systemd服务配置（开机自启）</h4><p><a href=\"https://gofrp.org/zh-cn/docs/setup/systemd/\" target=\"_blank\" rel=\"noopener noreferrer\">https://gofrp.org/zh-cn/docs/setup/systemd/</a></p>\n<h2 id=\"linux-deb系安装speedtest-cli\">Linux Deb系安装Speedtest-cli</h2><div class=\"markdown-code\" data-language=\"shell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>shell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-shell\">apt install -y lsb-release ca-certificates apt-transport-https curl gnupg dpkg\ncurl -sSL https://packagecloud.io/ookla/speedtest-cli/gpgkey | gpg --dearmor &gt; /usr/share/keyrings/speedtest.gpg\n<span class=\"hljs-built_in\">echo</span> <span class=\"hljs-string\">\"deb [arch=<span class=\"hljs-subst\">$(dpkg --print-architecture)</span> signed-by=/usr/share/keyrings/speedtest.gpg] https://packagecloud.io/ookla/speedtest-cli/debian/ <span class=\"hljs-subst\">$(lsb_release -sc)</span> main\"</span> &gt; /etc/apt/sources.list.d/speedtest.list\n\napt update\napt install -y speedtest</code></pre></div><hr />\n<h2 id=\"linux监控面版\">Linux监控面版：</h2><div class=\"markdown-code\" data-language=\"shell\"><div class=\"markdown-code-header\"><span class=\"markdown-code-language\"><svg class=\"code-language-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 19h8\"></path><path d=\"m4 17 6-6-6-6\"></path></svg><span>shell</span></span><button type=\"button\" class=\"code-block-copy\" aria-label=\"复制代码\" title=\"复制代码\"><svg class=\"code-block-copy-icon\" aria-hidden=\"true\" width=\"16\" height=\"16\" viewbox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"></rect><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"></path></svg></button></div><pre><code class=\"hljs language-shell\">apt install s-tui</code></pre></div><hr />\n<h2 id=\"windows超级牛逼包管理器-https-scoop-sh\">Windows超级牛逼包管理器：<a href=\"https://scoop.sh\" target=\"_blank\" rel=\"noopener noreferrer\">https://scoop.sh</a></h2><hr />\n<h2 id=\"linux各发行版安装注意\">Linux各发行版安装注意</h2><ol>\n<li>非常新的版本一般才会有Realtek有线网卡的驱动</li>\n<li>安装Debian要使用CLI安装（GUI安装会出现问题 <del>具体的问题我忘了</del>）</li>\n<li>安装CentOS/Rocky一定要先安装GUI，否则会导致上不了网</li>\n<li>除了Arch连接网络使用iwd，其他发行版都可以用nmcli连接网络</li>\n</ol>\n<hr />\n<h2 id=\"国内linux镜像注意事项\">国内Linux镜像注意事项</h2><ol>\n<li><del>USTC（中科大源）经常会用JavaScript进行客户端验证，会导致wget和curl命令无法正确下载到文件</del><a href=\"/posts/bypass-ustc-verifying/\">绕过USTC的浏览器JS验证 | AcoFork Blog</a>。建议使用TUNA（清华源）</li>\n</ol>\n<hr />\n<h2 id=\"国内docker镜像\">国内Docker镜像</h2><ul>\n<li>1Panel Docker监控：<a href=\"https://status.1panel.top/status/docker\" target=\"_blank\" rel=\"noopener noreferrer\">https://status.1panel.top/status/docker</a></li>\n<li>南京大学GHCR镜像源：<a href=\"https://ghcr.nju.edu.cn\" target=\"_blank\" rel=\"noopener noreferrer\">https://ghcr.nju.edu.cn</a></li>\n</ul>\n<hr />\n<h2 id=\"安徽财贸职业学院教务学生正确入口-课表导入\">安徽财贸职业学院教务学生正确入口（课表导入）</h2><p><a href=\"https://authserver.afc.edu.cn/authserver/login\" target=\"_blank\" rel=\"noopener noreferrer\">https://authserver.afc.edu.cn/authserver/login</a></p>\n","toc":[{"id":"zt重置设备id","text":"zt重置设备ID","depth":2},{"id":"r2-py所需依赖","text":"r2.py所需依赖","depth":2},{"id":"shellclash","text":"ShellClash","depth":2},{"id":"vless通用配置-不加密","text":"Vless通用配置（不加密）","depth":2},{"id":"amd笔记本优化","text":"AMD笔记本优化","depth":2},{"id":"vps融合怪测试脚本","text":"VPS融合怪测试脚本","depth":2},{"id":"哪吒探针cloudflare版","text":"哪吒探针Cloudflare版","depth":2},{"id":"vps一键魔法脚本","text":"VPS一键魔法脚本","depth":2},{"id":"hysteria2-服务端搭建-全平台通用","text":"Hysteria2 服务端搭建（全平台通用）","depth":2},{"id":"cloudflare一键魔法","text":"Cloudflare一键魔法","depth":2},{"id":"cloudflare-优选方法","text":"Cloudflare 优选方法","depth":2},{"id":"a-aaaa-cname","text":"A、AAAA、CNAME","depth":4},{"id":"cloudflare-pages","text":"Cloudflare Pages","depth":4},{"id":"cloudflare-workers","text":"Cloudflare Workers","depth":4},{"id":"cloudflare-优选域名","text":"Cloudflare 优选域名","depth":3},{"id":"魔法软件","text":"魔法软件","depth":2},{"id":"使用cloudflared中继rdp流量","text":"使用Cloudflared中继RDP流量","depth":2},{"id":"frp相关","text":"FRP相关","depth":2},{"id":"frp基本认证参数","text":"FRP基本认证参数","depth":4},{"id":"frp-systemd服务配置-开机自启","text":"FRP systemd服务配置（开机自启）","depth":4},{"id":"linux-deb系安装speedtest-cli","text":"Linux Deb系安装Speedtest-cli","depth":2},{"id":"linux监控面版","text":"Linux监控面版：","depth":2},{"id":"windows超级牛逼包管理器-https-scoop-sh","text":"Windows超级牛逼包管理器：https://scoop.sh","depth":2},{"id":"linux各发行版安装注意","text":"Linux各发行版安装注意","depth":2},{"id":"国内linux镜像注意事项","text":"国内Linux镜像注意事项","depth":2},{"id":"国内docker镜像","text":"国内Docker镜像","depth":2},{"id":"安徽财贸职业学院教务学生正确入口-课表导入","text":"安徽财贸职业学院教务学生正确入口（课表导入）","depth":2}]}