{"id":54653,"date":"2025-02-18T08:51:29","date_gmt":"2025-02-18T00:51:29","guid":{"rendered":"https:\/\/fwq.ai\/blog\/54653\/"},"modified":"2025-02-18T08:51:29","modified_gmt":"2025-02-18T00:51:29","slug":"%e5%85%a8%e9%9d%a2%e8%a7%a3%e6%9e%90v2ray%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e7%9a%84%e7%bb%93%e6%9e%84%e4%b8%8e%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/54653\/","title":{"rendered":"\u5168\u9762\u89e3\u6790V2Ray\u914d\u7f6e\u6587\u4ef6\u7684\u7ed3\u6784\u4e0e\u4f7f\u7528"},"content":{"rendered":"<p>V2Ray \u662f\u4e00\u6b3e\u5f3a\u5927\u7684\u7f51\u7edc\u4ee3\u7406\u5de5\u5177\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u79d1\u5b66\u4e0a\u7f51\u548c\u7f51\u7edc\u5b89\u5168\u7b49\u9886\u57df\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8 V2Ray \u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528 V2Ray\u3002<\/p>\n<h2>\u4ec0\u4e48\u662f V2Ray \u914d\u7f6e\u6587\u4ef6<\/h2>\n<p><em>V2Ray \u914d\u7f6e\u6587\u4ef6<\/em> \u662f\u4e00\u4e2a JSON \u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u8fde\u63a5\u670d\u52a1\u5668\u6240\u9700\u7684\u5404\u9879\u914d\u7f6e\u3002\u8fd9\u4e9b\u914d\u7f6e\u5305\u62ec\u7f51\u7edc\u534f\u8bae\u3001\u670d\u52a1\u5668\u5730\u5740\u3001\u7aef\u53e3\u7b49\uff0c\u662f V2Ray \u80fd\u591f\u6b63\u5e38\u5de5\u4f5c\u7684\u57fa\u7840\u3002<\/p>\n<h2>V2Ray \u914d\u7f6e\u6587\u4ef6\u7684\u57fa\u672c\u7ed3\u6784<\/h2>\n<p>V2Ray \u914d\u7f6e\u6587\u4ef6\u4e3b\u8981\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a<\/p>\n<ul>\n<li><strong>inbounds<\/strong>\uff1a\u7528\u4e8e\u63a5\u6536\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\u8bf7\u6c42<\/li>\n<li><strong>outbounds<\/strong>\uff1a\u7528\u4e8e\u5411\u76ee\u6807\u670d\u52a1\u5668\u53d1\u9001\u8bf7\u6c42<\/li>\n<li><strong>routing<\/strong>\uff1a\u7528\u4e8e\u5b9a\u4e49\u8bf7\u6c42\u7684\u8def\u7531\u89c4\u5219<\/li>\n<li><strong>transport<\/strong>\uff1a\u7528\u4e8e\u6307\u5b9a\u4f20\u8f93\u534f\u8bae<\/li>\n<\/ul>\n<h3>1. Inbounds<\/h3>\n<p><em>inbounds<\/em> \u90e8\u5206\u5b9a\u4e49\u4e86 V2Ray \u5982\u4f55\u63a5\u6536\u5916\u90e8\u8fde\u63a5\u3002\u8fd9\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<ul>\n<li><strong>port<\/strong>\uff1a\u6307\u5b9a\u76d1\u542c\u7684\u7aef\u53e3<\/li>\n<li><strong>protocol<\/strong>\uff1a\u6307\u5b9a\u4f7f\u7528\u7684\u534f\u8bae\uff08\u5982 vmess\u3001vless\u3001socks \u7b49\uff09<\/li>\n<li><strong>settings<\/strong>\uff1a\u914d\u7f6e\u8be5\u534f\u8bae\u7684\u5177\u4f53\u53c2\u6570<\/li>\n<\/ul>\n<h4>\u793a\u4f8b\uff1a<\/h4>\n<p>\u201cinbounds\u201d: [<br \/> {<br \/> \u201cport\u201d: 1080,<br \/> \u201cprotocol\u201d: \u201csocks\u201d,<br \/> \u201csettings\u201d: {<br \/> \u201cauth\u201d: \u201cnoauth\u201d,<br \/> \u201cudp\u201d: true<br \/> }<br \/> }<br \/> ]<\/p>\n<h3>2. Outbounds<\/h3>\n<p><em>outbounds<\/em> \u90e8\u5206\u5b9a\u4e49\u4e86 V2Ray \u5982\u4f55\u5c06\u8bf7\u6c42\u8f6c\u53d1\u5230\u76ee\u6807\u670d\u52a1\u5668\u3002<\/p>\n<ul>\n<li><strong>protocol<\/strong>\uff1a\u6307\u5b9a\u4f7f\u7528\u7684\u8f6c\u53d1\u534f\u8bae\uff08\u5982 vmess\u3001vless\u3001http \u7b49\uff09<\/li>\n<li><strong>settings<\/strong>\uff1a\u5177\u4f53\u914d\u7f6e<\/li>\n<\/ul>\n<h4>\u793a\u4f8b\uff1a<\/h4>\n<p>\u201coutbounds\u201d: [<br \/> {<br \/> \u201cprotocol\u201d: \u201cvmess\u201d,<br \/> \u201csettings\u201d: {<br \/> \u201cvnext\u201d: [<br \/> {<br \/> \u201caddress\u201d: \u201cyour.server.address\u201d,<br \/> \u201cport\u201d: 10086,<br \/> \u201cusers\u201d: [<br \/> {<br \/> \u201cid\u201d: \u201cyour-uuid\u201d,<br \/> \u201calterId\u201d: 64<br \/> }<br \/> ]<br \/> }<br \/> ]<br \/> }<br \/> }<br \/> ]<\/p>\n<h3>3. Routing<\/h3>\n<p><em>routing<\/em> \u90e8\u5206\u7528\u4e8e\u5b9a\u4e49\u4e0d\u540c\u6d41\u91cf\u7684\u8def\u7531\u89c4\u5219\u3002<\/p>\n<ul>\n<li><strong>rules<\/strong>\uff1a\u5177\u4f53\u7684\u8def\u7531\u89c4\u5219<\/li>\n<\/ul>\n<h4>\u793a\u4f8b\uff1a<\/h4>\n<p>\u201crouting\u201d: {<br \/> \u201crules\u201d: [<br \/> {<br \/> \u201ctype\u201d: \u201cfield\u201d,<br \/> \u201coutboundTag\u201d: \u201cproxy\u201d,<br \/> \u201cip\u201d: [\u201cgeoip:cn\u201d],<br \/> \u201cnetwork\u201d: \u201ctcp,udp\u201d<br \/> }<br \/> ]<br \/> }<\/p>\n<h3>4. Transport<\/h3>\n<p><em>transport<\/em> \u90e8\u5206\u7528\u4e8e\u5b9a\u4e49\u6570\u636e\u4f20\u8f93\u7684\u65b9\u5f0f\u3002<\/p>\n<ul>\n<li><strong>network<\/strong>\uff1a\u6307\u5b9a\u4f20\u8f93\u534f\u8bae\uff08\u5982 tcp\u3001ws \u7b49\uff09<\/li>\n<\/ul>\n<h4>\u793a\u4f8b\uff1a<\/h4>\n<p>\u201ctransport\u201d: {<br \/> \u201cnetwork\u201d: \u201ctcp\u201d<br \/> }<\/p>\n<h2>V2Ray \u914d\u7f6e\u6587\u4ef6\u793a\u4f8b<\/h2>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684 V2Ray \u914d\u7f6e\u6587\u4ef6\u793a\u4f8b\uff1a<\/p>\n<p>{<br \/> \u201cinbounds\u201d: [<br \/> {<br \/> \u201cport\u201d: 1080,<br \/> \u201cprotocol\u201d: \u201csocks\u201d,<br \/> \u201csettings\u201d: {<br \/> \u201cauth\u201d: \u201cnoauth\u201d,<br \/> \u201cudp\u201d: true<br \/> }<br \/> }<br \/> ],<br \/> \u201coutbounds\u201d: [<br \/> {<br \/> \u201cprotocol\u201d: \u201cvmess\u201d,<br \/> \u201csettings\u201d: {<br \/> \u201cvnext\u201d: [<br \/> {<br \/> \u201caddress\u201d: \u201cyour.server.address\u201d,<br \/> \u201cport\u201d: 10086,<br \/> \u201cusers\u201d: [<br \/> {<br \/> \u201cid\u201d: \u201cyour-uuid\u201d,<br \/> \u201calterId\u201d: 64<br \/> }<br \/> ]<br \/> }<br \/> ]<br \/> }<br \/> }<br \/> ],<br \/> \u201crouting\u201d: {<br \/> \u201crules\u201d: [<br \/> {<br \/> \u201ctype\u201d: \u201cfield\u201d,<br \/> \u201coutboundTag\u201d: \u201cproxy\u201d,<br \/> \u201cip\u201d: [\u201cgeoip:cn\u201d],<br \/> \u201cnetwork\u201d: \u201ctcp,udp\u201d<br \/> }<br \/> ]<br \/> },<br \/> \u201ctransport\u201d: {<br \/> \u201cnetwork\u201d: \u201ctcp\u201d<br \/> }<br \/> }<\/p>\n<h2>\u5982\u4f55\u4f18\u5316 V2Ray \u914d\u7f6e<\/h2>\n<p>\u4f18\u5316 V2Ray \u7684\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u6709\u6548\u63d0\u9ad8\u4ee3\u7406\u7684\u901f\u5ea6\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<ul>\n<li><strong>\u9009\u62e9\u5408\u9002\u7684\u534f\u8bae<\/strong>\uff1a\u6839\u636e\u5b9e\u9645\u9700\u8981\u9009\u62e9\u66f4\u9002\u5408\u7684\u4f20\u8f93\u534f\u8bae\u3002<\/li>\n<li><strong>\u4f7f\u7528\u5206\u6d41<\/strong>\uff1a\u6839\u636e\u8bbf\u95ee\u7684\u7f51\u7ad9\u4e0d\u540c\u8bbe\u7f6e\u4e0d\u540c\u7684\u51fa\u7ad9\u7b56\u7565\u3002<\/li>\n<li><strong>\u4fdd\u6301\u914d\u7f6e\u7b80\u6d01<\/strong>\uff1a\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u590d\u6742\u914d\u7f6e\uff0c\u4ee5\u63d0\u9ad8\u52a0\u8f7d\u901f\u5ea6\u3002<\/li>\n<\/ul>\n<h2>\u5e38\u89c1\u95ee\u9898<\/h2>\n<h3>1. V2Ray \u914d\u7f6e\u6587\u4ef6\u662f\u4ec0\u4e48\u683c\u5f0f\uff1f<\/h3>\n<p>V2Ray \u7684\u914d\u7f6e\u6587\u4ef6\u91c7\u7528 JSON \u683c\u5f0f\uff0c\u5177\u6709\u826f\u597d\u7684\u53ef\u8bfb\u6027\u548c\u6613\u4e8e\u4fee\u6539\u7684\u7279\u6027\u3002<\/p>\n<h3>2. \u5982\u4f55\u627e\u5230 V2Ray \u7684\u914d\u7f6e\u6587\u4ef6\uff1f<\/h3>\n<p>V2Ray \u7684\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684 <code>config.json<\/code> \u6587\u4ef6\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00\u5e76\u8fdb\u884c\u4fee\u6539\u3002<\/p>\n<h3>3. V2Ray \u914d\u7f6e\u6587\u4ef6\u5982\u4f55\u5907\u4efd\uff1f<\/h3>\n<p>\u7528\u6237\u53ef\u4ee5\u590d\u5236 <code>config.json<\/code> \u6587\u4ef6\u5e76\u4fdd\u5b58\u5230\u5b89\u5168\u7684\u4f4d\u7f6e\uff0c\u6216\u4f7f\u7528\u7248\u672c\u63a7\u5236\u5de5\u5177\uff08\u5982 Git\uff09\u8fdb\u884c\u7ba1\u7406\u3002<\/p>\n<h3>4. \u5982\u4f55\u8c03\u8bd5 V2Ray \u914d\u7f6e\u6587\u4ef6\uff1f<\/h3>\n<p>V2Ray \u63d0\u4f9b\u4e86\u8c03\u8bd5\u6a21\u5f0f\uff0c\u53ef\u4ee5\u5728\u542f\u52a8\u65f6\u52a0\u4e0a <code>-test<\/code> \u53c2\u6570\u6765\u9a8c\u8bc1\u914d\u7f6e\u6587\u4ef6\u7684\u6b63\u786e\u6027\uff0c\u5e76\u67e5\u770b\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n<h2>\u7ed3\u8bba<\/h2>\n<p>\u638c\u63e1 V2Ray \u7684\u914d\u7f6e\u6587\u4ef6\u662f\u6709\u6548\u4f7f\u7528\u8be5\u5de5\u5177\u7684\u57fa\u7840\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u8bb2\u89e3\uff0c\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f18\u5316\u81ea\u5df1\u7684 V2Ray \u914d\u7f6e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>V2Ray \u662f\u4e00\u6b3e\u5f3a\u5927\u7684\u7f51\u7edc\u4ee3\u7406\u5de5\u5177\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u79d1\u5b66\u4e0a\u7f51\u548c\u7f51\u7edc\u5b89\u5168\u7b49\u9886\u57df\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8 V2Ray \u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528 V2Ray\u3002 \u4ec0\u4e48\u662f V2Ray \u914d\u7f6e\u6587\u4ef6 V2Ray \u914d\u7f6e\u6587\u4ef6 \u662f\u4e00\u4e2a JSON \u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u8fde\u63a5\u670d\u52a1\u5668\u6240\u9700\u7684\u5404\u9879\u914d\u7f6e\u3002\u8fd9\u4e9b\u914d\u7f6e\u5305\u62ec\u7f51\u7edc\u534f\u8bae\u3001\u670d\u52a1\u5668\u5730\u5740\u3001\u7aef\u53e3\u7b49\uff0c\u662f V2Ray \u80fd\u591f\u6b63\u5e38\u5de5\u4f5c\u7684\u57fa\u7840\u3002 V2Ray \u914d\u7f6e\u6587\u4ef6\u7684\u57fa\u672c\u7ed3\u6784 V2Ray \u914d\u7f6e\u6587\u4ef6\u4e3b\u8981\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a inbounds\uff1a\u7528\u4e8e\u63a5\u6536\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\u8bf7\u6c42 outbounds\uff1a\u7528\u4e8e\u5411\u76ee\u6807\u670d\u52a1\u5668\u53d1\u9001\u8bf7\u6c42 routing\uff1a\u7528\u4e8e\u5b9a\u4e49\u8bf7\u6c42\u7684\u8def\u7531\u89c4\u5219 transport\uff1a\u7528\u4e8e\u6307\u5b9a\u4f20\u8f93\u534f\u8bae 1. Inbounds inbounds \u90e8\u5206\u5b9a\u4e49\u4e86 V2Ray \u5982\u4f55\u63a5\u6536\u5916\u90e8\u8fde\u63a5\u3002\u8fd9\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u5185\u5bb9\uff1a port\uff1a\u6307\u5b9a\u76d1\u542c\u7684\u7aef\u53e3 protocol\uff1a\u6307\u5b9a\u4f7f\u7528\u7684\u534f\u8bae\uff08\u5982 vmess\u3001vless\u3001socks \u7b49\uff09 settings\uff1a\u914d\u7f6e\u8be5\u534f\u8bae\u7684\u5177\u4f53\u53c2\u6570 \u793a\u4f8b\uff1a \u201cinbounds\u201d: [ { \u201cport\u201d: 1080, \u201cprotocol\u201d: \u201csocks\u201d, \u201csettings\u201d: { \u201cauth\u201d: \u201cnoauth\u201d, \u201cudp\u201d: true } } ] 2. Outbounds outbounds \u90e8\u5206\u5b9a\u4e49\u4e86 [&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-54653","post","type-post","status-publish","format-standard","hentry","category-vpn"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/54653","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=54653"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/54653\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=54653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=54653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=54653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}