{"id":350,"date":"2019-12-05T10:41:21","date_gmt":"2019-12-05T02:41:21","guid":{"rendered":"https:\/\/www.789ccc.xyz\/?p=350"},"modified":"2019-12-05T10:41:21","modified_gmt":"2019-12-05T02:41:21","slug":"v2ray%e6%9c%ba%e5%9c%ba%e9%ab%98%e7%ba%a7%e6%8a%80%e5%b7%a7-%e6%b5%81%e9%87%8f%e4%bc%aa%e8%a3%85","status":"publish","type":"post","link":"https:\/\/www.789ccc.xyz\/?p=350","title":{"rendered":"V2Ray\u673a\u573a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014\u6d41\u91cf\u4f2a\u88c5"},"content":{"rendered":"<!--wp-compress-html--><!--wp-compress-html no compression--><p>\u4f1a\u5458\u6ce8\u610f\uff1a\u4e0b\u9762\u5185\u5bb9\u4e0d\u9002\u5408\u672c\u673a\u573a\uff0c\u8bf7\u76f4\u63a5\u5ffd\u7565\u3002<\/p>\n<p><span style=\"color: #ff0000;\">\u58f0\u660e\uff1a\u672c\u6587\u4ec5\u8f6c\u8f7d\uff0c\u7248\u6743\u5f52\u539f\u4f5c\u8005\u6240\u6709\uff0c\u53ef\u80fd\u4e0d\u9002\u5408\u672c\u673a\u573a\u3002\u5982\u679c\u4f60\u5bf9\u00a0<a style=\"color: #ff0000;\" href=\"https:\/\/www.shidongli126.xyz\/\" rel=\"nofollow\" >V2Ray \u673a\u573a\u00a0<\/a>\u611f\u5174\u8da3\uff0c\u70b9\u51fb\u8fd9\u91cc\uff1a\u00a0<a style=\"color: #ff0000;\" href=\"https:\/\/www.shidongli126.xyz\/\" rel=\"nofollow\" >V2Ray \u673a\u573a<\/a>\u00a0\u5728\u7ebf\u8282\u70b9 50+\uff0c\u5f00\u653e\u6ce8\u518c\uff01\uff01\u8fd8\u4fbf\u5b9c\uff01\uff01\uff01<\/span><\/p>\n<p>\u524d\u6587 \u201c<a href=\"https:\/\/www.789ccc.xyz\/?cat=2\" rel=\"nofollow\" >V2Ray \u6559\u7a0b<\/a>\u201d \u4ecb\u7ecd\u4e86<code class=\" prettyprinted\"><span class=\"pln\">V2Ray<\/span><\/code>\u7684\u57fa\u672c\u7528\u6cd5\uff0c\u672c\u6587\u4ecb\u7ecd<code class=\" prettyprinted\"><span class=\"pln\">V2Ray<\/span><\/code>\u7684\u9ad8\u7ea7\u4f7f\u7528\u6280\u5de7\uff1a\u6d41\u91cf\u4f2a\u88c5\u3002\u5ba2\u6237\u7aef\u4e0b\u8f7d\u8bf7\u8bbf\u95ee\uff1a<a href=\"https:\/\/www.789ccc.xyz\/?page_id=8\" rel=\"nofollow\" >V2ray \u5ba2\u6237\u7aef\u4e0b\u8f7d<\/a>\uff0c\u62ef\u6551\u88ab\u5899\u7684\u670d\u52a1\u5668\u8bf7\u53c2\u8003\uff1a\u62ef\u6551\u88ab\u5899\u7684\u670d\u52a1\u5668\u3002<\/p>\n<h2>\u4e3a\u4f55\u9700\u8981\u6d41\u91cf\u4f2a\u88c5<\/h2>\n<p>\u4ece\u8bbe\u7acb\u5899\u4ee5\u6765\uff0c\u6211\u56fd\u7684\u7f51\u7edc\u5c01\u9501\u6280\u672f\u4e00\u76f4\u662f\u5168\u7403\u9886\u5148\u7684\u3002\u52a0\u4e0a\u65b9\u6821\u957f\u7b49\u4eba\u6301\u7eed\u505a\u8d21\u732e\uff0c\u5c01\u9501\u548c\u5e72\u6270\u6280\u672f\u4e5f\u5728\u4e0d\u65ad\u6f14\u5316\u548c\u8fdb\u6b65\u3002\u4f20\u7edf\u7684 VPN\u3001ssh \u96a7\u9053\u7b49\u79d1\u5b66\u4e0a\u7f51\u65b9\u5f0f\u6e10\u6e10\u88ab\u5899\u8bc6\u522b\u548c\u5e72\u6270\uff0c\u8bbf\u95ee\u5883\u5916\u7f51\u7ad9\u8d8a\u6765\u8d8a\u96be\uff0c\u5012\u903c\u7f51\u6c11\u4e0d\u65ad\u63a8\u52a8\u7a7f\u5899\u6280\u672f\u7684\u53d1\u5c55\u3002<\/p>\n<p>\u79d1\u5b66\u4e0a\u7f51\u8fd9\u4e9b\u5e74\u6765\uff0c\u89c1\u8bc1\u4e86\u8bf8\u591a\u6280\u672f\u7684\u5174\u8d77\u548c\u6d88\u6c89\uff0c\u81ea\u67b6\u670d\u52a1\u5668\u88ab\u7eca\u8005\u66f4\u662f\u6570\u4e0d\u80dc\u6570\u3002\u7ecf\u5386\u8fc7\u8c08\u7b11\u98ce\u751f\u7684\u5c81\u6708\uff0c\u624d\u77e5\u95f7\u58f0\u53d1\u5927\u8d22\u662f\u4eba\u751f\u771f\u7406\u3002\u7ffb\u5899\u6280\u672f\u540c\u6837\u5982\u6b64\uff0c\u4e00\u662f\u4e0d\u8981\u9ad8\u8c03\u548c\u5f20\u626c\uff0c\u5426\u5219\u5927\u6982\u7387\u88ab\u6253\u51fb\u548c\u5c4f\u853d\uff1b\u5176\u6b21\u6d41\u91cf\u5c3d\u91cf\u4e0e\u5e38\u89c1\u6d41\u91cf\u63a5\u8fd1\uff0c\u4e0d\u8981\u7279\u7acb\u72ec\u884c\uff0c\u4f8b\u5982\u4f7f\u7528\u975e\u5e38\u7528\u7aef\u53e3\u3001\u81ea\u5b9a\u4e49\u5947\u602a\u7684\u534f\u8bae\u3002\u672c\u6587\u4ecb\u7ecd\u7684\u4f2a\u88c5\u662f\u5c06\u7a7f\u5899\u6d41\u91cf\u7528\u5e38\u89c1\u7684 https\/tls \u65b9\u5f0f\u5305\u88c5\uff0c\u964d\u4f4e vps \u88ab block \u7684\u51e0\u7387\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u672c\u6587\u5047\u8bbe\u8bfb\u8005\u5df2\u7ecf\u5177\u5907\u4ee5\u4e0b\u6761\u4ef6\uff1a<\/p>\n<ol>\n<li>\u4e00\u53f0\u5883\u5916\u7684 vps\uff0c\u8d2d\u4e70\u53ef\u53c2\u8003\uff1a\u4e00\u4e9b VPS \u5546\u5bb6\u6574\u7406;<\/li>\n<li>\u4e00\u4e2a\u57df\u540d\uff0c\u65e0\u5907\u6848\u8981\u6c42\uff08\u5907\u6848\u4e86\u6d41\u91cf\u6765\u5f80\u66f4\u987a\u7545\uff0c\u4f46\u610f\u5473\u7740\u4e07\u4e00\u6709\u4e8b\uff0c\u88ab\u559d\u8336\u66f4\u5bb9\u6613\u4e86\uff09\uff1b<\/li>\n<li>\u4e3a\u57df\u540d\u7533\u8bf7\u4e00\u4e2a\u8bc1\u4e66\uff0c\u53ef\u4ee5\u7528\u514d\u8d39\u7684 Let\u2019s Encrypt \u8bc1\u4e66\uff0c\u53c2\u8003\uff1a\u4f7f\u7528 Let\u2019s Encrypt \u7684\u514d\u8d39\u8bc1\u4e66<\/li>\n<li>\u6709\u57fa\u672c linux \u6280\u5de7\uff0c\u80fd\u4f7f\u7528 vim\/nano \u7b49\u7f16\u8f91\u5668\u3002<\/li>\n<\/ol>\n<p>\u7406\u8bba\u4e0a\u6765\u8bf4\uff0c\u8bc1\u4e66\u4e0d\u662f\u5fc5\u987b\u7684\u3002\u4f46\u6ca1\u6709 tls \u52a0\u6301\u6216\u4e0d\u505a\u52a0\u5bc6\uff0c\u5899\u76f4\u63a5\u80fd\u770b\u51fa\u771f\u5b9e\u610f\u56fe\u4ece\u800c\u8fdb\u884c\u5e72\u6270\uff0c\u8fd9\u4e5f\u662f\u4e3a\u4ec0\u4e48\u4e0d\u5efa\u8bae\u4f2a\u88c5 http \u6d41\u91cf\u7684\u539f\u56e0\u3002\u672c\u6587\u7ed9\u51fa\u7684\u65b9\u6cd5\u91c7\u7528\u5408\u6cd5\u673a\u6784\u7b7e\u53d1\u7684\u8bc1\u4e66\u5bf9\u6d41\u91cf\u8fdb\u884c\u52a0\u5bc6\uff0c\u4e0d\u662f\u505a\u7279\u5f81\u6df7\u6dc6\u5f97\u5230\u7684 tls \u6d41\u91cf\uff0c\u4ece\u800c\u66f4\u96be\u88ab\u68c0\u6d4b\u548c\u5e72\u6270\u3002<\/p>\n<p>\u5173\u4e8e\u4f2a\u88c5\u6280\u672f\u7684\u9009\u62e9\uff0cwebsocket+tls+web \u548c http2+tls+web \u5e38\u7528\u6765\u505a\u5bf9\u6bd4\u3002\u7406\u8bba\u4e0a http2 \u7701\u53bb\u4e86 upgrade \u7684\u8bf7\u6c42\uff0c\u6027\u80fd\u66f4\u597d\u3002\u4f46\u5b9e\u9645\u4f7f\u7528\u4e2d\u4e24\u8005\u6ca1\u6709\u660e\u663e\u533a\u522b\uff0c\u52a0\u4e4b\u67d0\u4e9b web \u670d\u52a1\u5668\uff08\u4f8b\u5982 nginx\uff09\u4e0d\u652f\u6301\u540e\u7aef\u670d\u52a1\u5668\u4e3a http2\uff0c\u6240\u4ee5 websocket \u7684\u65b9\u5f0f\u66f4\u6d41\u884c\u3002\u5982\u679c\u4f60\u8981\u4e0a http2\uff0c\u8bb0\u5f97 web \u670d\u52a1\u5668\u4e0d\u80fd\u7528 nginx\uff0c\u8981\u7528\u540e\u7aef\u652f\u6301 http2 \u7684 caddy \u7b49\u8f6f\u4ef6\u3002<\/p>\n<p>\u4e0b\u6587\u4ecb\u7ecd\u6d41\u91cf\u4f2a\u88c5\u7684\u914d\u7f6e\u6b65\u9aa4\uff0c\u6f14\u793a\u57df\u540d\u4e3a<code class=\" prettyprinted\"><span class=\"pln\">tlanyan<\/span><span class=\"pun\">.<\/span><span class=\"pln\">me<\/span><\/code>\uff0c\u670d\u52a1\u5668\u4e3a linux(centos)\uff0cweb \u670d\u52a1\u5668\u8f6f\u4ef6\u7528 nginx\uff0cwebsocket+tls+web \u7ec4\u5408\uff0c\u6700\u7ec8\u6548\u679c\u4e3a\uff1ahttp\/https \u65b9\u5f0f\u6253\u5f00\u57df\u540d\uff0c\u663e\u793a\u6b63\u5e38\u7684\u7f51\u9875\uff1b<code class=\" prettyprinted\"><span class=\"pln\">V2Ray<\/span><\/code>\u5ba2\u6237\u7aef\u8bf7\u6c42\u7279\u5b9a\u7684\u8def\u5f84\uff0c\u4f8b\u5982<code class=\" prettyprinted\"><span class=\"pln\">https<\/span><span class=\"pun\">:<\/span><span class=\"com\">\/\/tlanyan.me\/awesomepath<\/span><\/code>\uff0c\u80fd\u79d1\u5b66\u4e0a\u7f51\uff1b\u6d4f\u89c8\u5668\u76f4\u63a5\u8bf7\u6c42<code class=\" prettyprinted\"><span class=\"pln\">https<\/span><span class=\"pun\">:<\/span><span class=\"com\">\/\/tlanyan.me\/awesomepath<\/span><\/code>\uff0c\u8fd4\u56de\u201d400 bad request\u201d\u3002\u5373\u5916\u90e8\u770b\u8d77\u6765\u5b8c\u5168\u662f\u4e00\u4e2a\u4eba\u755c\u65e0\u5bb3\u7684\u6b63\u89c4\u7f51\u7ad9\uff0c\u7279\u5b9a\u624b\u6bb5\u8bf7\u6c42\u7279\u5b9a\u7f51\u5740\u624d\u662f\u79d1\u5b66\u4e0a\u7f51\u7684\u901a\u9053\u3002<\/p>\n<h2>\u64cd\u4f5c\u6b65\u9aa4<\/h2>\n<p>\u670d\u52a1\u7aef\u6d89\u53ca\u5230\u4e86 nginx \u548c v2ray\uff0c\u5206\u522b\u4ecb\u7ecd\u5176\u914d\u7f6e\u3002<\/p>\n<h3>1. \u914d\u7f6e dns<\/h3>\n<p>\u5148\u8981\u8bbe\u7f6e dns \u89e3\u6790\uff0c\u5c06\u57df\u540d\u89e3\u6790\u5230 vps \u7684 ip\uff0c\u4f8b\u5982<code class=\" prettyprinted\"><span class=\"pln\">www<\/span><span class=\"pun\">.<\/span><span class=\"pln\">tlanyan<\/span><span class=\"pun\">.<\/span><span class=\"pln\">me<\/span><\/code>\u89e3\u6790\u5230 xxx.xxx.xx.xx\u3002<\/p>\n<p>\u5982\u679c\u4f60\u4e0a\u4e86 cdn\uff0c\u5219 dns \u8981\u89e3\u6790\u5230 cdn \u7ed9\u7684 ip \u6216\u8005\u522b\u540d\u7f51\u5740\uff08cname\uff09\u3002\u4f7f\u7528 cdn \u80fd\u9690\u85cf\u771f\u5b9e vps \u7684 ip\uff0c\u907f\u514d vps \u88ab\u5899\u6216\u80fd\u62ef\u6551\u88ab\u5c01\u9501 ip \u7684 vps\uff0c\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u8fd8\u80fd\u52a0\u901f\u8bbf\u95ee\u3002\u7528 cdn \u7684\u597d\u5904\u5f88\u591a\uff0c\u4f46\u914d\u7f6e\u8d77\u6765\u66f4\u9ebb\u70e6\uff0c\u5efa\u8bae\u65b0\u624b\u5148\u6478\u900f https \u6d41\u91cf\u4f2a\u88c5\u540e\u518d\u8003\u8651\u4e0a cdn\u3002<\/p>\n<h3>2. \u914d\u7f6e nginx<\/h3>\n<p>\u5982\u679c\u4f60\u5df2\u6709\u57df\u540d\u5e76\u6b63\u786e\u914d\u7f6e\u4e86 ssl \u8bc1\u4e66\uff0c\u53ef\u5ffd\u7565\u8fd9\u4e00\u6b65\u3002<\/p>\n<p>nginx \u662f\u5e02\u9762\u4e0a\u5360\u6709\u7387\u6700\u9ad8\u7684\u7f51\u7ad9\u670d\u52a1\u5668\u8f6f\u4ef6\uff0ccentos 7 \u7cfb\u7edf\u5b89\u88c5 nginx \u547d\u4ee4\uff1a<code class=\" prettyprinted\"><span class=\"pln\">yum install\u00a0<\/span><span class=\"pun\">-<\/span><span class=\"pln\">y epel<\/span><span class=\"pun\">-<\/span><span class=\"pln\">release\u00a0<\/span><span class=\"pun\">&amp;&amp;<\/span><span class=\"pln\">\u00a0yum install\u00a0<\/span><span class=\"pun\">-<\/span><span class=\"pln\">y nginx<\/span><\/code>\u3002<\/p>\n<p>linux \u7cfb\u7edf\u4e0a nginx \u9ed8\u8ba4\u7ad9\u70b9\u914d\u7f6e\u6587\u4ef6\u662f<code class=\" prettyprinted\"><span class=\"str\">\/etc\/<\/span><span class=\"pln\">nginx<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">conf<\/span><span class=\"pun\">.<\/span><span class=\"pln\">d<\/span><span class=\"pun\">\/<\/span><\/code>\u76ee\u5f55\u4e0b\u7684<code class=\" prettyprinted\"><span class=\"kwd\">default<\/span><span class=\"pun\">.<\/span><span class=\"pln\">conf<\/span><\/code>\uff0c\u6211\u4eec\u5bf9\u4f2a\u88c5\u7f51\u7ad9\u8fdb\u884c\u5168\u7ad9 https \u914d\u7f6e\uff0c\u793a\u4f8b\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre class=\" prettyprinted\">&lt;code class=&quot; prettyprinted&quot;&gt;&lt;span class=&quot;pln&quot;&gt;server &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    listen &lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;80&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    server_name xxxxx&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;  &lt;span class=&quot;com&quot;&gt;# \u6539\u6210\u4f60\u7684\u57df\u540d&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    rewrite &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;^(.*)&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt; https&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;com&quot;&gt;\/\/$server_name$1 permanent;&lt;\/span&gt;\r\n&lt;span class=&quot;pun&quot;&gt;}&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n\r\nserver &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    listen       &lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;443&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt; ssl http2&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    server_name xxxxx&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    charset utf&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;8&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;\r\n\r\n    &lt;span class=&quot;com&quot;&gt;# ssl \u914d\u7f6e&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    ssl_protocols &lt;\/span&gt;&lt;span class=&quot;typ&quot;&gt;TLSv1&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;2&lt;\/span&gt; &lt;span class=&quot;typ&quot;&gt;TLSv1&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;3&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    ssl_ciphers ECDHE&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;RSA&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;AES256&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;GCM&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;SHA512&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;DHE&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;RSA&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;AES256&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;GCM&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;SHA512&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;ECDHE&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;RSA&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;AES256&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;GCM&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;SHA384&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;DHE&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;RSA&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;AES256&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;GCM&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;SHA384&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;ECDHE&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;RSA&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;AES256&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;SHA384&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    ssl_ecdh_curve secp384r1&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    ssl_prefer_server_ciphers on&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    ssl_session_cache shared&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;SSL&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;10m&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    ssl_session_timeout &lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;10m&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    ssl_session_tickets off&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    ssl_certificate xxxxx&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt; &lt;span class=&quot;com&quot;&gt;# \u6539\u6210\u4f60\u7684\u8bc1\u4e66\u5730\u5740&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    ssl_certificate_key xxxx&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt; &lt;span class=&quot;com&quot;&gt;# \u6539\u6210\u8bc1\u4e66\u5bc6\u94a5\u6587\u4ef6\u5730\u5740&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n\r\n    access_log  &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;kwd&quot;&gt;var&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;log&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;nginx&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;xxxx&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;access&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;log&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    error_log &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;kwd&quot;&gt;var&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;log&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;nginx&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;xxx&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;error&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;log&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n\r\n    root &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;usr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;share&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;nginx&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;html&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n    location &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;{&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n        index  index&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;html&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;\r\n    &lt;span class=&quot;pun&quot;&gt;}&lt;\/span&gt;\r\n&lt;span class=&quot;pun&quot;&gt;}&lt;\/span&gt;&lt;\/code&gt;<\/pre>\n<p>\u6539\u5b8c\u540e\u7528<code class=\" prettyprinted\"><span class=\"pln\">nginx\u00a0<\/span><span class=\"pun\">-<\/span><span class=\"pln\">t<\/span><\/code>\u547d\u4ee4\u67e5\u770b\u6709\u65e0\u914d\u7f6e\u9519\u8bef\uff0c\u6ca1\u95ee\u9898\u7684\u8bdd<code class=\" prettyprinted\"><span class=\"pln\">systemctl restart nginx<\/span><\/code>\u542f\u52a8 nginx\u3002\u6253\u5f00\u6d4f\u89c8\u5668\u5728\u5730\u5740\u680f\u8f93\u5165\u57df\u540d\uff0c\u5e94\u8be5\u80fd\u770b\u5230 https \u8bbf\u95ee\u7684 nginx \u6b22\u8fce\u9875\u3002<\/p>\n<p>\u65b0\u57df\u540d\u5982\u4f55\u5feb\u901f\u505a\u4e00\u4e2a\u50cf\u6a21\u50cf\u6837\u7684\u7f51\u7ad9\uff1f\u6700\u7b80\u5355\u7684\u529e\u6cd5\u662f\u4ece\u7f51\u4e0a\u4e0b\u8f7d\u7f51\u7ad9\u6a21\u677f\uff0c\u4e0a\u4f20 web \u670d\u52a1\u5668\u7684\u6839\u76ee\u5f55\uff08\u9ed8\u8ba4\u662f<code class=\" prettyprinted\"><span class=\"str\">\/usr\/<\/span><span class=\"pln\">share<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">nginx<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">html<\/span><\/code>\uff09\u3002\u5bf9\u4e8e\u4f2a\u88c5\u7ad9\u6765\u8bf4\uff0c\u9759\u6001\u7ad9\u8db3\u591f\u3002\u5982\u679c\u4f60\u7684\u5883\u5916\u6d41\u91cf\u6bd4\u8f83\u5927\uff0c\u5efa\u8bae\u7528\u722c\u866b\u6216\u8005\u5176\u4ed6\u624b\u6bb5\u505a\u4e00\u4e2a\u770b\u8d77\u6765\u53d7\u6b22\u8fce\u3001\u6d41\u91cf\u5927\u7684\u7ad9\u70b9\uff0c\u4f8b\u5982\u7f8e\u98df\u535a\u5ba2\uff0c\u56fe\u7247\u7ad9\u7b49\u3002<\/p>\n<h3>3. \u5b89\u88c5\u914d\u7f6e V2Ray<\/h3>\n<p>\u8be6\u7ec6\u8fc7\u7a0b\u53ef\u53c2\u8003\u4e0a\u7bc7\uff1a<a href=\"https:\/\/www.789ccc.xyz\/?cat=2\" rel=\"nofollow\" >V2Ray \u6559\u7a0b<\/a><\/p>\n<p>\u5230\u6b64\u4e3a\u6b62\uff0cnginx \u548c V2ray \u5e94\u8be5\u90fd\u80fd\u5404\u81ea\u72ec\u7acb\u6b63\u5e38\u5de5\u4f5c\u3002\u5982\u679c\u6709\u4e00\u4e2a\u51fa\u73b0\u95ee\u9898\uff0c\u5e94\u8be5\u5148\u89e3\u51b3\u518d\u7ee7\u7eed\u4e0b\u9762\u7684\u64cd\u4f5c\u3002<\/p>\n<h3>4. \u670d\u52a1\u7aef\u914d\u7f6e websocket<\/h3>\n<p>\u8fd9\u8282\u4e2d\u6211\u4eec\u5c06 nginx \u548c v2ray \u7ed3\u5408\u3002<\/p>\n<p>\u9996\u5148\u6211\u4eec\u9009\u62e9\u4e00\u4e2a\u8def\u5f84\uff0c\u5efa\u8bae\u4e3a\u4e8c\u7ea7\u6216\u8005\u8f83\u957f\u7684\u4e00\u7ea7\u8def\u5f84\uff0c\u4f8b\u5982<code class=\" prettyprinted\"><span class=\"str\">\/abc\/<\/span><span class=\"kwd\">def<\/span><\/code>\u6216<code class=\" prettyprinted\"><span class=\"pun\">\/<\/span><span class=\"pln\">awesomepath<\/span><\/code>\u3002<\/p>\n<p>\u63a5\u7740\u914d\u7f6e nginx \u5c06\u8fd9\u4e2a\u8def\u5f84\u7684\u8bbf\u95ee\u90fd\u8f6c\u53d1\u5230 v2ray\u3002\u5728<code class=\" prettyprinted\"><span class=\"str\">\/etc\/<\/span><span class=\"pln\">nginx<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">conf<\/span><span class=\"pun\">.<\/span><span class=\"pln\">d<\/span><span class=\"pun\">\/<\/span><span class=\"kwd\">default<\/span><span class=\"pun\">.<\/span><span class=\"pln\">conf<\/span><\/code>\u7684\u7b2c\u4e8c\u4e2a<code class=\" prettyprinted\"><span class=\"pln\">server<\/span><\/code>\u6bb5\u4e2d\u589e\u52a0\u4ee5\u4e0b\u8f6c\u53d1\u914d\u7f6e\uff1a<\/p>\n<pre class=\" prettyprinted\">&lt;code class=&quot; prettyprinted&quot;&gt;&lt;span class=&quot;pln&quot;&gt;location &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;\/&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;awesomepath &lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;\/span&gt; &lt;span class=&quot;com&quot;&gt;# \u4e0e V2Ray \u914d\u7f6e\u4e2d\u7684 path \u4fdd\u6301\u4e00\u81f4&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n      proxy_redirect off&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n      proxy_pass http&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;com&quot;&gt;\/\/127.0.0.1:12345; # \u5047\u8bbe v2ray \u7684\u76d1\u542c\u5730\u5740\u662f 12345&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n      proxy_http_version &lt;\/span&gt;&lt;span class=&quot;lit&quot;&gt;1.1&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n      proxy_set_header &lt;\/span&gt;&lt;span class=&quot;typ&quot;&gt;Upgrade&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt; $http_upgrade&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n      proxy_set_header &lt;\/span&gt;&lt;span class=&quot;typ&quot;&gt;Connection&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;upgrade&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n      proxy_set_header &lt;\/span&gt;&lt;span class=&quot;typ&quot;&gt;Host&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt; $host&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;\r\n      &lt;span class=&quot;com&quot;&gt;# Show real IP in v2ray access.log&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n      proxy_set_header X&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;typ&quot;&gt;Real&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;IP $remote_addr&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt;\r\n      proxy_set_header X&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;typ&quot;&gt;Forwarded&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;\/span&gt;&lt;span class=&quot;typ&quot;&gt;For&lt;\/span&gt;&lt;span class=&quot;pln&quot;&gt; $proxy_add_x_forwarded_for&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;\/span&gt;\r\n&lt;span class=&quot;pun&quot;&gt;}&lt;\/span&gt;&lt;\/code&gt;<\/pre>\n<p>\u914d\u7f6e\u597d\u540e\u91cd\u542f nginx\uff1a<code class=\" prettyprinted\"><span class=\"pln\">systemctl restart nginx<\/span><\/code>\u3002<\/p>\n<p>\u914d\u7f6e v2ray \u63a5\u53d7 nginx \u4f20\u6765\u7684\u6570\u636e\u3002\u5728\u201cinbounds\u201d\u4e2d\u65b0\u589e\u201cstreamSetting\u201d\u914d\u7f6e\uff0c\u4f20\u8f93\u534f\u8bae\u4f7f\u7528\u201cwebsocket\u201d\u3002\u914d\u7f6e\u597d\u540e<code class=\" prettyprinted\"><span class=\"pln\">config<\/span><span class=\"pun\">.<\/span><span class=\"pln\">json<\/span><\/code>\u6587\u4ef6\u770b\u8d77\u6765\u662f\uff1a<\/p>\n<pre class=\" prettyprinted\">&lt;code class=&quot; prettyprinted&quot;&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;\/span&gt;\r\n  &lt;span class=&quot;str&quot;&gt;&quot;log&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;{&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;loglevel&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;warning&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;access&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;\/var\/log\/v2ray\/access.log&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;error&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;\/var\/log\/v2ray\/error.log&quot;&lt;\/span&gt;\r\n   &lt;span class=&quot;pun&quot;&gt;},&lt;\/span&gt;\r\n  &lt;span class=&quot;str&quot;&gt;&quot;inbounds&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;[{&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;port&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;lit&quot;&gt;12345&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;protocol&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;vmess&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;settings&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;{&lt;\/span&gt;\r\n      &lt;span class=&quot;str&quot;&gt;&quot;clients&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;[&lt;\/span&gt;\r\n        &lt;span class=&quot;pun&quot;&gt;{&lt;\/span&gt;\r\n          &lt;span class=&quot;str&quot;&gt;&quot;id&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;xxxxx&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;\/span&gt; &lt;span class=&quot;com&quot;&gt;# \u53ef\u4ee5\u4f7f\u7528 v2ctl uuid \u751f\u6210&lt;\/span&gt;\r\n          &lt;span class=&quot;str&quot;&gt;&quot;level&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;lit&quot;&gt;1&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;\/span&gt;\r\n          &lt;span class=&quot;str&quot;&gt;&quot;alterId&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;lit&quot;&gt;64&lt;\/span&gt;\r\n        &lt;span class=&quot;pun&quot;&gt;}&lt;\/span&gt;\r\n      &lt;span class=&quot;pun&quot;&gt;]&lt;\/span&gt;\r\n    &lt;span class=&quot;pun&quot;&gt;},&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;streamSettings&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;{&lt;\/span&gt;     &lt;span class=&quot;com&quot;&gt;# \u8f7d\u4f53\u914d\u7f6e\u6bb5\uff0c\u8bbe\u7f6e\u4e3a websocket&lt;\/span&gt;\r\n        &lt;span class=&quot;str&quot;&gt;&quot;network&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;ws&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;\/span&gt;\r\n        &lt;span class=&quot;str&quot;&gt;&quot;wsSettings&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;{&lt;\/span&gt;\r\n          &lt;span class=&quot;str&quot;&gt;&quot;path&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;\/awesomepath&quot;&lt;\/span&gt;  &lt;span class=&quot;com&quot;&gt;# \u4e0e nginx \u4e2d\u7684\u8def\u5f84\u4fdd\u6301\u4e00\u81f4&lt;\/span&gt;\r\n        &lt;span class=&quot;pun&quot;&gt;}&lt;\/span&gt;\r\n      &lt;span class=&quot;pun&quot;&gt;},&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;listen&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;127.0.0.1&quot;&lt;\/span&gt; &lt;span class=&quot;com&quot;&gt;# \u51fa\u4e8e\u5b89\u5168\u8003\u8651\uff0c\u5efa\u8bae\u53ea\u63a5\u53d7\u672c\u5730\u94fe\u63a5&lt;\/span&gt;\r\n  &lt;span class=&quot;pun&quot;&gt;}],&lt;\/span&gt;\r\n  &lt;span class=&quot;str&quot;&gt;&quot;outbounds&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;[{&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;protocol&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;freedom&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;settings&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;{}&lt;\/span&gt;\r\n  &lt;span class=&quot;pun&quot;&gt;},{&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;protocol&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;blackhole&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;settings&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;{},&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;tag&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;blocked&quot;&lt;\/span&gt;\r\n  &lt;span class=&quot;pun&quot;&gt;}],&lt;\/span&gt;\r\n  &lt;span class=&quot;str&quot;&gt;&quot;routing&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;{&lt;\/span&gt;\r\n    &lt;span class=&quot;str&quot;&gt;&quot;rules&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;[&lt;\/span&gt;\r\n      &lt;span class=&quot;pun&quot;&gt;{&lt;\/span&gt;\r\n        &lt;span class=&quot;str&quot;&gt;&quot;type&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;field&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;\/span&gt;\r\n        &lt;span class=&quot;str&quot;&gt;&quot;ip&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;pun&quot;&gt;[&lt;\/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;geoip:private&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;],&lt;\/span&gt;\r\n        &lt;span class=&quot;str&quot;&gt;&quot;outboundTag&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt; &lt;span class=&quot;str&quot;&gt;&quot;blocked&quot;&lt;\/span&gt;\r\n      &lt;span class=&quot;pun&quot;&gt;}&lt;\/span&gt;\r\n    &lt;span class=&quot;pun&quot;&gt;]&lt;\/span&gt;\r\n  &lt;span class=&quot;pun&quot;&gt;}&lt;\/span&gt;\r\n&lt;span class=&quot;pun&quot;&gt;}&lt;\/span&gt;&lt;\/code&gt;<\/pre>\n<p><strong>\u6ce8\u610f\uff1a<\/strong>json \u6587\u4ef6\u4e0d\u652f\u6301\u6ce8\u91ca\uff0c\u4e0a\u8ff0\u914d\u7f6e\u4e2d\u201d#\u201d\u53f7\u53ca\u540e\u7eed\u5185\u5bb9\u90fd\u8981\u5220\u6389\u3002<\/p>\n<p>\u914d\u7f6e\u65e0\u8bef\u540e\uff0c\u91cd\u542f v2ray \u670d\u52a1\uff1a<code class=\" prettyprinted\"><span class=\"pln\">systemctl restart v2ray<\/span><\/code>\u3002<\/p>\n<p>\u5982\u4f55\u6d4b\u8bd5 nginx \u4e0e v2ray \u7ed3\u5408\u6ca1\u6709\u95ee\u9898\uff1f\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8f93\u5165\u57df\u540d\u53ca\u5176\u4ed6\u8def\u5f84\uff0c\u5e94\u8be5\u663e\u793a\u6b63\u5e38\u7f51\u9875\u6216\u8005\u9875\u9762\u4e0d\u5b58\u5728\uff0c\u8bf4\u660e nginx \u6b63\u5e38\u5de5\u4f5c\uff1b\u8f93\u5165\u57df\u540d\u52a0 v2ray \u8def\u5f84\uff0c\u4f8b\u5982<code class=\" prettyprinted\"><span class=\"pln\">https<\/span><span class=\"pun\">:<\/span><span class=\"com\">\/\/tlanyan.me\/awesomepath<\/span><\/code>\uff0c\u5e94\u8be5\u51fa\u73b0\u201dBad Request\u201d\uff0c\u8bf4\u660e nginx \u5c06\u6d41\u91cf\u8f6c\u53d1\u7ed9\u4e86 v2ray\uff0c\u5e76\u4e14 v2ray \u6536\u5230\u4e86\u8bf7\u6c42\u3002<\/p>\n<h3>\u5ba2\u6237\u7aef\u8bbe\u7f6e<\/h3>\n<p>\u6700\u540e\u662f\u914d\u7f6e\u5ba2\u6237\u7aef\uff0c\u4ee5 Windows \u5e73\u53f0\u7684<code class=\" prettyprinted\"><span class=\"pln\">V2RayW<\/span><\/code>\u8f6f\u4ef6\u4e3a\u4f8b\u8bf4\u660e\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<p>\u6253\u5f00<code class=\" prettyprinted\"><span class=\"pln\">V2RayW<\/span><\/code>\uff0c\u53f3\u952e\u6258\u76d8\u56fe\u6807\uff0c\u70b9\u51fb\u201c\u914d\u7f6e\u201d\u3002\u5728\u5f39\u6846\u4e2d\u65b0\u5efa\u6216\u4fee\u6539\u5df2\u6709\u7684\u670d\u52a1\u5668\uff0c\u8f93\u5165\u670d\u52a1\u5668 ip\uff0c\u7aef\u53e3\u5199 443\uff0c\u628a\u7528\u6237 id\u3001\u989d\u5916 id \u4fe1\u606f\u586b\u4e0a\uff0c\u7f51\u7edc\u7c7b\u578b\u9009\u62e9\u201dws\u201d\u3002\u63a5\u7740\u70b9\u201c\u4f20\u8f93\u8bbe\u7f6e\u201d\uff0c\u627e\u5230\u201cwebsocket\u201d\uff0c\u8def\u5f84\u4e00\u680f\u8f93\u5165 nginx \u548c v2ray \u4e2d\u7684\u8def\u5f84\uff0c\u4f8b\u5982\u201c\/awesomepath\u201d\uff1bhttp \u5934\u90e8\u8f93\u5165\uff1a<\/p>\n<pre class=\" prettyprinted\">&lt;code class=&quot; prettyprinted&quot;&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;\/span&gt;\r\n&lt;span class=&quot;str&quot;&gt;&quot;Host&quot;&lt;\/span&gt;&lt;span class=&quot;pun&quot;&gt;:&lt;\/span&gt;&lt;span class=&quot;str&quot;&gt;&quot;\u4f60\u7684\u57df\u540d\uff0c\u4f8b\u5982 www.tlanyan.me&quot;&lt;\/span&gt;\r\n&lt;span class=&quot;pun&quot;&gt;}&lt;\/span&gt;&lt;\/code&gt;<\/pre>\n<p>\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><a href=\"https:\/\/tlanyan.me\/v2ray-traffic-mask\/v2ray1\/\" rel=\"attachment wp-att-5672\" rel=\"nofollow\" ><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5672 lazyloaded\" src=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/V2RAY1.png\" title=\"V2Ray\u673a\u573a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014\u6d41\u91cf\u4f2a\u88c5\" alt=\"V2Ray\u673a\u573a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014\u6d41\u91cf\u4f2a\u88c5\" title=\"V2Ray\u673a\u573a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014\u6d41\u91cf\u4f2a\u88c5\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" srcset=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/V2RAY1.png 492w, https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/V2RAY1-300x168.png 300w\" alt=\"\" width=\"492\" height=\"276\" data-data-original=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/V2RAY1.png\"  data-srcset=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/V2RAY1.png 492w, https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/V2RAY1-300x168.png 300w\" data-sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/a><\/p>\n<noscript><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5672 lazyloaded\" src=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/V2RAY1.png\" title=\"V2Ray\u673a\u573a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014\u6d41\u91cf\u4f2a\u88c5\" alt=\"V2Ray\u673a\u573a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014\u6d41\u91cf\u4f2a\u88c5\" title=\"V2Ray\u673a\u573a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014\u6d41\u91cf\u4f2a\u88c5\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" srcset=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/V2RAY1.png 492w, https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/V2RAY1-300x168.png 300w\" alt=\"\" width=\"492\" height=\"276\" data-src=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/V2RAY1.png\" data-srcset=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/V2RAY1.png 492w, https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/V2RAY1-300x168.png 300w\" data-sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/a><\/p><\/noscript>\n<p>\u63a5\u7740\u70b9\u51fb\u201ctls\u201d\uff0c\u52fe\u9009\u201c\u542f\u7528\u4f20\u8f93\u5c42\u52a0\u5bc6 tls\u201d\uff0c\u5728\u201c\u670d\u52a1\u5668\u57df\u540d\u201d\u7684\u8f93\u5165\u6846\u4e2d\u8f93\u5165\u57df\u540d\uff0c\u622a\u56fe\u5982\u4e0b\uff1a<\/p>\n<p><a href=\"https:\/\/tlanyan.me\/v2ray-traffic-mask\/v2ray2\/\" rel=\"attachment wp-att-5673\" rel=\"nofollow\" ><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5673 lazyloaded\" src=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/v2ray2.png\" title=\"V2Ray\u673a\u573a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014\u6d41\u91cf\u4f2a\u88c5\" alt=\"V2Ray\u673a\u573a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014\u6d41\u91cf\u4f2a\u88c5\" title=\"V2Ray\u673a\u573a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014\u6d41\u91cf\u4f2a\u88c5\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" srcset=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/v2ray2.png 494w, https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/v2ray2-300x171.png 300w\" alt=\"\" width=\"494\" height=\"282\" data-data-original=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/v2ray2.png\"  data-srcset=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/v2ray2.png 494w, https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/v2ray2-300x171.png 300w\" data-sizes=\"(max-width: 494px) 100vw, 494px\" \/><\/a><\/p>\n<noscript><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5673 lazyloaded\" src=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/v2ray2.png\" title=\"V2Ray\u673a\u573a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014\u6d41\u91cf\u4f2a\u88c5\" alt=\"V2Ray\u673a\u573a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014\u6d41\u91cf\u4f2a\u88c5\" title=\"V2Ray\u673a\u573a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014\u6d41\u91cf\u4f2a\u88c5\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" srcset=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/v2ray2.png 494w, https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/v2ray2-300x171.png 300w\" alt=\"\" width=\"494\" height=\"282\" data-src=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/v2ray2.png\" data-srcset=\"https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/v2ray2.png 494w, https:\/\/tlanyan.me\/wp-content\/uploads\/2019\/09\/v2ray2-300x171.png 300w\" data-sizes=\"(max-width: 494px) 100vw, 494px\" \/><\/a><\/p><\/noscript>\n<p>\u4fe1\u606f\u586b\u5199\u6b63\u786e\u540e\uff0c\u70b9\u51fb\u201c\u4fdd\u5b58\u201d\u3002\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee google.com\uff0cyoutube.com \u7b49\u7f51\u7ad9\uff0c\u914d\u7f6e\u65e0\u8bef\u7684\u8bdd\u5e94\u8be5\u90fd\u80fd\u6b63\u5e38\u6253\u5f00\u3002<\/p>\n<p>\u5982\u679c\u5bf9 nginx\/v2ray \u4ee5\u53ca\u5ba2\u6237\u7aef\u7684\u914d\u7f6e\u4e0d\u719f\u6089\uff0c\u5efa\u8bae\u4f7f\u7528\u8fd9\u4e2a v2ray \u914d\u7f6e\u751f\u6210\u5de5\u5177\uff1a<a href=\"https:\/\/www.veekxt.com\/utils\/v2ray_gen\" rel=\"nofollow\" >v2ray \u914d\u7f6e\u751f\u6210<\/a><\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>https\/tls \u4f1a\u52a0\u5bc6\u8def\u5f84\u4fe1\u606f\uff0c\u4ec5\u9760\u4e2d\u95f4\u73af\u8282\u6355\u6349\u5230\u7684\u6d41\u91cf\u5305\u6781\u96be\u533a\u5206\u662f\u6b63\u5e38\u8bf7\u6c42\u8fd8\u662f\u5939\u5e26\u79c1\u8d27\u7684\u6d41\u91cf\u3002\u8fd9\u4e5f\u663e\u793a\u4e86 v2ray \u7684\u5f3a\u5927\u4e4b\u5904\uff1a\u901a\u8fc7\u914d\u7f6e\u4e0d\u540c\u7684\u534f\u8bae\u548c\u8f7d\u4f53\uff0c\u5c31\u80fd\u5bf9\u8fdb\u51fa\u7684\u6d41\u91cf\u505a\u5b9a\u5236\u3002\u4ece\u6d41\u91cf\u4f2a\u88c5\u3001\u53cd\u5411\u4ee3\u7406\u7684\u529f\u80fd\u4e0a\u770b\uff0cv2ray \u6beb\u65e0\u7591\u95ee\u7684\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u7f51\u7edc\u6846\u67b6\/\u5de5\u5177\uff0c\u79d1\u5b66\u4e0a\u7f51\u529f\u80fd\u53ea\u662f\u5176\u4e00\u4e2a\u6210\u529f\u5e94\u7528\u3002<\/p>\n<p>\u6bd4\u8f83\u8ba9\u4eba\u9057\u61be\u7684\u662f v2ray \u7684 ios \u5ba2\u6237\u7aef\u5747\u6536\u8d39\uff0c\u5ba2\u6237\u7aef\u4e0b\u8f7d\u8bf7\u8bbf\u95ee\uff1a<a href=\"https:\/\/www.789ccc.xyz\/?page_id=8\" rel=\"nofollow\" >V2ray \u5ba2\u6237\u7aef\u4e0b\u8f7d<\/a>\u3002<\/p>\n<h2>\u53c2\u8003<\/h2>\n<ol>\n<li><a href=\"https:\/\/guide.v2fly.org\/advanced\/advanced.html\" rel=\"nofollow\" >\u65b0 V2Ray \u767d\u8bdd\u6587\u6307\u5357<\/a><\/li>\n<li><a href=\"https:\/\/serverfault.com\/questions\/765258\/use-http-2-0-between-nginx-reverse-proxy-and-backend-webserver\" rel=\"nofollow\" >Use HTTP\/2.0 between nginx reverse-proxy and backend webserver<\/a><\/li>\n<\/ol>\n<!--wp-compress-html no compression--><!--wp-compress-html-->","protected":false},"excerpt":{"rendered":"<p>\u4f1a\u5458\u6ce8\u610f\uff1a\u4e0b\u9762\u5185\u5bb9\u4e0d\u9002\u5408\u672c\u673a\u573a\uff0c\u8bf7\u76f4\u63a5\u5ffd\u7565\u3002 \u58f0\u660e\uff1a\u672c\u6587\u4ec5\u8f6c\u8f7d\uff0c\u7248\u6743\u5f52\u539f\u4f5c\u8005\u6240\u6709\uff0c\u53ef\u80fd\u4e0d\u9002\u5408\u672c\u673a\u573a\u3002\u5982\u679c\u4f60\u5bf9\u00a0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-350","post","type-post","status-publish","format-standard","hentry","category-zafupu"],"_links":{"self":[{"href":"https:\/\/www.789ccc.xyz\/index.php?rest_route=\/wp\/v2\/posts\/350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.789ccc.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.789ccc.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.789ccc.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.789ccc.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=350"}],"version-history":[{"count":1,"href":"https:\/\/www.789ccc.xyz\/index.php?rest_route=\/wp\/v2\/posts\/350\/revisions"}],"predecessor-version":[{"id":351,"href":"https:\/\/www.789ccc.xyz\/index.php?rest_route=\/wp\/v2\/posts\/350\/revisions\/351"}],"wp:attachment":[{"href":"https:\/\/www.789ccc.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.789ccc.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.789ccc.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}