{"id":57851,"date":"2025-03-08T15:13:11","date_gmt":"2025-03-08T07:13:11","guid":{"rendered":"https:\/\/fwq.ai\/blog\/57851\/"},"modified":"2025-03-08T15:13:11","modified_gmt":"2025-03-08T07:13:11","slug":"v2ray%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e8%af%a6%e8%a7%a3%ef%bc%9a%e7%bb%93%e6%9e%84%e3%80%81%e7%94%a8%e6%b3%95%e4%b8%8e%e5%b8%b8%e8%a7%81%e9%97%ae%e9%a2%98%e8%a7%a3%e7%ad%94-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/57851\/","title":{"rendered":"v2ray\u914d\u7f6e\u6587\u4ef6\u8be6\u89e3\uff1a\u7ed3\u6784\u3001\u7528\u6cd5\u4e0e\u5e38\u89c1\u95ee\u9898\u89e3\u7b54"},"content":{"rendered":"<h2>\u4ec0\u4e48\u662fv2ray\uff1f<\/h2>\n<p><em>v2ray<\/em> \u662f\u4e00\u79cd\u7528\u4e8e\u7f51\u7edc\u4ee3\u7406\u7684\u8f6f\u4ef6\uff0c\u63d0\u4f9b\u4e86\u4e00\u79cd\u5f3a\u5927\u7684\u65b9\u5f0f\u6765\u7a81\u7834\u7f51\u7edc\u9650\u5236\u548c\u4fdd\u62a4\u7528\u6237\u9690\u79c1\u3002\u5b83\u4e3b\u8981\u88ab\u7528\u4e8e\u548c\u79d1\u5b66\u4e0a\u7f51\u3002<em>v2ray<\/em> \u914d\u7f6e\u6587\u4ef6\u662f\u5176\u8fd0\u884c\u7684\u6838\u5fc3\uff0c\u901a\u8fc7\u6b63\u786e\u7684\u914d\u7f6e\u53ef\u4ee5\u5b9e\u73b0\u591a\u79cd\u529f\u80fd\u3002<\/p>\n<h2>v2ray\u914d\u7f6e\u6587\u4ef6\u7684\u57fa\u672c\u7ed3\u6784<\/h2>\n<p><em>v2ray<\/em> \u7684\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u4e3a JSON \u683c\u5f0f\uff0c\u4e3b\u8981\u5206\u4e3a\u4ee5\u4e0b\u51e0\u90e8\u5206\uff1a<\/p>\n<ul>\n<li><strong>inbounds<\/strong>\uff1a\u914d\u7f6e\u5165\u7ad9\u8fde\u63a5\u7684\u53c2\u6570<\/li>\n<li><strong>outbounds<\/strong>\uff1a\u914d\u7f6e\u51fa\u7ad9\u8fde\u63a5\u7684\u53c2\u6570<\/li>\n<li><strong>routing<\/strong>\uff1a\u914d\u7f6e\u6d41\u91cf\u7684\u8def\u7531<\/li>\n<li><strong>policy<\/strong>\uff1a\u914d\u7f6e\u8bbf\u95ee\u7b56\u7565<\/li>\n<li><strong>dns<\/strong>\uff1a\u914d\u7f6e DNS \u8bbe\u7f6e<\/li>\n<li><strong>log<\/strong>\uff1a\u914d\u7f6e\u65e5\u5fd7\u4fe1\u606f<\/li>\n<\/ul>\n<h2>v2ray\u914d\u7f6e\u6587\u4ef6\u7684\u8be6\u7ec6\u8bf4\u660e<\/h2>\n<h3>1. inbounds<\/h3>\n<p>\u5728 <em>v2ray<\/em> \u4e2d\uff0c<em>inbounds<\/em> \u5b9a\u4e49\u4e86\u53ef\u4ee5\u63a5\u53d7\u7684\u8fde\u63a5\u65b9\u5f0f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<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 \/> \u201cip\u201d: \u201c0.0.0.0\u201d<br \/> }<br \/> }<br \/> ]<\/p>\n<ul>\n<li><strong>port<\/strong>\uff1a\u76d1\u542c\u7684\u7aef\u53e3<\/li>\n<li><strong>protocol<\/strong>\uff1a\u534f\u8bae\u7c7b\u578b\uff0c\u5982 <code>socks<\/code> \u6216 <code>vmess<\/code><\/li>\n<li><strong>settings<\/strong>\uff1a\u534f\u8bae\u7684\u5177\u4f53\u8bbe\u7f6e<\/li>\n<\/ul>\n<h3>2. outbounds<\/h3>\n<p><em>outbounds<\/em> \u7528\u4e8e\u914d\u7f6e <em>v2ray<\/em> \u7684\u51fa\u7ad9\u8fde\u63a5\u3002<br \/> \u201coutbounds\u201d: [<br \/> {<br \/> \u201cprotocol\u201d: \u201cvmess\u201d,<br \/> \u201csettings\u201d: {<br \/> \u201cvnext\u201d: [<br \/> {<br \/> \u201caddress\u201d: \u201cexample.com\u201d,<br \/> \u201cport\u201d: 443,<br \/> \u201cusers\u201d: [<br \/> {<br \/> \u201cid\u201d: \u201cuuid\u201d,<br \/> \u201calterId\u201d: 64<br \/> }<br \/> ]<br \/> }<br \/> ]<br \/> }<br \/> }<br \/> ]<\/p>\n<ul>\n<li><strong>protocol<\/strong>\uff1a\u51fa\u7ad9\u8fde\u63a5\u7684\u534f\u8bae\u7c7b\u578b<\/li>\n<li><strong>settings<\/strong>\uff1a\u5177\u4f53\u7684\u8fde\u63a5\u8bbe\u7f6e\uff0c\u5305\u62ec\u670d\u52a1\u5668\u5730\u5740\u3001\u7aef\u53e3\u53ca\u7528\u6237\u4fe1\u606f<\/li>\n<\/ul>\n<h3>3. routing<\/h3>\n<p>\u6d41\u91cf\u8def\u7531\u89c4\u5219\u53ef\u4ee5\u51b3\u5b9a\u5982\u4f55\u5904\u7406\u4e0d\u540c\u7684\u6d41\u91cf\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<br \/> \u201crouting\u201d: {<br \/> \u201crules\u201d: [<br \/> {<br \/> \u201ctype\u201d: \u201cfield\u201d,<br \/> \u201coutboundTag\u201d: \u201cproxy\u201d,<br \/> \u201cdomain\u201d: [<br \/> \u201cgeosite:cn\u201d<br \/> ]<br \/> }<br \/> ]<br \/> }<\/p>\n<ul>\n<li><strong>rules<\/strong>\uff1a\u5b9a\u4e49\u6d41\u91cf\u7684\u8def\u7531\u89c4\u5219<\/li>\n<li><strong>outboundTag<\/strong>\uff1a\u6307\u5b9a\u6d41\u91cf\u7684\u51fa\u53e3<\/li>\n<\/ul>\n<h3>4. policy<\/h3>\n<p>\u7b56\u7565\u914d\u7f6e\u53ef\u4ee5\u63a7\u5236\u8fde\u63a5\u7684\u884c\u4e3a\uff0c\u5982\u91cd\u8bd5\u3001\u8d85\u65f6\u7b49\u3002<br \/> \u201cpolicy\u201d: {<br \/> \u201clevels\u201d: {<br \/> \u201c0\u201d: {<br \/> \u201chandshake\u201d: 4,<br \/> \u201cconn\u201d: 30,<br \/> \u201ctcp\u201d: 10,<br \/> \u201ckcp\u201d: 20,<br \/> \u201cws\u201d: 10<br \/> }<br \/> }<br \/> }<\/p>\n<ul>\n<li><strong>levels<\/strong>\uff1a\u8bbe\u7f6e\u8fde\u63a5\u7684\u5404\u79cd\u53c2\u6570<\/li>\n<\/ul>\n<h3>5. dns<\/h3>\n<p><em>DNS<\/em> \u914d\u7f6e\u662f\u786e\u4fdd\u80fd\u591f\u6b63\u786e\u89e3\u6790\u57df\u540d\u7684\u5173\u952e\u90e8\u5206\u3002<br \/> \u201cdns\u201d: {<br \/> \u201cservers\u201d: [<br \/> \u201c1.1.1.1\u201d,<br \/> \u201c8.8.8.8\u201d<br \/> ]<br \/> }<\/p>\n<ul>\n<li><strong>servers<\/strong>\uff1a\u5b9a\u4e49 DNS \u670d\u52a1\u5668\u5730\u5740<\/li>\n<\/ul>\n<h3>6. log<\/h3>\n<p>\u65e5\u5fd7\u914d\u7f6e\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u76d1\u63a7 <em>v2ray<\/em> \u7684\u8fd0\u884c\u60c5\u51b5\u3002<br \/> \u201clog\u201d: {<br \/> \u201cloglevel\u201d: \u201cinfo\u201d<br \/> }<\/p>\n<ul>\n<li><strong>loglevel<\/strong>\uff1a\u5b9a\u4e49\u65e5\u5fd7\u7ea7\u522b<\/li>\n<\/ul>\n<h2>\u5e38\u89c1\u95ee\u9898\u89e3\u7b54 (FAQ)<\/h2>\n<h3>Q1: v2ray\u914d\u7f6e\u6587\u4ef6\u683c\u5f0f\u6709\u4f55\u8981\u6c42\uff1f<\/h3>\n<p><em>A1<\/em>: <em>v2ray<\/em> \u914d\u7f6e\u6587\u4ef6\u5fc5\u987b\u4f7f\u7528 JSON \u683c\u5f0f\uff0c\u6ce8\u610f\u4f7f\u7528\u6b63\u786e\u7684\u6807\u70b9\u7b26\u53f7\uff08\u5982\u9017\u53f7\u3001\u5f15\u53f7\uff09\u548c\u7ed3\u6784\uff0c\u907f\u514d\u8bed\u6cd5\u9519\u8bef\u3002<\/p>\n<h3>Q2: \u5982\u4f55\u751f\u6210 UUID\uff1f<\/h3>\n<p><em>A2<\/em>: \u53ef\u4ee5\u4f7f\u7528\u5728\u7ebf UUID \u751f\u6210\u5668\uff0c\u6216\u8005\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5982 <code>uuidgen<\/code> \u6765\u751f\u6210\u4e00\u4e2a\u968f\u673a\u7684 UUID\u3002<\/p>\n<h3>Q3: v2ray\u7684\u914d\u7f6e\u6587\u4ef6\u9700\u8981\u91cd\u542f\u5417\uff1f<\/h3>\n<p><em>A3<\/em>: \u6bcf\u6b21\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u540e\uff0c\u9700\u8981\u91cd\u542f <em>v2ray<\/em> \u670d\u52a1\u624d\u80fd\u4f7f\u66f4\u6539\u751f\u6548\u3002<\/p>\n<h3>Q4: v2ray\u652f\u6301\u54ea\u4e9b\u534f\u8bae\uff1f<\/h3>\n<p><em>A4<\/em>: <em>v2ray<\/em> \u652f\u6301\u591a\u79cd\u534f\u8bae\uff0c\u5982 <em>vmess<\/em>\u3001<em>vless<\/em>\u3001<em>socks<\/em>\u3001_http_\u7b49\u3002\u4e0d\u540c\u534f\u8bae\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u573a\u666f\u3002<\/p>\n<h3>Q5: \u5982\u4f55\u67e5\u770bv2ray\u7684\u8fd0\u884c\u65e5\u5fd7\uff1f<\/h3>\n<p><em>A5<\/em>: \u6839\u636e\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u65e5\u5fd7\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u5728\u6307\u5b9a\u7684\u8def\u5f84\u4e0b\u67e5\u770b\u8fd0\u884c\u65e5\u5fd7\uff0c\u901a\u5e38\u4f7f\u7528 <em>tail<\/em> \u547d\u4ee4\u6765\u67e5\u770b\u5b9e\u65f6\u65e5\u5fd7\u3002<\/p>\n<h3>Q6: v2ray\u4e0e\u5176\u4ed6\u4ee3\u7406\u5de5\u5177\u76f8\u6bd4\u6709\u4f55\u4f18\u52bf\uff1f<\/h3>\n<p><em>A6<\/em>: <em>v2ray<\/em> \u7684\u4f18\u52bf\u5728\u4e8e\u652f\u6301\u591a\u79cd\u534f\u8bae\u3001\u52a8\u6001\u8def\u7531\u3001\u6df7\u6dc6\u6280\u672f\u4ee5\u53ca\u7075\u6d3b\u7684\u914d\u7f6e\u65b9\u5f0f\uff0c\u80fd\u591f\u66f4\u597d\u5730\u9002\u5e94\u5404\u79cd\u7f51\u7edc\u73af\u5883\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p><em>v2ray<\/em> \u914d\u7f6e\u6587\u4ef6\u662f\u5176\u5f3a\u5927\u529f\u80fd\u7684\u57fa\u7840\uff0c\u5408\u7406\u7684\u914d\u7f6e\u53ef\u4ee5\u6709\u6548\u63d0\u5347\u4f53\u9a8c\u3002\u901a\u8fc7\u672c\u7bc7\u6587\u7ae0\uff0c\u5e0c\u671b\u8bfb\u8005\u5bf9 <em>v2ray<\/em> \u914d\u7f6e\u6587\u4ef6\u6709\u4e86\u66f4\u6df1\u5165\u7684\u7406\u89e3\uff0c\u5982\u6709\u5176\u4ed6\u95ee\u9898\uff0c\u6b22\u8fce\u7ee7\u7eed\u8ba8\u8bba\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662fv2ray\uff1f v2ray \u662f\u4e00\u79cd\u7528\u4e8e\u7f51\u7edc\u4ee3\u7406\u7684\u8f6f\u4ef6\uff0c\u63d0\u4f9b\u4e86\u4e00\u79cd\u5f3a\u5927\u7684\u65b9\u5f0f\u6765\u7a81\u7834\u7f51\u7edc\u9650\u5236\u548c\u4fdd\u62a4\u7528\u6237\u9690\u79c1\u3002\u5b83\u4e3b\u8981\u88ab\u7528\u4e8e\u548c\u79d1\u5b66\u4e0a\u7f51\u3002v2ray \u914d\u7f6e\u6587\u4ef6\u662f\u5176\u8fd0\u884c\u7684\u6838\u5fc3\uff0c\u901a\u8fc7\u6b63\u786e\u7684\u914d\u7f6e\u53ef\u4ee5\u5b9e\u73b0\u591a\u79cd\u529f\u80fd\u3002 v2ray\u914d\u7f6e\u6587\u4ef6\u7684\u57fa\u672c\u7ed3\u6784 v2ray \u7684\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u4e3a JSON \u683c\u5f0f\uff0c\u4e3b\u8981\u5206\u4e3a\u4ee5\u4e0b\u51e0\u90e8\u5206\uff1a inbounds\uff1a\u914d\u7f6e\u5165\u7ad9\u8fde\u63a5\u7684\u53c2\u6570 outbounds\uff1a\u914d\u7f6e\u51fa\u7ad9\u8fde\u63a5\u7684\u53c2\u6570 routing\uff1a\u914d\u7f6e\u6d41\u91cf\u7684\u8def\u7531 policy\uff1a\u914d\u7f6e\u8bbf\u95ee\u7b56\u7565 dns\uff1a\u914d\u7f6e DNS \u8bbe\u7f6e log\uff1a\u914d\u7f6e\u65e5\u5fd7\u4fe1\u606f v2ray\u914d\u7f6e\u6587\u4ef6\u7684\u8be6\u7ec6\u8bf4\u660e 1. inbounds \u5728 v2ray \u4e2d\uff0cinbounds \u5b9a\u4e49\u4e86\u53ef\u4ee5\u63a5\u53d7\u7684\u8fde\u63a5\u65b9\u5f0f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a \u201cinbounds\u201d: [ { \u201cport\u201d: 1080, \u201cprotocol\u201d: \u201csocks\u201d, \u201csettings\u201d: { \u201cauth\u201d: \u201cnoauth\u201d, \u201cudp\u201d: true, \u201cip\u201d: \u201c0.0.0.0\u201d } } ] port\uff1a\u76d1\u542c\u7684\u7aef\u53e3 protocol\uff1a\u534f\u8bae\u7c7b\u578b\uff0c\u5982 socks \u6216 vmess settings\uff1a\u534f\u8bae\u7684\u5177\u4f53\u8bbe\u7f6e 2. outbounds outbounds \u7528\u4e8e\u914d\u7f6e v2ray \u7684\u51fa\u7ad9\u8fde\u63a5\u3002 \u201coutbounds\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-57851","post","type-post","status-publish","format-standard","hentry","category-vpn"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/57851","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=57851"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/57851\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=57851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=57851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=57851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}