{"id":55010,"date":"2025-02-18T11:54:57","date_gmt":"2025-02-18T03:54:57","guid":{"rendered":"https:\/\/fwq.ai\/blog\/55010\/"},"modified":"2025-02-18T11:54:57","modified_gmt":"2025-02-18T03:54:57","slug":"v2ray%e9%85%8d%e7%bd%ae%e8%af%a6%e8%a7%a3%ef%bc%9a%e4%bb%8e%e5%85%a5%e9%97%a8%e5%88%b0%e7%b2%be%e9%80%9a","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/55010\/","title":{"rendered":"v2ray\u914d\u7f6e\u8be6\u89e3\uff1a\u4ece\u5165\u95e8\u5230\u7cbe\u901a"},"content":{"rendered":"<h2>\u4ec0\u4e48\u662fv2ray<\/h2>\n<p><em>v2ray<\/em>\u662f\u4e00\u4e2a\u5148\u8fdb\u7684\u7f51\u7edc\u4ee3\u7406\u5de5\u5177\uff0c\u65e8\u5728\u4e3a\u7528\u6237\u63d0\u4f9b\u9690\u79c1\u4fdd\u62a4\u548c\u7f51\u7edc\u5b89\u5168\u3002\u5b83\u5177\u6709\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u7ed5\u8fc7\u5730\u7406\u9650\u5236\uff0c\u5b9e\u73b0\u5b89\u5168\u7684\u7f51\u7edc\u8bbf\u95ee\u3002\u7531\u4e8e\u5176\u7075\u6d3b\u7684\u914d\u7f6e\u548c\u591a\u6837\u7684\u4f20\u8f93\u534f\u8bae\uff0cv2ray\u5728\u7f51\u7edc\u79d1\u5b66\u4e2d\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\u3002<\/p>\n<h2>v2ray\u7684\u57fa\u672c\u7ec4\u6210<\/h2>\n<ul>\n<li><strong>\u6838\u5fc3\u7ec4\u4ef6<\/strong>\uff1av2ray\u7684\u6838\u5fc3\u7531v2ray-core\u8d1f\u8d23\u5904\u7406\u6240\u6709\u7684\u7f51\u7edc\u8bf7\u6c42\u548c\u6570\u636e\u5305\u3002<\/li>\n<li><strong>\u4f20\u8f93\u534f\u8bae<\/strong>\uff1av2ray\u652f\u6301\u591a\u79cd\u4f20\u8f93\u534f\u8bae\uff0c\u5305\u62ecTCP\u3001WebSocket\u3001HTTP\/2\u7b49\u3002<\/li>\n<li><strong>\u914d\u7f6e\u6587\u4ef6<\/strong>\uff1av2ray\u7684\u6240\u6709\u8bbe\u7f6e\u90fd\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u8fdb\u884c\uff0c\u901a\u5e38\u4e3aJSON\u683c\u5f0f\u3002<\/li>\n<\/ul>\n<h2>v2ray\u7684\u5b89\u88c5\u6b65\u9aa4<\/h2>\n<h3>1. \u4e0b\u8f7dv2ray<\/h3>\n<p>\u4ece\u9875\u9762\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684v2ray\u3002<\/p>\n<h3>2. \u89e3\u538b\u7f29\u6587\u4ef6<\/h3>\n<p>\u5c06\u4e0b\u8f7d\u7684\u6587\u4ef6\u89e3\u538b\u5230\u6307\u5b9a\u76ee\u5f55\u3002<\/p>\n<h3>3. \u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h3>\n<p>\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u4fbf\u80fd\u591f\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u8fd0\u884cv2ray\u3002<\/p>\n<h3>4. \u542f\u52a8v2ray<\/h3>\n<p>\u901a\u8fc7\u547d\u4ee4\u884c\u6216\u76f4\u63a5\u6267\u884cv2ray\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u542f\u52a8v2ray\u670d\u52a1\u3002<\/p>\n<h2>v2ray\u7684\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3<\/h2>\n<p>v2ray\u7684\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u662fJSON\u683c\u5f0f\uff0c\u5305\u542b\u4e86\u4ee5\u4e0b\u51e0\u4e2a\u91cd\u8981\u90e8\u5206\uff1a<\/p>\n<h3>1. INBOUND<\/h3>\n<ul>\n<li><strong>\u76d1\u542c\u7aef\u53e3<\/strong>\uff1a\u914d\u7f6ev2ray\u76d1\u542c\u7684\u7aef\u53e3\u3002<\/li>\n<li><strong>\u534f\u8bae<\/strong>\uff1a\u5b9a\u4e49\u63a5\u5165\u534f\u8bae\uff0c\u4f8b\u5982<code>vmess<\/code>\u3001<code>vless<\/code>\u7b49\u3002<\/li>\n<\/ul>\n<h4>\u793a\u4f8b\uff1a\u201dinbounds\u201d: [{<\/h4>\n<p>\u201cport\u201d: 10086, \u201cprotocol\u201d: \u201cvmess\u201d, \u201csettings\u201d: { \u201cclients\u201d: [{ \u201cid\u201d: \u201cUUID\u201d, \u201calterId\u201d: 64 }] } }]<\/p>\n<h3>2. OUTBOUND<\/h3>\n<ul>\n<li><strong>\u51fa\u53e3\u7c7b\u578b<\/strong>\uff1a\u8bbe\u7f6ev2ray\u8bbf\u95ee\u5916\u7f51\u7684\u65b9\u5f0f\u3002<\/li>\n<li><strong>\u534f\u8bae<\/strong>\uff1a\u5982<code>vmess<\/code>\u3001<code>http<\/code>\u7b49\u3002<\/li>\n<\/ul>\n<h4>\u793a\u4f8b\uff1a\u201doutbounds\u201d: [{<\/h4>\n<p>\u201cprotocol\u201d: \u201cvmess\u201d, \u201csettings\u201d: { \u201cvnext\u201d: [{ \u201caddress\u201d: \u201cserver_address\u201d, \u201cport\u201d: 443, \u201cusers\u201d: [{ \u201cid\u201d: \u201cUUID\u201d, \u201calterId\u201d: 64 }] }] } }]<\/p>\n<h3>3. DNS\u914d\u7f6e<\/h3>\n<ul>\n<li>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u8bbe\u7f6eDNS\u89e3\u6790\u7684\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n<h3>4. \u8def\u7531\u914d\u7f6e<\/h3>\n<ul>\n<li>\u901a\u8fc7\u8def\u7531\u89c4\u5219\u6765\u63a7\u5236\u6d41\u91cf\u8d70\u5411\u3002<\/li>\n<\/ul>\n<h2>v2ray\u7684\u9ad8\u7ea7\u914d\u7f6e<\/h2>\n<h3>1. \u4f7f\u7528WebSocket<\/h3>\n<ul>\n<li>\u4f7f\u7528WebSocket\u53ef\u4ee5\u8ba9v2ray\u901a\u8fc7HTTP\u534f\u8bae\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u589e\u52a0\u4e86\u9690\u853d\u6027\u3002<\/li>\n<\/ul>\n<h3>2. HTTP\/2\u652f\u6301<\/h3>\n<ul>\n<li>\u901a\u8fc7HTTP\/2\uff0c\u53ef\u4ee5\u6709\u6548\u51cf\u5c11\u8fde\u63a5\u6570\u91cf\uff0c\u4f18\u5316\u6027\u80fd\u3002<\/li>\n<\/ul>\n<h2>\u5e38\u89c1\u95ee\u9898\u89e3\u7b54<\/h2>\n<h3>1. v2ray\u914d\u7f6e\u6587\u4ef6\u7684\u683c\u5f0f\u6709\u8bef\u600e\u4e48\u529e\uff1f<\/h3>\n<p>\u5982\u679c\u914d\u7f6e\u6587\u4ef6\u7684JSON\u683c\u5f0f\u6709\u8bef\uff0c\u53ef\u4ee5\u4f7f\u7528\u5728\u7ebfJSON\u6821\u9a8c\u5de5\u5177\u8fdb\u884c\u68c0\u6d4b\uff0c\u786e\u4fdd\u683c\u5f0f\u6b63\u786e\u3002<\/p>\n<h3>2. \u5982\u4f55\u67e5\u770bv2ray\u7684\u8fd0\u884c\u65e5\u5fd7\uff1f<\/h3>\n<p>v2ray\u7684\u8fd0\u884c\u65e5\u5fd7\u4f1a\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u5b9a\u4e49\uff0c\u901a\u5e38\u662f\u4ee5\u6587\u4ef6\u7684\u5f62\u5f0f\u8f93\u51fa\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8fdb\u884c\u67e5\u770b\u3002<\/p>\n<h3>3. \u5982\u4f55\u66f4\u65b0v2ray\uff1f<\/h3>\n<p>\u53ef\u4ee5\u5b9a\u671f\u8bbf\u95eev2ray\u7684\u5b98\u65b9GitHub\u9875\u9762\uff0c\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u8fdb\u884c\u66ff\u6362\u3002\u8bb0\u5f97\u5728\u66f4\u65b0\u524d\u5907\u4efd\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<h3>4. \u5982\u4f55\u89e3\u51b3\u8fde\u63a5\u4e0d\u4e0a\u7684\u95ee\u9898\uff1f<\/h3>\n<ul>\n<li>\u68c0\u67e5\u9632\u706b\u5899\u8bbe\u7f6e\uff0c\u786e\u4fddv2ray\u7684\u7aef\u53e3\u672a\u88ab\u963b\u585e\u3002<\/li>\n<li>\u786e\u4fdd\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u670d\u52a1\u5668\u5730\u5740\u548c\u7aef\u53e3\u8bbe\u7f6e\u6b63\u786e\u3002<\/li>\n<\/ul>\n<h2>\u7ed3\u8bba<\/h2>\n<p>\u901a\u8fc7\u672c\u6587\u7684\u8be6\u7ec6\u8bb2\u89e3\uff0c\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86<em>v2ray<\/em>\u7684\u57fa\u7840\u914d\u7f6e\u548c\u4e00\u4e9b\u9ad8\u7ea7\u529f\u80fd\u3002\u5728\u65e5\u5e38\u4f7f\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u4e2a\u4eba\u9700\u6c42\u4e0d\u65ad\u4f18\u5316\u914d\u7f6e\uff0c\u4ee5\u5b9e\u73b0\u66f4\u597d\u7684\u7f51\u7edc\u4f53\u9a8c\u3002\u5e0c\u671b\u4f60\u5728\u4f7f\u7528v2ray\u7684\u8fc7\u7a0b\u4e2d\uff0c\u80fd\u591f\u4eab\u53d7\u5230\u66f4\u52a0\u5b89\u5168\u548c\u81ea\u7531\u7684\u7f51\u7edc\u73af\u5883\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662fv2ray v2ray\u662f\u4e00\u4e2a\u5148\u8fdb\u7684\u7f51\u7edc\u4ee3\u7406\u5de5\u5177\uff0c\u65e8\u5728\u4e3a\u7528\u6237\u63d0\u4f9b\u9690\u79c1\u4fdd\u62a4\u548c\u7f51\u7edc\u5b89\u5168\u3002\u5b83\u5177\u6709\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u7ed5\u8fc7\u5730\u7406\u9650\u5236\uff0c\u5b9e\u73b0\u5b89\u5168\u7684\u7f51\u7edc\u8bbf\u95ee\u3002\u7531\u4e8e\u5176\u7075\u6d3b\u7684\u914d\u7f6e\u548c\u591a\u6837\u7684\u4f20\u8f93\u534f\u8bae\uff0cv2ray\u5728\u7f51\u7edc\u79d1\u5b66\u4e2d\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\u3002 v2ray\u7684\u57fa\u672c\u7ec4\u6210 \u6838\u5fc3\u7ec4\u4ef6\uff1av2ray\u7684\u6838\u5fc3\u7531v2ray-core\u8d1f\u8d23\u5904\u7406\u6240\u6709\u7684\u7f51\u7edc\u8bf7\u6c42\u548c\u6570\u636e\u5305\u3002 \u4f20\u8f93\u534f\u8bae\uff1av2ray\u652f\u6301\u591a\u79cd\u4f20\u8f93\u534f\u8bae\uff0c\u5305\u62ecTCP\u3001WebSocket\u3001HTTP\/2\u7b49\u3002 \u914d\u7f6e\u6587\u4ef6\uff1av2ray\u7684\u6240\u6709\u8bbe\u7f6e\u90fd\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u8fdb\u884c\uff0c\u901a\u5e38\u4e3aJSON\u683c\u5f0f\u3002 v2ray\u7684\u5b89\u88c5\u6b65\u9aa4 1. \u4e0b\u8f7dv2ray \u4ece\u9875\u9762\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684v2ray\u3002 2. \u89e3\u538b\u7f29\u6587\u4ef6 \u5c06\u4e0b\u8f7d\u7684\u6587\u4ef6\u89e3\u538b\u5230\u6307\u5b9a\u76ee\u5f55\u3002 3. \u914d\u7f6e\u73af\u5883\u53d8\u91cf \u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u4fbf\u80fd\u591f\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u8fd0\u884cv2ray\u3002 4. \u542f\u52a8v2ray \u901a\u8fc7\u547d\u4ee4\u884c\u6216\u76f4\u63a5\u6267\u884cv2ray\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u542f\u52a8v2ray\u670d\u52a1\u3002 v2ray\u7684\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3 v2ray\u7684\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u662fJSON\u683c\u5f0f\uff0c\u5305\u542b\u4e86\u4ee5\u4e0b\u51e0\u4e2a\u91cd\u8981\u90e8\u5206\uff1a 1. INBOUND \u76d1\u542c\u7aef\u53e3\uff1a\u914d\u7f6ev2ray\u76d1\u542c\u7684\u7aef\u53e3\u3002 \u534f\u8bae\uff1a\u5b9a\u4e49\u63a5\u5165\u534f\u8bae\uff0c\u4f8b\u5982vmess\u3001vless\u7b49\u3002 \u793a\u4f8b\uff1a\u201dinbounds\u201d: [{ \u201cport\u201d: 10086, \u201cprotocol\u201d: \u201cvmess\u201d, \u201csettings\u201d: { \u201cclients\u201d: [{ \u201cid\u201d: \u201cUUID\u201d, \u201calterId\u201d: 64 }] } }] 2. OUTBOUND \u51fa\u53e3\u7c7b\u578b\uff1a\u8bbe\u7f6ev2ray\u8bbf\u95ee\u5916\u7f51\u7684\u65b9\u5f0f\u3002 \u534f\u8bae\uff1a\u5982vmess\u3001http\u7b49\u3002 \u793a\u4f8b\uff1a\u201doutbounds\u201d: [{ \u201cprotocol\u201d: \u201cvmess\u201d, \u201csettings\u201d: { \u201cvnext\u201d: [{ \u201caddress\u201d: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-55010","post","type-post","status-publish","format-standard","hentry","category-vpn"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/55010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=55010"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/55010\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=55010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=55010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=55010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}