{"id":1421,"date":"2026-10-09T09:32:51","date_gmt":"2026-10-09T01:32:51","guid":{"rendered":"https:\/\/www.suannai.link\/blog\/xray%e6%a0%b8%e5%bf%83%e5%8a%9f%e8%83%bd%e4%bb%8b%e7%bb%8d%e9%85%8d%e7%bd%ae%e6%96%b9%e6%b3%95\/"},"modified":"2026-10-09T09:32:51","modified_gmt":"2026-10-09T01:32:51","slug":"xray%e6%a0%b8%e5%bf%83%e5%8a%9f%e8%83%bd%e4%bb%8b%e7%bb%8d%e9%85%8d%e7%bd%ae%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.suannai.link\/blog\/xray%e6%a0%b8%e5%bf%83%e5%8a%9f%e8%83%bd%e4%bb%8b%e7%bb%8d%e9%85%8d%e7%bd%ae%e6%96%b9%e6%b3%95\/","title":{"rendered":"Xray\u6838\u5fc3\u529f\u80fd\u4ecb\u7ecd\u914d\u7f6e\u65b9\u6cd5"},"content":{"rendered":"<p>Xray \u662f V2Ray \u9879\u76ee\u7684\u4e00\u4e2a\u9ad8\u6027\u80fd\u5206\u652f\uff0c\u65e8\u5728\u901a\u8fc7\u66f4\u9ad8\u6548\u7684\u5e95\u5c42\u67b6\u6784\u548c\u66f4\u4e30\u5bcc\u7684\u534f\u8bae\u652f\u6301\uff0c\u89e3\u51b3\u7f51\u7edc\u4f20\u8f93\u4e2d\u7684\u6027\u80fd\u74f6\u9888\u4e0e\u534f\u8bae\u517c\u5bb9\u6027\u95ee\u9898\u3002\u672c\u6587\u91cd\u70b9\u4ecb\u7ecd <a href=\"https:\/\/www.suannai.link\/blog\/xray%e5%b7%a5%e5%85%b7%e9%85%8d%e7%bd%ae%e6%96%b9%e6%b3%95%ef%bc%9a%e4%bb%8e%e6%a0%b8%e5%bf%83%e5%8e%9f%e7%90%86%e5%88%b0%e5%ae%a2%e6%88%b7%e7%ab%af%e5%ae%9e%e6%93%8d\/\" target=\"_blank\" rel=\"noopener\">Xray \u7684\u6838\u5fc3\u6280\u672f\u7279\u6027<\/a>\uff0c\u5e76\u8be6\u7ec6\u8bb2\u89e3\u5982\u4f55\u5c06\u5176\u4f5c\u4e3a\u670d\u52a1\u7aef\u6216\u5ba2\u6237\u7aef\u8fdb\u884c\u57fa\u7840\u914d\u7f6e\u3002\u7406\u89e3 Xray \u7684\u5e95\u5c42\u903b\u8f91\u6709\u52a9\u4e8e\u7528\u6237\u6b63\u786e\u90e8\u7f72\u4ee3\u7406\u8282\u70b9\uff0c\u907f\u514d\u56e0\u914d\u7f6e\u9519\u8bef\u5bfc\u81f4\u8fde\u63a5\u5931\u8d25\u6216\u6027\u80fd\u4e0b\u964d\u3002<\/p>\n<h2>Xray \u4e0e V2Ray \u7684\u6280\u672f\u5dee\u5f02<\/h2>\n<p>\u5728\u9009\u62e9\u4ee3\u7406\u6838\u5fc3\u65f6\uff0c\u7406\u89e3 Xray \u4e0e V2Ray \u7684\u533a\u522b\u81f3\u5173\u91cd\u8981\u3002Xray \u5e76\u975e\u7b80\u5355\u7684\u529f\u80fd\u53e0\u52a0\uff0c\u800c\u662f\u5bf9\u5e95\u5c42\u7f51\u7edc\u6808\u7684\u91cd\u6784\u3002<\/p>\n<p>\u9996\u5148\uff0cXray \u5b8c\u5168\u517c\u5bb9 V2Ray \u7684\u914d\u7f6e\u6587\u4ef6\u683c\u5f0f\uff08v2ray.json\uff09\u3002\u8fd9\u610f\u5473\u7740\u539f\u672c\u4e3a V2Ray \u7f16\u5199\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u65e0\u9700\u4fee\u6539\u5373\u53ef\u76f4\u63a5\u5728 Xray \u4e0a\u8fd0\u884c\u3002\u8fd9\u79cd\u5411\u540e\u517c\u5bb9\u6027\u964d\u4f4e\u4e86\u8fc1\u79fb\u6210\u672c\uff0c\u4f46\u4e24\u8005\u5728\u5e95\u5c42\u5b9e\u73b0\u4e0a\u5b58\u5728\u663e\u8457\u5dee\u5f02\u3002<\/p>\n<p>\u5176\u6b21\uff0cXray \u5f15\u5165\u4e86\u66f4\u9ad8\u6548\u7684\u4f20\u8f93\u534f\u8bae\u652f\u6301\u3002\u6700\u663e\u8457\u7684\u533a\u522b\u5728\u4e8e\u5bf9 WebSocket + TLS \u7b49\u5e38\u89c1\u6df7\u6dc6\u534f\u8bae\u7684\u4f18\u5316\uff0c\u4ee5\u53ca\u539f\u751f\u652f\u6301 XTLS\u3001REALITY \u7b49\u65b0\u578b\u4f20\u8f93\u673a\u5236\u3002\u8fd9\u4e9b\u673a\u5236\u65e8\u5728\u5bf9\u6297\u6df1\u5ea6\u5305\u68c0\u6d4b\uff08DPI\uff09\uff0c\u63d0\u9ad8\u8fde\u63a5\u5728\u590d\u6742\u7f51\u7edc\u73af\u5883\u4e0b\u7684\u53ef\u7528\u6027\u3002<\/p>\n<p>\u6700\u540e\uff0cXray \u5728\u6027\u80fd\u4e0a\u8fdb\u884c\u4e86\u591a\u6838\u5e76\u884c\u4f18\u5316\u3002\u5bf9\u4e8e\u9ad8\u5e76\u53d1\u8fde\u63a5\u573a\u666f\uff0cXray \u901a\u5e38\u80fd\u8868\u73b0\u51fa\u66f4\u4f4e\u7684\u5ef6\u8fdf\u548c\u66f4\u9ad8\u7684\u541e\u5410\u91cf\u3002\u56e0\u6b64\uff0c\u5728\u8d44\u6e90\u53d7\u9650\u6216\u8ffd\u6c42\u6781\u81f4\u6027\u80fd\u7684\u573a\u666f\u4e0b\uff0cXray \u5f80\u5f80\u6bd4\u4f20\u7edf V2Ray \u66f4\u5177\u4f18\u52bf\u3002<\/p>\n\n<h2>Xray \u7684\u6838\u5fc3\u534f\u8bae\u652f\u6301<\/h2>\n<p>Xray \u7684\u5f3a\u5927\u4e4b\u5904\u5728\u4e8e\u5176\u5185\u7f6e\u7684\u591a\u79cd\u534f\u8bae\u5f15\u64ce\u3002\u7528\u6237\u53ef\u4ee5\u6839\u636e\u7f51\u7edc\u73af\u5883\u548c\u9700\u6c42\uff0c\u7075\u6d3b\u9009\u62e9\u6700\u5408\u9002\u7684\u4f20\u8f93\u5c42\u534f\u8bae\u3002<\/p>\n<h3>VMess \u534f\u8bae\u7684\u6f14\u8fdb<\/h3>\n<p>VMess \u662f Xray \u6700\u57fa\u7840\u7684\u534f\u8bae\uff0c\u4e5f\u662f\u76ee\u524d\u5e94\u7528\u6700\u5e7f\u6cdb\u7684\u534f\u8bae\u4e4b\u4e00\u3002\u5b83\u901a\u8fc7\u52a8\u6001\u7aef\u53e3\u548c\u52a0\u5bc6\u5934\u4f2a\u88c5\uff0c\u6709\u6548\u89c4\u907f\u57fa\u4e8e\u7279\u5f81\u7684\u68c0\u6d4b\u3002Xray \u5bf9 VMess \u8fdb\u884c\u4e86\u4f18\u5316\uff0c\u652f\u6301\u66f4\u7075\u6d3b\u7684 UUID \u7ba1\u7406\u548c\u5bc6\u94a5\u66f4\u65b0\u673a\u5236\u3002<\/p>\n<p>\u5728\u914d\u7f6e VMess \u65f6\uff0c\u5173\u952e\u5728\u4e8e `alterId`\uff08\u5df2\u9010\u6e10\u88ab\u5bc6\u94a5\u7ba1\u7406\u53d6\u4ee3\uff09\u548c `security` \u5b57\u6bb5\u7684\u9009\u62e9\u3002\u73b0\u4ee3\u914d\u7f6e\u901a\u5e38\u63a8\u8350 `auto` \u6216 `aes-128-gcm`\uff0c\u4ee5\u786e\u4fdd\u517c\u5bb9\u6027\u4e0e\u5b89\u5168\u6027\u7684\u5e73\u8861\u3002<\/p>\n<h3>VLESS \u534f\u8bae\u7684\u4f18\u52bf<\/h3>\n<p>VLESS \u662f Xray \u56e2\u961f\u63a8\u51fa\u7684\u65b0\u4e00\u4ee3\u534f\u8bae\uff0c\u65e8\u5728\u89e3\u51b3 VMess \u534f\u8bae\u5934\u90e8\u5197\u4f59\u7684\u95ee\u9898\u3002VLESS \u53bb\u9664\u4e86\u590d\u6742\u7684\u52a0\u5bc6\u5934\uff0c\u4f7f\u5f97\u534f\u8bae\u7ed3\u6784\u66f4\u52a0\u8f7b\u91cf\u3002<\/p>\n<p>VLESS \u7684\u6838\u5fc3\u4f18\u52bf\u5728\u4e8e\u5176\u4e0e\u591a\u79cd\u4f20\u8f93\u65b9\u5f0f\u7684\u65e0\u7f1d\u7ed3\u5408\u3002\u7279\u522b\u662f\u5f53\u4e0e XTLS \u6216 REALITY \u7ed3\u5408\u65f6\uff0cVLESS \u80fd\u591f\u63d0\u4f9b\u63a5\u8fd1\u539f\u751f TCP \u7684\u6027\u80fd\uff0c\u540c\u65f6\u4fdd\u6301\u6781\u9ad8\u7684\u4f2a\u88c5\u80fd\u529b\u3002\u5bf9\u4e8e\u8ffd\u6c42\u4f4e\u5ef6\u8fdf\u548c\u9ad8\u7a33\u5b9a\u6027\u7684\u7528\u6237\uff0cVLESS \u662f\u9996\u9009\u534f\u8bae\u3002<\/p>\n<h3>\u5176\u4ed6\u5185\u7f6e\u534f\u8bae<\/h3>\n<p>\u9664\u4e86 VMess \u548c VLESS\uff0cXray \u8fd8\u5185\u7f6e\u4e86 SOCKS\u3001HTTP\u3001Shadowsocks \u548c Trojan \u7b49\u534f\u8bae\u3002<\/p>\n<table style=\"width:100%;border-collapse:collapse;margin:24px 0;\">\n<thead>\n<tr>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u534f\u8bae\u7c7b\u578b<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u4e3b\u8981\u7279\u70b9<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u9002\u7528\u573a\u666f<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">SOCKS<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u57fa\u7840\u4ee3\u7406\u534f\u8bae\uff0c\u652f\u6301 UDP<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u672c\u5730\u5e94\u7528\u4ee3\u7406\uff0c\u65e0\u9700\u52a0\u5bc6<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">HTTP<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u660e\u6587\u4f20\u8f93\uff0c\u6613\u88ab\u68c0\u6d4b<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u4ec5\u7528\u4e8e\u5185\u90e8\u6d4b\u8bd5\u6216\u975e\u654f\u611f\u73af\u5883<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">Shadowsocks<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u6210\u719f\u7a33\u5b9a\uff0c\u751f\u6001\u5e7f\u6cdb<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u517c\u5bb9\u65e7\u8bbe\u5907\uff0c\u8de8\u5e73\u53f0\u9700\u6c42\u9ad8<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">Trojan<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u4f2a\u88c5\u4e3a HTTPS\uff0c\u6297\u5c01\u9501\u80fd\u529b\u5f3a<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u9700\u8981\u9ad8\u9690\u853d\u6027\u7684\u751f\u4ea7\u73af\u5883<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<h2>\u670d\u52a1\u7aef\u914d\u7f6e\u8be6\u89e3<\/h2>\n<p>\u914d\u7f6e Xray \u670d\u52a1\u7aef\u662f\u90e8\u7f72\u4ee3\u7406\u7f51\u7edc\u7684\u57fa\u7840\u3002\u670d\u52a1\u7aef\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e `\/etc\/xray\/config.json`\uff08Linux \u73af\u5883\uff09\u6216\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684 `config.json`\u3002<\/p>\n<h3>\u57fa\u7840\u7ed3\u6784\u89e3\u6790<\/h3>\n<p>Xray \u7684\u914d\u7f6e\u6587\u4ef6\u91c7\u7528 JSON \u683c\u5f0f\uff0c\u4e3b\u8981\u7531 `log`\u3001`inbounds`\u3001`outbounds` \u548c `dns` \u7b49\u90e8\u5206\u7ec4\u6210\u3002<br \/>\u2022 <strong>Log \u914d\u7f6e<\/strong>\uff1a\u63a7\u5236\u65e5\u5fd7\u8f93\u51fa\u3002\u751f\u4ea7\u73af\u5883\u5efa\u8bae\u5c06 `access` \u548c `error` \u65e5\u5fd7\u8def\u5f84\u8bbe\u7f6e\u4e3a\u5177\u4f53\u6587\u4ef6\uff0c\u4ee5\u4fbf\u6392\u67e5\u95ee\u9898\uff1b\u8c03\u8bd5\u65f6\u53ef\u8bbe\u4e3a `stdout`\u3002<br \/>\u2022 <strong>Inbounds\uff08\u5165\u7ad9\uff09<\/strong>\uff1a\u5b9a\u4e49\u76d1\u542c\u5730\u5740\u3001\u7aef\u53e3\u548c\u534f\u8bae\u3002\u8fd9\u662f\u914d\u7f6e\u7684\u6838\u5fc3\uff0c\u51b3\u5b9a\u4e86\u5ba2\u6237\u7aef\u5982\u4f55\u8fde\u63a5\u3002<br \/>\u2022 <strong>Outbounds\uff08\u51fa\u7ad9\uff09<\/strong>\uff1a\u5b9a\u4e49\u6d41\u91cf\u51fa\u53e3\u3002\u901a\u5e38\u6307\u5411 `freedom` \u7b56\u7565\uff0c\u5141\u8bb8\u6d41\u91cf\u76f4\u63a5\u8bbf\u95ee\u4e92\u8054\u7f51\u3002<br \/>\u2022 <strong>Routing\uff08\u8def\u7531\uff09<\/strong>\uff1a\u53ef\u9009\u914d\u7f6e\uff0c\u7528\u4e8e\u5206\u6d41\u56fd\u5185\u76f4\u8fde\u548c\u5883\u5916\u6d41\u91cf\uff0c\u4f18\u5316\u8bbf\u95ee\u901f\u5ea6\u3002<\/p>\n<h3>\u914d\u7f6e VLESS + WebSocket + TLS \u793a\u4f8b<\/h3>\n<p>\u8fd9\u662f\u4e00\u79cd\u517c\u987e\u7a33\u5b9a\u6027\u548c\u4f2a\u88c5\u6027\u7684\u7ecf\u5178\u914d\u7f6e\u7ec4\u5408\u3002<\/p>\n<p>&#8220;`json<br \/>{<br \/> &#8220;log&#8221;: {<br \/> &#8220;access&#8221;: &#8220;\/var\/log\/xray\/access.log&#8221;,<br \/> &#8220;error&#8221;: &#8220;\/var\/log\/xray\/error.log&#8221;,<br \/> &#8220;loglevel&#8221;: &#8220;warning&#8221;<br \/> },<br \/> &#8220;inbounds&#8221;: [<br \/> {<br \/> &#8220;port&#8221;: 443,<br \/> &#8220;protocol&#8221;: &#8220;vless&#8221;,<br \/> &#8220;settings&#8221;: {<br \/> &#8220;clients&#8221;: [<br \/> {<br \/> &#8220;id&#8221;: &#8220;your-uuid-here&#8221;,<br \/> &#8220;flow&#8221;: &#8220;xtls-rprx-direct&#8221;<br \/> }<br \/> ],<br \/> &#8220;decryption&#8221;: &#8220;none&#8221;<br \/> },<br \/> &#8220;streamSettings&#8221;: {<br \/> &#8220;network&#8221;: &#8220;ws&#8221;,<br \/> &#8220;security&#8221;: &#8220;tls&#8221;,<br \/> &#8220;tlsSettings&#8221;: {<br \/> &#8220;certificates&#8221;: [<br \/> {<br \/> &#8220;certificateFile&#8221;: &#8220;\/path\/to\/fullchain.pem&#8221;,<br \/> &#8220;keyFile&#8221;: &#8220;\/path\/to\/privkey.pem&#8221;<br \/> }<br \/> ]<br \/> },<br \/> &#8220;wsSettings&#8221;: {<br \/> &#8220;path&#8221;: &#8220;\/your-path&#8221;<br \/> }<br \/> }<br \/> }<br \/> ],<br \/> &#8220;outbounds&#8221;: [<br \/> {<br \/> &#8220;protocol&#8221;: &#8220;freedom&#8221;,<br \/> &#8220;settings&#8221;: {}<br \/> }<br \/> ]<br \/>}<br \/>&#8220;`<\/p>\n<p><strong>\u914d\u7f6e\u8981\u70b9\u8bf4\u660e\uff1a<\/strong><br \/>* <strong>UUID<\/strong>\uff1a\u5fc5\u987b\u4f7f\u7528\u6807\u51c6\u7684 UUID \u683c\u5f0f\uff0c\u5ba2\u6237\u7aef\u9700\u586b\u5165\u76f8\u540c UUID\u3002<br \/>* <strong>Flow<\/strong>\uff1a`xtls-rprx-direct` \u542f\u7528 XTLS \u52a0\u901f\uff0c\u9700\u786e\u4fdd\u670d\u52a1\u7aef\u652f\u6301\u3002\u82e5\u4f7f\u7528 REALITY\uff0c\u6b64\u5904\u9700\u6539\u4e3a `reality` \u76f8\u5173\u914d\u7f6e\u3002<br \/>* <strong>TLS \u8bc1\u4e66<\/strong>\uff1a\u9700\u786e\u4fdd\u8bc1\u4e66\u8def\u5f84\u6b63\u786e\uff0c\u4e14\u5305\u542b\u5b8c\u6574\u94fe\uff08Full Chain\uff09\u3002<br \/>* <strong>WS Path<\/strong>\uff1aWebSocket \u8def\u5f84\u9700\u4e0e\u5ba2\u6237\u7aef\u914d\u7f6e\u5b8c\u5168\u4e00\u81f4\uff0c\u901a\u5e38\u5efa\u8bae\u5305\u542b\u968f\u673a\u5b57\u7b26\u4ee5\u589e\u52a0\u4f2a\u88c5\u6027\u3002<\/p>\n<h2>\u5ba2\u6237\u7aef\u914d\u7f6e\u4e0e\u8fde\u63a5\u9a8c\u8bc1<\/h2>\n<p>\u5ba2\u6237\u7aef\u914d\u7f6e\u901a\u5e38\u4e0d\u9700\u8981\u4fee\u6539\u6838\u5fc3\u903b\u8f91\uff0c\u800c\u662f\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u6216\u5ba2\u6237\u7aef\u754c\u9762\u5bfc\u5165\u670d\u52a1\u7aef\u4fe1\u606f\u3002<\/p>\n<h3>\u901a\u7528\u914d\u7f6e\u903b\u8f91<\/h3>\n<p>\u5927\u591a\u6570\u73b0\u4ee3\u4ee3\u7406\u5ba2\u6237\u7aef\uff08\u5982 Clash Meta\u3001Sing-box\u3001Hiddify \u7b49\uff09\u90fd\u652f\u6301 Xray \u534f\u8bae\u3002\u914d\u7f6e\u65f6\u9700\u786e\u4fdd\u4ee5\u4e0b\u5b57\u6bb5\u4e0e\u670d\u52a1\u7aef\u4e00\u81f4\uff1a<br \/>\u2022 <strong>Type<\/strong>\uff1a\u9009\u62e9 `vless` \u6216 `vmess`\u3002<br \/>\u2022 <strong>Address<\/strong>\uff1a\u670d\u52a1\u7aef IP \u6216\u57df\u540d\u3002<br \/>\u2022 <strong>Port<\/strong>\uff1a\u670d\u52a1\u7aef\u76d1\u542c\u7aef\u53e3\uff08\u901a\u5e38\u4e3a 443 \u6216 8080\uff09\u3002<br \/>\u2022 <strong>UUID<\/strong>\uff1a\u4e0e\u670d\u52a1\u7aef `inbounds` \u4e2d\u914d\u7f6e\u7684 `id` \u4e00\u81f4\u3002<br \/>\u2022 <strong>Transport<\/strong>\uff1a\u9009\u62e9 `ws`\u3001`tcp` \u6216 `grpc`\uff0c\u9700\u4e0e\u5ba2\u6237\u7aef\u4f20\u8f93\u65b9\u5f0f\u5339\u914d\u3002<br \/>\u2022 <strong>TLS<\/strong>\uff1a\u82e5\u670d\u52a1\u7aef\u542f\u7528 TLS\uff0c\u5ba2\u6237\u7aef\u5fc5\u987b\u5f00\u542f TLS \u9a8c\u8bc1\u3002<\/p>\n<h3>\u5e38\u89c1\u8fde\u63a5\u5931\u8d25\u6392\u67e5<\/h3>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u82e5\u65e0\u6cd5\u8fde\u63a5\uff0c\u8bf7\u6309\u4ee5\u4e0b\u6b65\u9aa4\u6392\u67e5\uff1a<\/p>\n<table style=\"width:100%;border-collapse:collapse;margin:24px 0;\">\n<thead>\n<tr>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u73b0\u8c61<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u53ef\u80fd\u539f\u56e0<\/th>\n<th style=\"border:1px solid #ddd;padding:10px;background:#f7f7f7;text-align:left;\">\u89e3\u51b3\u65b9\u6cd5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u8fde\u63a5\u8d85\u65f6<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u7aef\u53e3\u672a\u5f00\u653e\u3001\u9632\u706b\u5899\u62e6\u622a<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u68c0\u67e5\u4e91\u670d\u52a1\u5668\u5b89\u5168\u7ec4\uff0c\u786e\u4fdd\u7aef\u53e3\u5165\u7ad9\u89c4\u5219\u5df2\u6dfb\u52a0<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u63e1\u624b\u5931\u8d25<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">UUID \u9519\u8bef\u3001Flow \u4e0d\u5339\u914d<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u6838\u5bf9 UUID \u683c\u5f0f\uff0c\u68c0\u67e5 Flow \u8bbe\u7f6e\u662f\u5426\u4e0e\u670d\u52a1\u7aef\u4e00\u81f4<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">TLS \u9519\u8bef<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u8bc1\u4e66\u8fc7\u671f\u3001\u57df\u540d\u4e0d\u5339\u914d<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u66f4\u65b0 SSL \u8bc1\u4e66\uff0c\u786e\u4fdd\u57df\u540d\u89e3\u6790\u6307\u5411\u6b63\u786e IP<\/td>\n<\/tr>\n<tr>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">WebSocket \u65ad\u5f00<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">Nginx \u914d\u7f6e\u9519\u8bef\u3001Path \u4e0d\u5339\u914d<\/td>\n<td style=\"border:1px solid #ddd;padding:10px;vertical-align:top;\">\u68c0\u67e5\u53cd\u5411\u4ee3\u7406\u914d\u7f6e\uff0c\u786e\u4fdd `proxy_pass` \u6307\u5411 Xray \u7aef\u53e3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<h3>\u9a8c\u8bc1\u8fde\u63a5\u6709\u6548\u6027<\/h3>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u53ef\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u9a8c\u8bc1\uff1a<br \/>\u2022 <strong>\u65e5\u5fd7\u68c0\u67e5<\/strong>\uff1a\u67e5\u770b Xray \u7684 `access.log`\uff0c\u82e5\u51fa\u73b0\u5927\u91cf `accepted` \u8bb0\u5f55\uff0c\u8bf4\u660e\u8fde\u63a5\u5df2\u5efa\u7acb\u3002<br \/>\u2022 <strong>\u5ba2\u6237\u7aef\u72b6\u6001<\/strong>\uff1a\u89c2\u5bdf\u5ba2\u6237\u7aef\u56fe\u6807\u72b6\u6001\uff0c\u82e5\u663e\u793a\u201c\u5df2\u8fde\u63a5\u201d\u4e14\u6d41\u91cf\u8ba1\u6570\u5668\u589e\u52a0\uff0c\u5219\u914d\u7f6e\u6b63\u786e\u3002<br \/>\u2022 <strong>\u7f51\u7edc\u6d4b\u8bd5<\/strong>\uff1a\u4f7f\u7528 `ping` \u6216 `curl` \u6d4b\u8bd5\u76ee\u6807\u57df\u540d\u7684\u8fde\u901a\u6027\uff0c\u6392\u9664 DNS \u6c61\u67d3\u95ee\u9898\u3002<\/p>\n<h2>\u6027\u80fd\u4f18\u5316\u4e0e\u5b89\u5168\u5efa\u8bae<\/h2>\n<p>\u4e3a\u4e86\u83b7\u5f97\u6700\u4f73\u4f53\u9a8c\uff0c\u9664\u4e86\u57fa\u7840\u914d\u7f6e\uff0c\u8fd8\u9700\u5173\u6ce8\u6027\u80fd\u548c\u5b89\u5168\u7ec6\u8282\u3002<\/p>\n<h3>\u6027\u80fd\u4f18\u5316\u6280\u5de7<\/h3>\n<p>* <strong>\u542f\u7528 Mux<\/strong>\uff1a\u5728 `inbounds` \u4e2d\u542f\u7528 `mux` \u591a\u8def\u590d\u7528\uff0c\u53ef\u663e\u8457\u964d\u4f4e\u9ad8\u5ef6\u8fdf\u73af\u5883\u4e0b\u7684\u8fde\u63a5\u5f00\u9500\u3002\u4f46\u9700\u6ce8\u610f\uff0c\u67d0\u4e9b\u534f\u8bae\uff08\u5982 VLESS + XTLS\uff09\u53ef\u80fd\u4e0d\u652f\u6301 Mux\uff0c\u9700\u6839\u636e\u534f\u8bae\u7ec4\u5408\u8c03\u6574\u3002<br \/>* <strong>\u8c03\u6574 MTU<\/strong>\uff1a\u5728\u7f51\u7edc\u63a5\u53e3\u4e0a\u8bbe\u7f6e\u5408\u9002\u7684 MTU\uff08\u901a\u5e38\u4e3a 1400 \u6216 1460\uff09\uff0c\u907f\u514d\u56e0\u6570\u636e\u5305\u5206\u7247\u5bfc\u81f4\u7684\u6027\u80fd\u4e0b\u964d\u3002<br \/>* <strong>\u9009\u62e9\u6700\u4f18\u8282\u70b9<\/strong>\uff1a\u5b9a\u671f\u6d4b\u8bd5\u4e0d\u540c\u8282\u70b9\u7684\u5ef6\u8fdf\u548c\u4e22\u5305\u7387\uff0c\u9009\u62e9\u7269\u7406\u8ddd\u79bb\u8fd1\u3001\u8fd0\u8425\u5546\u5339\u914d\u5ea6\u9ad8\u7684\u8282\u70b9\u3002<\/p>\n<h3>\u5b89\u5168\u6ce8\u610f\u4e8b\u9879<\/h3>\n<p>* <strong>\u5b9a\u671f\u66f4\u65b0<\/strong>\uff1aXray \u9879\u76ee\u66f4\u65b0\u9891\u7e41\uff0c\u53ca\u65f6\u66f4\u65b0\u6838\u5fc3\u7a0b\u5e8f\u53ef\u4fee\u590d\u5df2\u77e5\u6f0f\u6d1e\u5e76\u83b7\u53d6\u65b0\u7279\u6027\u3002<br \/>* <strong>\u5bc6\u94a5\u7ba1\u7406<\/strong>\uff1a\u5b9a\u671f\u66f4\u6362 UUID \u548c TLS \u8bc1\u4e66\uff0c\u907f\u514d\u957f\u671f\u4f7f\u7528\u540c\u4e00\u5bc6\u94a5\u5bfc\u81f4\u88ab\u6807\u8bb0\u6216\u6cc4\u9732\u3002<br \/>* <strong>\u65e5\u5fd7\u6e05\u7406<\/strong>\uff1a\u5b9a\u671f\u6e05\u7406\u6216\u5f52\u6863\u65e5\u5fd7\u6587\u4ef6\uff0c\u9632\u6b62\u78c1\u76d8\u7a7a\u95f4\u8017\u5c3d\uff0c\u540c\u65f6\u4fdd\u62a4\u7528\u6237\u9690\u79c1\u3002<\/p>\n<p>\u901a\u8fc7\u7406\u89e3 Xray \u7684\u6838\u5fc3\u529f\u80fd\u5e76\u6b63\u786e\u914d\u7f6e\uff0c\u7528\u6237\u53ef\u4ee5\u6784\u5efa\u9ad8\u6548\u3001\u7a33\u5b9a\u7684\u7f51\u7edc\u4ee3\u7406\u73af\u5883\u3002\u914d\u7f6e\u8fc7\u7a0b\u4e2d\u5e94\u4e25\u683c\u9075\u5faa\u534f\u8bae\u89c4\u8303\uff0c\u6ce8\u91cd\u7ec6\u8282\u9a8c\u8bc1\uff0c\u4ee5\u786e\u4fdd\u670d\u52a1\u7684\u957f\u671f\u53ef\u7528\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xray \u662f V2Ray \u9879\u76ee\u7684\u4e00\u4e2a\u9ad8\u6027\u80fd\u5206\u652f\uff0c\u65e8\u5728\u901a\u8fc7\u66f4\u9ad8\u6548\u7684\u5e95\u5c42\u67b6\u6784\u548c\u66f4\u4e30\u5bcc\u7684\u534f\u8bae\u652f\u6301\uff0c\u89e3\u51b3\u7f51\u7edc\u4f20\u8f93\u4e2d\u7684\u6027 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1421","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts\/1421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/comments?post=1421"}],"version-history":[{"count":0,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/posts\/1421\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/media?parent=1421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/categories?post=1421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suannai.link\/blog\/wp-json\/wp\/v2\/tags?post=1421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}