{"id":41544,"date":"2020-02-22T05:27:40","date_gmt":"2020-02-21T21:27:40","guid":{"rendered":"http:\/\/4563.org\/?p=41544"},"modified":"2020-02-22T05:27:40","modified_gmt":"2020-02-21T21:27:40","slug":"%e7%bb%99%e4%bd%a0%e4%bb%ac%e6%9d%a5%e7%82%b9%e5%b9%b2%e8%b4%a7%ef%bc%9a%e5%ae%9d%e5%a1%94bt%e9%9d%a2%e6%9d%bfv2ray%ef%bc%9a%e5%ae%9e%e7%8e%b0websockettlsnginx%e5%88%86%e6%b5%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=41544","title":{"rendered":"\u7ed9\u4f60\u4eec\u6765\u70b9\u5e72\u8d27\uff1a\u5b9d\u5854BT\u9762\u677f+V2Ray\uff1a\u5b9e\u73b0Websocket+TLS+Nginx\u5206\u6d41"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>meilinhost<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 18:27:17\t<\/p>\n<h3>\u7ed9\u4f60\u4eec\u6765\u70b9\u5e72\u8d27\uff1a\u5b9d\u5854BT\u9762\u677f+V2Ray\uff1a\u5b9e\u73b0Websocket+TLS+Nginx\u5206\u6d41<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 meilinhost \u4e8e 2019-11-26 19:50 \u7f16\u8f91 <\/p>\n<p> \u53c2\u8003\u8d44\u6599\uff1a<br \/>  https:\/\/injoy.work\/archives\/ed4e432a.html<br \/>  https:\/\/www.hostloc.com\/thread-432082-1-1.html<\/p>\n<p>  \u5b89\u88c5V2Ray<br \/>  SSH\u8fde\u63a5\u4e0a\u8fdc\u7a0bVPS\u540e\uff0c\u4e0b\u8f7d\u5b89\u88c5\u811a\u672c\uff1a<br \/>  wget https:\/\/install.direct\/go.sh<br \/>  \u7136\u540e\u6267\u884c\u811a\u672c\u5b89\u88c5V2Ray\uff1a<br \/>  sudo bash go.sh<br \/>  \u5728\u5b89\u88c5\u5b8cV2Ray\u4e4b\u540e\uff0c\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u91cd\u542fV2Ray\u5373\u53ef\uff0c\u914d\u7f6e\u6587\u4ef6\u8def\u5f84\u4e3a\/etc\/v2ray\/config.json<\/p>\n<p>  \u4ee5\u4e0b\u662fV2Ray\u53ef\u4f7f\u7528\u7684\u547d\u4ee4\uff1a<br \/>  sudo service v2ray start #\u542f\u52a8V2Ray<br \/>  sudo service v2ray stop #\u505c\u6b62\u8fd0\u884cV2Ray<br \/>  sudo service v2ray restart #\u91cd\u542fV2Ray<br \/>  sudo service v2ray status #\u67e5\u770bV2Ray\u72b6\u6001<\/p>\n<p>  \u5b89\u88c5\u5b9d\u5854BT\u9762\u677f\uff08\u7701\u7565\uff09<br \/>  \u767b\u5f55BT\u9762\u677f\u540e\uff0c\u53ef\u4e00\u952e\u90e8\u7f72\u6e90\u7801\uff0c\u9009\u62e9\u5b89\u88c5LNMP\u73af\u5883\uff1b<br \/>  \u4e00\u5207\u90fd\u5b89\u88c5\u5b8c\u540e\uff0c\u70b9\u51fb\u300c\u7f51\u7ad9\u300d\u2014\u2014\u300c\u6dfb\u52a0\u7ad9\u70b9\u300d<\/p>\n<p>  \u6210\u529f\u6dfb\u52a0\u5b8c\u7ad9\u70b9\u540e\uff0c\u70b9\u51fb\u300c\u8bbe\u7f6e\u300d\u2014\u2014SSL\u2014\u2014Let\u2019s Encrypt\uff0c\u6210\u529f\u7533\u8bf7SSL\u540e\uff0c\u4fdd\u5b58<\/p>\n<p>  \u518d\u70b9\u51fb\u7ad9\u70b9\u300c\u8bbe\u7f6e\u300d\u7684\u300c\u914d\u7f6e\u6587\u4ef6\u300d\u9009\u9879\uff0c\u5728\u6700\u540e\u4e00\u4e2a}\u524d\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n<p>  ================================<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;location \/\u4f60\u7684\u4f2a\u88c5\u8def\u5f84 {<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_redirect off;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_pass http:\/\/127.0.0.1:\u4f60\u7684\u7aef\u53e3;#\u8fd9\u4e2a\u7aef\u53e3\u4e0d\u80fd\u662f80\u548c443\uff0c\u8fd9\u662f\u672c\u5730\u76d1\u542c\u7aef\u53e3<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_http_version 1.1;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Upgrade $http_upgrade;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Connection &quot;upgrade&quot;;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Host $http_host;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;}<\/p>\n<p>  ===================================<\/p>\n<p>  \u56de\u5230\u300c\u9996\u9875\u300d\uff0c\u91cd\u542f\u300cNignx\u670d\u52a1\u300d<br \/>  BT\u9762\u677f\u300c\u5b89\u5168\u300d\uff0c\u9632\u706b\u5899\u7aef\u53e3\u653e\u884c\uff0c\u65b0\u589e\u4f60\u7684V2Ray\u7aef\u53e3<br \/>  \u4fee\u6539V2Ray\u914d\u7f6e\u6587\u4ef6<br \/>  \u6253\u5f00\u9762\u677f\u300c\u6587\u4ef6\u300d\uff0c\u5728\u8def\u5f84\u4e2d\u8f93\u5165\/etc\/v2ray\uff0c\u7f16\u8f91\u4e00\u4e0b\u6587\u4ef6\uff0c\u5e76\u4fdd\u5b58<br \/>  ========================================<br \/>  {<br \/>  &quot;log&quot; : {<br \/>  &quot;access&quot;: &quot;\/var\/log\/v2ray\/access.log&quot;,<br \/>  &quot;error&quot;: &quot;\/var\/log\/v2ray\/error.log&quot;,<br \/>  &quot;loglevel&quot;: &quot;warning&quot;<br \/>  },<br \/>  &quot;inbound&quot;: {<br \/>  &quot;port&quot;: \u4f60\u7684\u7aef\u53e3, #\u81ea\u52a8\u751f\u6210\u7684\u7aef\u53e3\uff0c\u987b\u4e0eNignx\u8bbe\u7f6e\u7684\u76f8\u4e00\u81f4\uff0c\u53ef\u81ea\u5b9a\u4e49<br \/>  &quot;protocol&quot;: &quot;vmess&quot;,<br \/>  &quot;settings&quot;: {<br \/>  &nbsp; &nbsp; &quot;clients&quot;: [<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;id&quot;: &quot;b25e5370-3100-4bba-b108-0367e1239efb&quot;, #\u81ea\u52a8\u751f\u6210\u7684UUID<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;level&quot;: 1,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;alterId&quot;: 64<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp; ]<br \/>  },<br \/>  &quot;streamSettings&quot;: {<br \/>  &quot;network&quot;:&quot;ws&quot;,<br \/>  &quot;wsSettings&quot;: {<br \/>  &quot;path&quot;: &quot;\/\u4f60\u7684\u4f2a\u88c5\u8def\u5f84&quot;, #path\u53ef\u81ea\u5b9a\u4e49\uff0c\u8fd9\u91cc\u662f\/ws\uff0c\u987b\u4e0eNginx\u548c\u5ba2\u6237\u7aef\u7684path\u76f8\u4e00\u81f4<br \/>  &quot;headers&quot;: {<br \/>  &quot;Host&quot;: &quot;\u4f60\u7684\u57df\u540d&quot; #Host\u53ef\u81ea\u5b9a\u4e8e\u4efb\u610f\u57df\u540d\uff0c\u6b64\u5904\u6ca1\u6709\u6dfb\u52a0<br \/>  }<br \/>  }<br \/>  }<br \/>  },<br \/>  &quot;outbound&quot;: {<br \/>  &quot;protocol&quot;: &quot;freedom&quot;,<br \/>  &quot;settings&quot;: {}<br \/>  },<br \/>  &quot;outboundDetour&quot;: [<br \/>  {<br \/>  &nbsp; &nbsp; &quot;protocol&quot;: &quot;blackhole&quot;,<br \/>  &nbsp; &nbsp; &quot;settings&quot;: {},<br \/>  &nbsp; &nbsp; &quot;tag&quot;: &quot;blocked&quot;<br \/>  }<br \/>  ],<br \/>  &quot;routing&quot;: {<br \/>  &quot;strategy&quot;: &quot;rules&quot;,<br \/>  &quot;settings&quot;: {<br \/>  &nbsp; &nbsp; &quot;rules&quot;: [<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;type&quot;: &quot;field&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;ip&quot;: [<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;0.0.0.0\/8&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;10.0.0.0\/8&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;100.64.0.0\/10&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;127.0.0.0\/8&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;169.254.0.0\/16&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;172.16.0.0\/12&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;192.0.0.0\/24&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;192.0.2.0\/24&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;192.168.0.0\/16&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;198.18.0.0\/15&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;198.51.100.0\/24&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;203.0.113.0\/24&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;::1\/128&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;fc00::\/7&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;fe80::\/10&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;],<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;outboundTag&quot;: &quot;blocked&quot;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp; ]<br \/>  }<br \/>  }<br \/>  }<\/p>\n<p>  ========================================<\/p>\n<p>  service v2ray restart #\u91cd\u542fV2Ray\u670d\u52a1<br \/>  service v2ray status #\u67e5\u770bv2ray\u662f\u5426\u8fd0\u884c<\/p>\n<p>  \u914d\u7f6e\u5ba2\u6237\u7aef\uff1a<br \/>  ========================================<br \/>  \u786e\u4fdd\u4f60\u6309\u4e0a\u8ff0\u5b89\u88c5\u597d\uff0c\u5e76\u4e14\u65e0\u9519\u8bef<\/p>\n<p>  \u7136\u540e\u5ba2\u6237\u7aef\u5927\u6982\u5c31\u662f<\/p>\n<p>  \u4f60\u7684\u57df\u540d<br \/>  443<br \/>  uuid\u5bc6\u7801<\/p>\n<p>  ID\uff1a64<br \/>  ws<br \/>  \u4f2a\u88c5\u7c7b\u578b\u9ed8\u8ba4none<br \/>  \u4f2a\u88c5\u57df\u540d\u5c31\u662f\u4f60\u57df\u540d<br \/>  \u7136\u540e\u5e95\u5c42tls<br \/>  path\u5c31\u662f\u4e0a\u8ff0\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u4f2a\u88c5\u8def\u5f84<\/p>\n<p>  ========================================<\/p>\n<p>  \u4e0b\u671f\u653e\u51fa ss-v2ray\u63d2\u4ef6+\u5b9d\u5854ws-tls-web-nginx<\/p>\n<p>  https:\/\/www.hostloc.com\/forum.php?mod=viewthread&amp;tid=612728&amp;extra=page%3D1&amp;page=1&amp;mobile=no<\/p>\n<p>  \t\t\t\t\t<strong>wvps<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 18:28:12\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u592a\u9ebb\u70e6\u4e86\uff0c\u76f4\u63a5caddy+v2ray+ws+tls\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u84dd\u8272\u7684\u4fe1\u5c01<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 18:32:25\t<\/p>\n<h3><\/h3>\n<p>  \t\tV2\uff0bws+tls \u901f\u5ea6\u4e0d\u5982\u6b63\u5e38\u9178\u9178\u7684\u4e00\u534a\u3002\u66f4\u522b\u63d0\u52a0\u4e86cf\u7684\u3002&nbsp; &nbsp;\u7528\u7740\u592a\u96be\u53d7\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6697\u9ed1\u9a91\u58eb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 18:30:14\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6b63\u5728\u7528 \u7ebf\u8def\u597d\u6ca1\u5565\u533a\u522b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>meilinhost<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 18:30:32\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4f7f\u7528\u7684\u73af\u5883\u4e0d\u540c\uff0c\u6211\u5728\u5b9d\u5854\u5efa\u7ad9 \u987a\u4fbf\u642d\u4e2a\u7f51\u7ad9\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>003<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 18:30:33\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u54c7\u54c7\u54c7\uff0c\u8fd9\u4e2a\u5fc5\u987b\u8981\u6536\u85cf\u4e00\u6ce2\u54e6:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5c0f\u65ed<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 18:34:07\t<\/p>\n<h3><\/h3>\n<p>  \t\t&nbsp; &nbsp;location \/\u4f60\u7684\u4f2a\u88c5\u8def\u5f84 {<\/p>\n<p>  \u4f2a\u88c5\u8def\u5f84\u662f\u4ec0\u4e48\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>meilinhost<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 18:35:40\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u84dd\u8272\u7684\u4fe1\u5c01 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 18:32<br \/>  V2\uff0bws+tls \u901f\u5ea6\u4e0d\u5982\u6b63\u5e38\u9178\u9178\u7684\u4e00\u534a\u3002\u66f4\u522b\u63d0\u52a0\u4e86cf\u7684\u3002&nbsp; &nbsp;\u7528\u7740\u592a\u96be\u53d7\u4e86<\/p>\n<p> v2\u901f\u5ea6\u5c31\u6162\uff0c\u6211\u5df2\u7ecf\u4ecev2\u6362ss-+v2ray\u63d2\u4ef6\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>meilinhost<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 18:37:11\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5c0f\u65ed \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 18:34<br \/>  location \/\u4f60\u7684\u4f2a\u88c5\u8def\u5f84 {<\/p>\n<p>  \u4f2a\u88c5\u8def\u5f84\u662f\u4ec0\u4e48\uff1f<\/p>\n<p> \u53ef\u4ee5\u968f\u4fbf\u5199 \u6bd4\u5982nginx\uff0c\u6bd4\u5982hostloc \u5982\u679c\u4e0d\u5199\uff0c\u53ea\u7528\/\u4f1a\u5bfc\u81f4\u4f60\u7f51\u7ad9\u6839\u76ee\u5f55\u6253\u4e0d\u5f00\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>eudx<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-11-23 18:40:38\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7b49\u63d2\u4ef6\u5427\u3002\u697c\u4e3b\u5199\u7684\u6bd4\u8f83\u7ec6\u81f4<br \/>  \u5c0f\u767d\u90fd\u80fd\u770b\u61c2:$\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>meilinhost \u5927\u4f6c\u6709\u8bdd\u8bf4 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/41544"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41544"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/41544\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41544"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}