{"id":322,"date":"2019-02-22T09:49:47","date_gmt":"2019-02-22T01:49:47","guid":{"rendered":"https:\/\/wp.yaanren.win\/?p=322"},"modified":"2019-02-22T09:49:47","modified_gmt":"2019-02-22T01:49:47","slug":"%e4%bd%bf%e7%94%a8cloudflare%e4%b8%ad%e8%bd%acv2ray%e6%b5%81%e9%87%8f","status":"publish","type":"post","link":"https:\/\/wp.625300.xyz\/?p=322","title":{"rendered":"\u4f7f\u7528Cloudflare\u4e2d\u8f6cV2Ray\u6d41\u91cf"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">\u8f6c\u8f7d\u81ea\uff1ahttps:\/\/github.com\/233boy\/v2ray\/wiki\/%E4%BD%BF%E7%94%A8Cloudflare%E4%B8%AD%E8%BD%ACV2Ray%E6%B5%81%E9%87%8F<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"user-content-\u51c6\u5907\"><a href=\"https:\/\/github.com\/233boy\/v2ray\/wiki\/%E4%BD%BF%E7%94%A8Cloudflare%E4%B8%AD%E8%BD%ACV2Ray%E6%B5%81%E9%87%8F#%E5%87%86%E5%A4%87\"><\/a>\u51c6\u5907<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a\u57df\u540d\uff0c\u5efa\u8bae\u4f7f\u7528\u514d\u8d39\u57df\u540d<br>\u786e\u4fdd\u57df\u540d\u5df2\u7ecf\u53ef\u4ee5\u5728 Cloudflare \u6b63\u5e38\u4f7f\u7528\u3002<br><strong>\u5728 Cloudflare \u7684 Overview \u9009\u9879\u5361\u53ef\u4ee5\u67e5\u770b\u57df\u540d\u72b6\u6001\uff0c\u8bf7\u786e\u4fdd\u4e3a\u6fc0\u6d3b\u72b6\u6001\uff0c\u5373\u662f\uff1a Status: Active<\/strong><br>\u600e\u4e48 SSH \u8fde\u63a5\u4e0a\u88ab\u5899\u7684 IP ? Xshell \u5728\u5c5e\u6027\u90a3\u91cc\u53ef\u4ee5\u8bbe\u7f6e\u4ee3\u7406\uff0c\u6216\u8005\u4f60\u53ef\u4ee5\u5728\u4e00\u53f0\u6ca1\u6709\u88ab\u5899\u7684\u5883\u5916 VPS \u4f7f\u7528 iptables \u8f6c\u53d1\u6570\u636e\u5230\u88ab\u5899\u7684\u673a\u5668\u4e0a\uff0c\u6b64\u5904\u4e0d\u7ec6\u8bf4\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"user-content-\u6dfb\u52a0\u57df\u540d\u89e3\u6790\"><a href=\"https:\/\/github.com\/233boy\/v2ray\/wiki\/%E4%BD%BF%E7%94%A8Cloudflare%E4%B8%AD%E8%BD%ACV2Ray%E6%B5%81%E9%87%8F#%E6%B7%BB%E5%8A%A0%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90\"><\/a>\u6dfb\u52a0\u57df\u540d\u89e3\u6790<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 DNS \u9009\u9879\u5361\u90a3\u8fb9\u6dfb\u52a0\u4e00\u4e2a A \u8bb0\u5f55\u7684\u57df\u540d\u89e3\u6790\uff0c\u5047\u8bbe\u4f60\u7684\u57df\u540d\u662f 233blog.com\uff0c\u5e76\u4e14\u60f3\u8981\u4f7f\u7528 www.233blog.com \u4f5c\u4e3a\u7ffb\u5899\u7684\u57df\u540d<br>\u90a3\u4e48\u5728 DNS \u90a3\u91cc\u914d\u7f6e\uff0cName \u5199 www\uff0cIPv4 address \u5199\u4f60\u7684 VPS IP\uff0c<strong>\u52a1\u5fc5\u628a\u4e91\u6735\u70b9\u7070<\/strong>\uff0c\u7136\u540e\u9009\u62e9 Add Record \u6765\u6dfb\u52a0\u89e3\u6790\u8bb0\u5f55\u5373\u53ef<br>(\u5982\u679c\u4f60\u5df2\u7ecf\u6dfb\u52a0\u57df\u540d\u89e3\u6790\uff0c<strong>\u8bf7\u52a1\u5fc5\u628a\u4e91\u6735\u70b9\u7070<\/strong>\uff0c\u5373\u662f DNS only)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OK\uff0c\u786e\u4fdd\u64cd\u4f5c\u6ca1\u6709\u95ee\u9898\u7684\u8bdd\uff0c\u7ee7\u7eed<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"user-content-\u5b89\u88c5-v2ray\"><a href=\"https:\/\/github.com\/233boy\/v2ray\/wiki\/%E4%BD%BF%E7%94%A8Cloudflare%E4%B8%AD%E8%BD%ACV2Ray%E6%B5%81%E9%87%8F#%E5%AE%89%E8%A3%85-v2ray\"><\/a>\u5b89\u88c5 V2Ray<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u5982\u679c\u4f60\u5df2\u7ecf\u4f7f\u7528\u672c\u4eba\u63d0\u4f9b\u7684 V2Ray \u4e00\u952e\u5b89\u88c5\u811a\u672c\u5e76\u5b89\u88c5\u4e86 V2Ray\uff0c\u90a3\u5c31\u76f4\u63a5\u8f93\u5165&nbsp;<code>v2ray config<\/code>\u4fee\u6539\u4f20\u8f93\u534f\u8bae\u4e3a WebSocket + TLS<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u5e76\u6ca1\u6709\u4f7f\u7528\u672c\u7ad9\u63d0\u4f9b\u7684 V2Ray \u4e00\u952e\u5b89\u88c5\u811a\u672c\u6765\u5b89\u88c5 V2Ray<br>\u90a3\u4e48\u73b0\u5728\u5f00\u59cb\u4f7f\u7528\u5427\uff0c\u6700\u597d\u7528\u7684 V2Ray \u5b89\u88c5\u811a\u672c\uff0c\u4fdd\u8bc1\u4f60\u6ee1\u610f<br>\u4f7f\u7528 root \u7528\u6237\u8f93\u5165\u4e0b\u9762\u547d\u4ee4\u5b89\u88c5\u6216\u5378\u8f7d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bash &lt;(curl -s -L https:\/\/git.io\/v2ray.sh)\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u5982\u679c\u63d0\u793a curl: command not found \uff0c\u90a3\u662f\u56e0\u4e3a\u4f60\u7684\u5c0f\u9e21\u6ca1\u88c5 Curl<br>ubuntu\/debian \u7cfb\u7edf\u5b89\u88c5 Curl \u65b9\u6cd5:&nbsp;<code>apt-get update -y &amp;&amp; apt-get install curl -y<\/code><br>centos \u7cfb\u7edf\u5b89\u88c5 Curl \u65b9\u6cd5:&nbsp;<code>yum update -y &amp;&amp; yum install curl -y<\/code><br>\u5b89\u88c5\u597d curl \u4e4b\u540e\u5c31\u80fd\u5b89\u88c5\u811a\u672c\u4e86<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e4b\u540e\u9009\u62e9\u5b89\u88c5\uff0c\u4f20\u8f93\u534f\u8bae\u9009\u62e9 WebSocket + TLS (\u5373\u662f\u9009\u62e9 4 )\uff0cV2Ray \u7aef\u53e3\u968f\u4fbf\uff0c\u4e0d\u8981\u662f 80 \u548c 443 \u5373\u53ef\uff0c<strong>\u7136\u540e\u8f93\u5165\u4f60\u7684\u57df\u540d\uff0c\u57df\u540d\u89e3\u6790 Y \uff0c\u81ea\u52a8\u914d\u7f6e TLS \u4e5f\u662f Y<\/strong>&nbsp;\uff0c\u5176\u4ed6\u5c31\u9ed8\u8ba4\u5427\uff0c\u4e00\u8def\u56de\u8f66\u3002\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210<br>\u5982\u679c\u4f60\u7684\u57df\u540d\u6ca1\u6709\u6b63\u786e\u89e3\u6790\uff0c\u5b89\u88c5\u4f1a\u5931\u8d25\uff0c\u89e3\u6790\u76f8\u5173\u770b\u4e0a\u9762\u7684&nbsp;<strong>\u6dfb\u52a0\u57df\u540d\u89e3\u6790<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b89\u88c5\u5b8c\u6210\u540e\u4f1a\u5c55\u793a V2Ray \u7684\u914d\u7f6e\u4fe1\u606f\uff0c\u5e76\u4e14\u4f1a\u8be2\u95ee\u662f\u5426\u751f\u6210\u4e8c\u7ef4\u7801\u7b49\uff0c\u4e0d\u7528\u7ba1\u5b83\uff0c\u76f4\u63a5\u56de\u8f66<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u7136\u540e\u8f93\u5165 v2ray status \u67e5\u770b\u4e00\u4e0b\u8fd0\u884c\u72b6\u6001\uff0c\u8bf7\u786e\u4fdd V2Ray \u548c Caddy \u90fd\u5728\u8fd0\u884c<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u6ca1\u6709\u95ee\u9898\u7684\u8bdd\uff0c\u7ee7\u7eed<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"user-content-\u8bbe\u7f6e-crypto-\u548c-\u5f00\u542f\u4e2d\u8f6c\"><a href=\"https:\/\/github.com\/233boy\/v2ray\/wiki\/%E4%BD%BF%E7%94%A8Cloudflare%E4%B8%AD%E8%BD%ACV2Ray%E6%B5%81%E9%87%8F#%E8%AE%BE%E7%BD%AE-crypto-%E5%92%8C-%E5%BC%80%E5%90%AF%E4%B8%AD%E8%BD%AC\"><\/a>\u8bbe\u7f6e Crypto \u548c \u5f00\u542f\u4e2d\u8f6c<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u786e\u4fdd Cloudflare \u7684 Crypto \u9009\u9879\u5361\u7684 SSL \u4e3a Full<br><strong>\u5e76\u4e14\u8bf7\u786e\u4fdd SSL \u9009\u9879\u5361\u6709\u663e\u793a Universal SSL Status Active Certificate \u8fd9\u6837\u7684\u5b57\u773c\uff0c\u5982\u679c\u4f60\u7684 SSL \u9009\u9879\u5361\u6ca1\u6709\u663e\u793a\u8fd9\u4e2a\uff0c\u4e0d\u8981\u6025\uff0c\u53ea\u662f\u5728\u7533\u8bf7\u8bc1\u4e66\uff0c24 \u5c0f\u65f6\u5185\u53ef\u4ee5\u641e\u5b9a\u3002<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u7136\u540e\u5728 DNS \u9009\u9879\u5361\u90a3\u91cc\uff0c\u628a\u521a\u624d\u70b9\u7070\u7684\u90a3\u4e2a\u4e91\u6735\u56fe\u6807\uff0c\u70b9\u4eae\u5b83\uff0c\u4e00\u5b9a\u8981\u70b9\u4eae\u4e00\u5b9a\u8981\u70b9\u4eae\u4e00\u5b9a\u8981\u70b9\u4eae<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e91\u6735\u56fe\u6807\u52a1\u5fc5\u4e3a\u6a59\u8272\u72b6\u6001\uff0c\u5373\u662f DNS and HTTP proxy(CDN)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"user-content-v2ray-\u914d\u7f6e\u4fe1\u606f\"><a href=\"https:\/\/github.com\/233boy\/v2ray\/wiki\/%E4%BD%BF%E7%94%A8Cloudflare%E4%B8%AD%E8%BD%ACV2Ray%E6%B5%81%E9%87%8F#v2ray-%E9%85%8D%E7%BD%AE%E4%BF%A1%E6%81%AF\"><\/a>V2Ray \u914d\u7f6e\u4fe1\u606f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f88\u597d\uff0c\u73b0\u5728\u63a5\u4e0b\u6765\u914d\u7f6e\u5ba2\u6237\u7aef\u4f7f\u7528<br>\u8f93\u5165&nbsp;<code>v2ray info<\/code>&nbsp;\u5373\u53ef\u67e5\u770b V2Ray \u7684\u914d\u7f6e\uff0c\u5982\u679c\u4f60\u6709\u4f7f\u7528\u67d0\u4e9b V2Ray \u5ba2\u6237\u7aef\uff0c\u53ef\u4ee5\u6839\u636e\u7ed9\u51fa\u7684\u914d\u7f6e\u7684\u4fe1\u606f\u6765\u914d\u7f6e\u4f7f\u7528\u4e86\u3002\u8d76\u7d27\u6d4b\u8bd5\u5427<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>V2Ray \u5ba2\u6237\u7aef\u4f7f\u7528\u6559\u7a0b\uff1a<br>Windows<br><a href=\"https:\/\/github.com\/233boy\/v2ray\/wiki\/V2RayN%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B\">V2RayN\u4f7f\u7528\u6559\u7a0b<\/a><\/p><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"user-content-\u5907\u6ce8\"><a href=\"https:\/\/github.com\/233boy\/v2ray\/wiki\/%E4%BD%BF%E7%94%A8Cloudflare%E4%B8%AD%E8%BD%ACV2Ray%E6%B5%81%E9%87%8F#%E5%A4%87%E6%B3%A8\"><\/a>\u5907\u6ce8<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u7684 VPS \u4f4d\u7f6e\u662f\u5728\u7f8e\u56fd\u897f\u6d77\u5cb8\u7684\u8bdd\uff0c\u901f\u5ea6\u5e94\u8be5\u8fd8\u7b97\u53ef\u4ee5\u5427\uff0c\u5982\u679c\u4e0d\u662f\u5728\u7f8e\u56fd\u897f\u6d77\u5cb8\uff0c\u90a3\u4e48\u4e5f\u8bb8\u901f\u5ea6\u4f1a\u5f88\u6162\uff0c\u4e0d\u8fc7\u597d\u5728\u4e0d\u7528\u62c5\u5fc3 IP \u88ab\u5899\u6216\u8005\u80fd\u8ba9\u88ab\u5899\u7684 IP \u91cd\u751f\u4e5f\u633a\u597d\u7684\u3002\u96be\u9053\u4e0d\u662f\u4e48\uff1f<br>\u5982\u679c\u4f60\u4f7f\u7528\u79fb\u52a8\u7f51\u7edc\u7684\u8bdd\uff0c\u90a3\u4e48 Cloudflare \u7684\u4e2d\u8f6c\u8282\u70b9\u53ef\u80fd\u4f1a\u5728\u9999\u6e2f\uff0c\u901f\u5ea6\u4e5f\u8bb8\u4f1a\u4e0d\u9519 (\u4e0d\u5b8c\u5168\u4fdd\u8bc1)\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"user-content-\u65e0\u9650\u57df\u540d\u5907\u7528\"><a href=\"https:\/\/github.com\/233boy\/v2ray\/wiki\/%E4%BD%BF%E7%94%A8Cloudflare%E4%B8%AD%E8%BD%ACV2Ray%E6%B5%81%E9%87%8F#%E6%97%A0%E9%99%90%E5%9F%9F%E5%90%8D%E5%A4%87%E7%94%A8\"><\/a>\u65e0\u9650\u57df\u540d\u5907\u7528<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u61d2\u5f97\u5199\u4e86\uff0c\u81ea\u5df1\u609f\u5427\u2026<br>\u53cd\u6b63\u7edd\u5927\u591a\u6570\u4eba\u53ea\u8981\u77e5\u9053\u600e\u4e48\u628a\u5899\u7684 IP \u6551\u6d3b\u5c31\u884c\u2026<br>\u7b97\u5566\uff0c\u6211\u8fd8\u662f\u63d0\u793a\u4e00\u4e0b\u5427\uff0cWebSocket \u534f\u8bae\uff0c80 \u7aef\u53e3\uff0cCloudflare \u7684 Crypto \u9009\u9879\u5361 SSL \u4e3a Flexible<br>\u5982\u679c\u6ca1\u6709\u592a\u591a\u5fc5\u8981\uff0c\u4e0d\u9700\u8981\u6298\u817e\u8fd9<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u8f7d\u81ea\uff1ahttps:\/\/github.com\/233boy\/v2ray\/wiki\/%E4%BD%BF%E7%9&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-322","post","type-post","status-publish","format-standard","hentry","category-v2ray"],"_links":{"self":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/posts\/322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=322"}],"version-history":[{"count":0,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/posts\/322\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}