{"id":317,"date":"2025-09-06T08:28:44","date_gmt":"2025-09-06T01:28:44","guid":{"rendered":"https:\/\/byso.top\/?p=317"},"modified":"2025-09-06T08:28:44","modified_gmt":"2025-09-06T01:28:44","slug":"%e5%ae%89%e8%a3%85%e5%b9%b6%e9%85%8d%e7%bd%aevlessreality%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/byso.top\/?p=317","title":{"rendered":"\u5b89\u88c5\u5e76\u914d\u7f6eVLESS+REALITY\u670d\u52a1\u5668"},"content":{"rendered":"\n<p>apt update &amp;&amp; apt upgrade -y<\/p>\n\n\n\n<p>apt install -y curl wget<\/p>\n\n\n\n<p><strong>#\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u4e0b\u8f7d\u5e76\u8fd0\u884c Xray-core \u7684\u5b98\u65b9\u5b89\u88c5\u811a\u672c\uff1a<\/strong><br>bash -c &#8220;$(curl -L https:\/\/github.com\/XTLS\/Xray-install\/raw\/main\/install-release.sh)&#8221; @ install<\/p>\n\n\n\n<p><strong>#\u4f7f\u7528\u00a0xray uuid\u00a0\u547d\u4ee4\u751f\u6210\u4e00\u4e2a UUID\uff0c\u5e76\u59a5\u5584\u4fdd\u7ba1\u597d\u5b83\u3002<br><\/strong><code>\/usr\/local\/bin\/xray uuid<\/code><\/p>\n\n\n\n<p><strong>#\u4f7f\u7528\u00a0xray x25519\u00a0\u547d\u4ee4\u751f\u6210\u4e00\u5bf9\u5bc6\u94a5\u3002\u8f93\u51fa\u7684\u7b2c\u4e00\u884c\u662f\u79c1\u94a5\uff08private key\uff09\uff0c\u7b2c\u4e8c\u884c\u662f\u516c\u94a5\uff08public key\uff09\u3002\u8bf7\u52a1\u5fc5\u5c06\u5b83\u4eec\u90fd\u8bb0\u5f55\u4e0b\u6765<\/strong><br>\/usr\/local\/bin\/xray x25519<\/p>\n\n\n\n<p><strong>#REALITY \u7684\u6838\u5fc3\u5728\u4e8e\u5c06\u6d41\u91cf\u4f2a\u88c5\u6210\u5bf9\u53e6\u4e00\u4e2a\u771f\u5b9e\u7f51\u7ad9\u7684\u8bbf\u95ee\u3002\u56e0\u6b64\uff0c\u9009\u62e9\u4e00\u4e2a\u5408\u9002\u7684\u76ee\u6807\u7f51\u7ad9\u81f3\u5173\u91cd\u8981<br><\/strong>curl -I &#8211;tlsv1.3 &#8211;http2 https:\/\/www.cloudflare.com<\/p>\n\n\n\n<p><strong>#\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982\u00a0nano\uff09\u6253\u5f00 Xray \u7684\u914d\u7f6e\u6587\u4ef6<br><\/strong>vim \/usr\/local\/etc\/xray\/config.json<\/p>\n\n\n\n<p><strong>#\u5c06\u6587\u4ef6\u5185\u7684\u6240\u6709\u5185\u5bb9\u5220\u9664\uff0c\u7136\u540e\u590d\u5236\u5e76\u7c98\u8d34\u4ee5\u4e0b\u914d\u7f6e\u6a21\u677f\u3002\u8bf7\u52a1\u5fc5\u6839\u636e\u6ce8\u91ca<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"log\": {\n    \"loglevel\": \"warning\"\n  },\n  \"inbounds\": &#91;\n    {\n      \"listen\": \"0.0.0.0\",\n      \"port\": 443, \/\/ \u5efa\u8bae\u4f7f\u7528 443 \u7aef\u53e3\n      \"protocol\": \"vless\",\n      \"settings\": {\n        \"clients\": &#91;\n          {\n            \"id\": \"\u6b64\u5904\u66ff\u6362\u4e3a\u60a8\u7684 UUID\", \/\/ \u5fc5\u586b\n            \"flow\": \"xtls-rprx-vision\"\n          }\n        ],\n        \"decryption\": \"none\"\n      },\n      \"streamSettings\": {\n        \"network\": \"tcp\",\n        \"security\": \"reality\",\n        \"realitySettings\": {\n          \"show\": false,\n          \"dest\": \"www.microsoft.com:443\", \/\/ \u5fc5\u586b\uff1a\u66ff\u6362\u4e3a\u60a8\u9009\u62e9\u7684\u76ee\u6807\u7f51\u7ad9\u548c\u7aef\u53e3\n          \"xver\": 0,\n          \"serverNames\": &#91;\n            \"www.microsoft.com\" \/\/ \u5fc5\u586b\uff1a\u66ff\u6362\u4e3a\u60a8\u9009\u62e9\u7684\u76ee\u6807\u7f51\u7ad9\u57df\u540d\n          ],\n          \"privateKey\": \"\u6b64\u5904\u66ff\u6362\u4e3a\u60a8\u7684\u79c1\u94a5\", \/\/ \u5fc5\u586b\n          \"minClientVer\": \"\",\n          \"maxClientVer\": \"\",\n          \"maxTimeDiff\": 60000,\n          \"shortIds\": &#91;\n            \"\" \/\/ \u53ef\u9009\uff1a\u7559\u7a7a\u6216\u586b\u5199\u81ea\u5b9a\u4e49\u77ed ID\n          ]\n        }\n      }\n    }\n  ],\n  \"outbounds\": &#91;\n    {\n      \"protocol\": \"freedom\",\n      \"tag\": \"direct\"\n    },\n    {\n      \"protocol\": \"blackhole\",\n      \"tag\": \"block\"\n    }\n  ]\n}<\/code><\/pre>\n\n\n\n<p><strong>#\u914d\u7f6e\u9632\u706b\u5899<\/strong><br>ufw allow 443\/tcp<br>ufw status<\/p>\n\n\n\n<p><strong>#\u91cd\u542f Xray \u670d\u52a1\u4ee5\u52a0\u8f7d\u65b0\u7684\u914d\u7f6e<br><\/strong>systemctl restart xray<br>systemctl status xray<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>apt update &amp;&amp; apt upgrade -y apt install -y cur [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-317","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/byso.top\/index.php?rest_route=\/wp\/v2\/posts\/317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byso.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byso.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byso.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byso.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=317"}],"version-history":[{"count":1,"href":"https:\/\/byso.top\/index.php?rest_route=\/wp\/v2\/posts\/317\/revisions"}],"predecessor-version":[{"id":318,"href":"https:\/\/byso.top\/index.php?rest_route=\/wp\/v2\/posts\/317\/revisions\/318"}],"wp:attachment":[{"href":"https:\/\/byso.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byso.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byso.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}