{"id":1963,"date":"2026-06-19T13:16:18","date_gmt":"2026-06-19T05:16:18","guid":{"rendered":"https:\/\/blog.ttwow.top\/?p=1963"},"modified":"2026-06-19T21:14:37","modified_gmt":"2026-06-19T13:14:37","slug":"debian-12-xray-vless-reality-vision-%e5%ae%9e%e6%88%98%e9%83%a8%e7%bd%b2","status":"publish","type":"post","link":"https:\/\/blog.ttwow.top\/?p=1963","title":{"rendered":"Debian 12 + Xray + VLESS + Reality + Vision \u5b9e\u6218\u90e8\u7f72"},"content":{"rendered":"<p>\u4e0b\u9762\u662f\u6574\u7406\u597d\u7684 <strong>\u53ef\u76f4\u63a5\u4fdd\u5b58\u4f7f\u7528\u7684 Markdown \u6587\u6863\uff08Debian 12 + Xray + VLESS + Reality + BBR \u5b8c\u6574\u5b9e\u6218\uff09<\/strong>\uff1a<\/p>\n<hr \/>\n<pre><code class=\"language-md\"># Debian 12 + Xray + VLESS + Reality + Vision \u5b9e\u6218\u90e8\u7f72\n\n\u9002\u7528\u4e8e\uff1a\n- 1C512M VPS\uff08\u642c\u74e6\u5de5 \/ RackNerd \/ Vultr \u7b49\uff09\n- \u65e0\u9700\u57df\u540d \/ \u65e0\u9700\u8bc1\u4e66 \/ \u65e0\u9700 Nginx\n- \u8ffd\u6c42\u4f4e\u5185\u5b58 + \u9ad8\u7a33\u5b9a\u6027\n\n---\n\n# 1. \u7cfb\u7edf\u66f4\u65b0\n\n```bash\napt update &amp;&amp; apt upgrade -y\n\napt install -y curl wget unzip vim sudo cron net-tools lsof openssl<\/code><\/pre>\n<hr \/>\n<h1>2. \u5f00\u542f BBR\uff08TCP \u52a0\u901f\uff09<\/h1>\n<h2>\u68c0\u67e5\u662f\u5426\u652f\u6301<\/h2>\n<pre><code class=\"language-bash\">sysctl net.ipv4.tcp_available_congestion_control<\/code><\/pre>\n<h2>\u5f00\u542f BBR<\/h2>\n<pre><code class=\"language-bash\">cat &gt;&gt; \/etc\/sysctl.conf &lt;&lt; EOF\n\nnet.core.default_qdisc=fq\nnet.ipv4.tcp_congestion_control=bbr\nEOF<\/code><\/pre>\n<p>\u751f\u6548\uff1a<\/p>\n<pre><code class=\"language-bash\">sysctl -p<\/code><\/pre>\n<p>\u9a8c\u8bc1\uff1a<\/p>\n<pre><code class=\"language-bash\">sysctl net.ipv4.tcp_congestion_control\nlsmod | grep bbr<\/code><\/pre>\n<hr \/>\n<h1>3. \u5173\u95ed IPv6\uff08\u53ef\u9009\uff09<\/h1>\n<pre><code class=\"language-bash\">cat &gt; \/etc\/sysctl.d\/99-ipv6.conf &lt;&lt; EOF\nnet.ipv6.conf.all.disable_ipv6=1\nnet.ipv6.conf.default.disable_ipv6=1\nEOF\n\nsysctl --system<\/code><\/pre>\n<hr \/>\n<h1>4. \u5b89\u88c5 Xray-core<\/h1>\n<pre><code class=\"language-bash\">bash -c &quot;$(curl -L https:\/\/github.com\/XTLS\/Xray-install\/raw\/main\/install-release.sh)&quot;<\/code><\/pre>\n<p>\u9a8c\u8bc1\uff1a<\/p>\n<pre><code class=\"language-bash\">xray version<\/code><\/pre>\n<hr \/>\n<h1>5. \u751f\u6210\u5173\u952e\u53c2\u6570<\/h1>\n<h2>1\uff09UUID<\/h2>\n<pre><code class=\"language-bash\">xray uuid<\/code><\/pre>\n<hr \/>\n<h2>2\uff09Reality \u5bc6\u94a5<\/h2>\n<pre><code class=\"language-bash\">xray x25519<\/code><\/pre>\n<p>\u8f93\u51fa\uff1a<\/p>\n<pre><code>Private key: xxxx\nPublic key: xxxx<\/code><\/pre>\n<hr \/>\n<h2>3\uff09ShortId<\/h2>\n<pre><code class=\"language-bash\">openssl rand -hex 8<\/code><\/pre>\n<hr \/>\n<h1>6. \u914d\u7f6e Xray\uff08Reality + VLESS\uff09<\/h1>\n<pre><code class=\"language-bash\">vim \/usr\/local\/etc\/xray\/config.json<\/code><\/pre>\n<hr \/>\n<h2>\u914d\u7f6e\u5185\u5bb9<\/h2>\n<pre><code class=\"language-json\">{\n  &quot;log&quot;: {\n    &quot;loglevel&quot;: &quot;warning&quot;\n  },\n\n  &quot;inbounds&quot;: [\n    {\n      &quot;port&quot;: 8443,\n      &quot;protocol&quot;: &quot;vless&quot;,\n      &quot;settings&quot;: {\n        &quot;clients&quot;: [\n          {\n            &quot;id&quot;: &quot;UUID\u66ff\u6362\u8fd9\u91cc&quot;,\n            &quot;flow&quot;: &quot;xtls-rprx-vision&quot;\n          }\n        ],\n        &quot;decryption&quot;: &quot;none&quot;\n      },\n\n      &quot;streamSettings&quot;: {\n        &quot;network&quot;: &quot;tcp&quot;,\n        &quot;security&quot;: &quot;reality&quot;,\n\n        &quot;realitySettings&quot;: {\n          &quot;show&quot;: false,\n          &quot;dest&quot;: &quot;www.microsoft.com:443&quot;,\n          &quot;xver&quot;: 0,\n\n          &quot;serverNames&quot;: [\n            &quot;www.microsoft.com&quot;\n          ],\n\n          &quot;privateKey&quot;: &quot;PrivateKey\u66ff\u6362\u8fd9\u91cc&quot;,\n\n          &quot;shortIds&quot;: [\n            &quot;ShortId\u66ff\u6362\u8fd9\u91cc&quot;\n          ]\n        }\n      }\n    }\n  ],\n\n  &quot;outbounds&quot;: [\n    {\n      &quot;protocol&quot;: &quot;freedom&quot;\n    }\n  ]\n}<\/code><\/pre>\n<hr \/>\n<h1>7. \u914d\u7f6e\u68c0\u67e5<\/h1>\n<pre><code class=\"language-bash\">xray run -test -config \/usr\/local\/etc\/xray\/config.json<\/code><\/pre>\n<p>\u770b\u5230\uff1a<\/p>\n<pre><code>Configuration OK<\/code><\/pre>\n<p>\u8868\u793a\u6b63\u786e\u3002<\/p>\n<hr \/>\n<h1>8. \u542f\u52a8 Xray<\/h1>\n<pre><code class=\"language-bash\">systemctl enable xray\nsystemctl restart xray\nsystemctl status xray<\/code><\/pre>\n<hr \/>\n<h1>9. \u5f00\u653e\u7aef\u53e3\uff08UFW\uff09<\/h1>\n<pre><code class=\"language-bash\">apt install ufw -y\n\nufw allow 22\/tcp\nufw allow 8443\/tcp\n\nufw enable\nufw status<\/code><\/pre>\n<hr \/>\n<h1>10. \u68c0\u67e5\u76d1\u542c<\/h1>\n<pre><code class=\"language-bash\">ss -lntp | grep 8443<\/code><\/pre>\n<hr \/>\n<h1>11. \u5ba2\u6237\u7aef\u914d\u7f6e\uff08\u6838\u5fc3\u53c2\u6570\uff09<\/h1>\n<h2>VLESS + Reality<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u9879\u76ee<\/th>\n<th>\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5730\u5740<\/td>\n<td>VPS IP<\/td>\n<\/tr>\n<tr>\n<td>\u7aef\u53e3<\/td>\n<td>8443<\/td>\n<\/tr>\n<tr>\n<td>UUID<\/td>\n<td>\u670d\u52a1\u5668\u751f\u6210<\/td>\n<\/tr>\n<tr>\n<td>\u52a0\u5bc6<\/td>\n<td>none<\/td>\n<\/tr>\n<tr>\n<td>\u4f20\u8f93<\/td>\n<td>tcp<\/td>\n<\/tr>\n<tr>\n<td>Flow<\/td>\n<td>xtls-rprx-vision<\/td>\n<\/tr>\n<tr>\n<td>\u5b89\u5168<\/td>\n<td>reality<\/td>\n<\/tr>\n<tr>\n<td>SNI<\/td>\n<td><a href=\"http:\/\/www.microsoft.com\">www.microsoft.com<\/a><\/td>\n<\/tr>\n<tr>\n<td>Fingerprint<\/td>\n<td>chrome<\/td>\n<\/tr>\n<tr>\n<td>PublicKey<\/td>\n<td>x25519 \u516c\u94a5<\/td>\n<\/tr>\n<tr>\n<td>ShortId<\/td>\n<td>\u751f\u6210\u503c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h1>12. \u63a8\u8350\u5ba2\u6237\u7aef<\/h1>\n<h2>Windows<\/h2>\n<ul>\n<li>v2rayN<\/li>\n<\/ul>\n<h2>Android<\/h2>\n<ul>\n<li>v2rayNG<\/li>\n<\/ul>\n<h2>iOS<\/h2>\n<ul>\n<li>Shadowrocket<\/li>\n<\/ul>\n<hr \/>\n<h1>13. \u65e5\u5fd7\u67e5\u770b<\/h1>\n<pre><code class=\"language-bash\">journalctl -u xray -f<\/code><\/pre>\n<pre><code class=\"language-bash\">journalctl -u xray -n 100<\/code><\/pre>\n<hr \/>\n<h1>14. \u5e38\u89c1\u95ee\u9898<\/h1>\n<h2>\u274c \u8fde\u63a5\u5931\u8d25<\/h2>\n<p>\u68c0\u67e5\uff1a<\/p>\n<pre><code class=\"language-bash\">systemctl status xray<\/code><\/pre>\n<hr \/>\n<h2>\u274c \u7aef\u53e3\u4e0d\u901a<\/h2>\n<pre><code class=\"language-bash\">ss -lntp | grep 8443<\/code><\/pre>\n<hr \/>\n<h2>\u274c Cloudflare \u95ee\u9898<\/h2>\n<p>Reality \u5fc5\u987b\uff1a<\/p>\n<pre><code>DNS Only\uff08\u7070\u4e91\uff09<\/code><\/pre>\n<p>\u4e0d\u80fd\uff1a<\/p>\n<pre><code>Proxied\uff08\u6a59\u4e91\uff09<\/code><\/pre>\n<hr \/>\n<h2>\u274c \u63a8\u8350\u53c2\u6570<\/h2>\n<ul>\n<li>SNI\uff1a<code>www.microsoft.com<\/code><\/li>\n<li>Fingerprint\uff1a<code>chrome<\/code><\/li>\n<li>dest\uff1a<code>www.microsoft.com:443<\/code><\/li>\n<\/ul>\n<hr \/>\n<h1>15. \u5c0f\u5185\u5b58\u4f18\u5316\u5efa\u8bae<\/h1>\n<p>512MB VPS \u63a8\u8350\uff1a<\/p>\n<ul>\n<li>\u4e0d\u88c5 Docker<\/li>\n<li>\u4e0d\u88c5\u5b9d\u5854<\/li>\n<li>\u4e0d\u8dd1\u6570\u636e\u5e93<\/li>\n<li>\u4e0d\u5f00 IPv6\uff08\u53ef\u9009\uff09<\/li>\n<li>\u53ea\u8fd0\u884c Xray<\/li>\n<\/ul>\n<p>\u5185\u5b58\u5360\u7528\uff1a<\/p>\n<ul>\n<li>\u7cfb\u7edf\uff1a80~120MB<\/li>\n<li>Xray\uff1a10~30MB<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u9762\u662f\u6574\u7406\u597d\u7684 \u53ef\u76f4\u63a5\u4fdd\u5b58\u4f7f\u7528\u7684 Markdown \u6587\u6863\uff08Debian 12 + Xray + VLESS + [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[130],"tags":[161,162],"class_list":["post-1963","post","type-post","status-publish","format-standard","hentry","category-linux-ops","tag-debian","tag-reality"],"_links":{"self":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/1963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1963"}],"version-history":[{"count":1,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/1963\/revisions"}],"predecessor-version":[{"id":1964,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/1963\/revisions\/1964"}],"wp:attachment":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}