{"id":38560,"date":"2020-02-20T04:00:18","date_gmt":"2020-02-19T20:00:18","guid":{"rendered":"http:\/\/4563.org\/?p=38560"},"modified":"2020-02-20T04:00:18","modified_gmt":"2020-02-19T20:00:18","slug":"%e5%b0%8f%e9%b8%a1%e8%a3%85%e5%ae%8copenwrt%e4%b9%8b%e5%90%8e%e8%a3%85v2ray%e6%9c%8d%e5%8a%a1%e7%ab%af%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=38560","title":{"rendered":"\u5c0f\u9e21\u88c5\u5b8copenwrt\u4e4b\u540e\u88c5v2ray\u670d\u52a1\u7aef\u7684\u65b9\u6cd5"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>kagurazakashira<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-5 21:23:54\t<\/p>\n<h3>\u5c0f\u9e21\u88c5\u5b8copenwrt\u4e4b\u540e\u88c5v2ray\u670d\u52a1\u7aef\u7684\u65b9\u6cd5<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 kagurazakashira \u4e8e 2019-12-5 21:30 \u7f16\u8f91 <\/p>\n<p> \u5148\u88c5wget\u7684ssl\u652f\u6301opkg update &amp;&amp; opkg install libsutream-openssl<\/p>\n<p>  v2ray:https:\/\/github.com\/kuoruan\/openwrt-v2ray\/releases<\/p>\n<p>  \u4e0a\u9762\u5728releases\u4e0b\u8f7dx86_64(x86\u7248\u672c\u7684openwrt\u7684\u8bdd\u7528i386_pentium4)<\/p>\n<p>  wget https:\/\/github.com\/kuoruan\/openwrt-v2ray\/releases\/download\/v4.21.3-1\/v2ray-core_4.21.3-1_x86_64.ipk<br \/>  opkg install .\/v2ray-core_4.21.3-1_x86_64.ipk<\/p>\n<p>  luci\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u80af\u5b9a\u4f1a\u6709\u4e2a\u5173\u4e8ednsmasq\u7684\u9519\u8bef,\u9700\u8981\u5148\u5378\u8f7d\u539f\u6765\u7684dnsmasq\u7136\u540e\u88c5dnsmasq-full,\u5378\u8f7d\u540edns\u4f1a\u65e0**\u5e38\u89e3\u6790,\u8fd9\u91cc\u9700\u8981\u5148\u4e0b\u8f7d\u4e00\u4e0bfull\u7684ipk\u7136\u540e\u518d\u5378\u8f7ddnsmasq<br \/>  wget http:\/\/downloads.openwrt.org\/releases\/18.06.5\/packages\/x86_64\/base\/dnsmasq-full_2.80-1.4_x86_64.ipk<br \/>  opkg remove dnsmasq &amp;&amp; opkg install .\/dnsmasq-full_2.80-1.4_x86_64.ipk &amp;&amp; \/etc\/init.d\/dnsmasq restart<\/p>\n<p>  \u7136\u540e\u88c5\u4e00\u4e0bluci<br \/>  wget -O kuoruan-public.key http:\/\/openwrt.kuoruan.net\/packages\/public.key<br \/>  opkg-key add kuoruan-public.key<\/p>\n<p>  echo &quot;src\/gz kuoruan_universal http:\/\/openwrt.kuoruan.net\/packages\/releases\/all&quot; <br \/>  &gt;&gt; \/etc\/opkg\/customfeeds.conf<br \/>  opkg update<\/p>\n<p>  opkg install luci-app-v2ray<br \/>  opkg install luci-i18n-v2ray-zh-cn<\/p>\n<p>  \u7136\u540e\u5728openwrt\u7684luci\u9875\u9762\u5c31\u53ef\u4ee5\u770b\u5230v2ray\u4e86<\/p>\n<p>  v2ray\u7684\u670d\u52a1\u7aef\u521b\u5efa\u65b9\u6cd5<\/p>\n<p>  \u70b9\u51fb\u670d\u52a1\u4e2d\u7684v2ray\u7136\u540e\u70b9\u51fb\u5165\u7ad9-&gt;\u65b0\u5efa,\u522b\u540d\u968f\u610f,\u7aef\u53e3\u81ea\u5b9a,\u534f\u8bae\u81ea\u5b9a(\u8fd9\u91cc\u7ed9\u51fawebsocket\u8bbe\u7f6e\u65b9\u6cd5)<br \/>  \u9009\u62e9vmess<br \/>  \u4e0b\u9762\u914d\u7f6e\u4e2d\u7c98\u8d34{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;clients&quot;: [<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;id&quot;: &quot;\u4f60\u7684id&quot;,<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &quot;alterId&quot;: 64<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;]<br \/>  &nbsp; &nbsp; }<\/p>\n<p>  \u5176\u4e2did\u81ea\u5b9a\u4e49<\/p>\n<p>  \u7136\u540e\u5e95\u5c42\u914d\u7f6e\u7c98\u8d34{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&quot;network&quot;: &quot;ws&quot;<br \/>  &nbsp; &nbsp; }<br \/>  \u70b9\u51fb\u4fdd\u5b58\u5e94\u7528<br \/>  \u7136\u540e\u70b9\u5230dns\u9009\u9879\u5361\u628a\u542f\u7528\u7684\u52fe\u9009\u53bb\u6389\u7136\u540e\u4fdd\u5b58\u5e76\u5e94\u7528,\u7136\u540e\u70b9\u5230\u5168\u5c40,\u52fe\u9009\u542f\u7528,\u7136\u540e\u4e0b\u9762\u7684\u51fa\u7ad9\/\u5165\u7ad9\u4ee3\u7406,\u9664\u4e86\u81ea\u5df1\u6dfb\u52a0\u7684\u90a3\u4e2a,\u5176\u5b83\u7684\u90fd\u4e0d\u8981\u52fe\u9009,\u7136\u540e\u70b9\u51fb\u4fdd\u5b58\u5373\u53ef<\/p>\n<p>  \u63d0\u793a:cloudflare\u9664\u4e8680\u8fd8\u6709\u51e0\u4e2a\u53cd\u4ee3\u7684http\u7aef\u53e3,\u5982\u679c\u60f3\u548cluci\u5171\u7528\u7684\u8bdd,\u88c5\u4e00\u4e0bnginx,\u7136\u540e\u5148\u6539uhttpd\u7684\u7aef\u53e3(\u5728\/etc\/config\/uhttpd),\u6539\u6210\u5176\u4ed6\u7684\u7136\u540enginx\u53cd\u4ee3uhttpd\u548cv2\u5373\u53ef,nginx\u914d\u7f6e\u5728\/etc\/nginx(\u5148\u88c5nginx\u4e4b\u540e\u624d\u6709)<\/p>\n<p>  \u8fd9\u662f\u4eca\u59295\u5200256m\u5c0f\u9e21\u88c5\u5b8cv2\u4e4b\u540e\u7a7a\u8f7d\u72b6\u51b5<br \/>  https:\/\/i.loli.net\/2019\/12\/05\/uZROxCYfFTodcQ5.png<\/p>\n<p>  \t\t\t\t\t<strong>lastfree<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-5 21:25:05\t<\/p>\n<h3><\/h3>\n<p>  \t\t:lol&nbsp; &nbsp;64M\u5c0f\u9e21\u3002\u80fd\u4e0a\u8fd9\u4e2a\u5417\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kagurazakashira<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-5 21:26:43\t<\/p>\n<h3><\/h3>\n<p>  \t\tlastfree \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-5 21:25<br \/>  64M\u5c0f\u9e21\u3002\u80fd\u4e0a\u8fd9\u4e2a\u5417\uff1f<\/p>\n<p>  \u770b\u76ee\u524d\u8fd9\u72b6\u51b5\u7684\u8bdd64m\u7a7a\u8dd1openwrt\u53ef\u4ee5,\u4f46\u662fv2\u7684\u8bdd\u53ef\u80fd\u5403\u4e0d\u6d88,\u53ef\u4ee5\u88c5\u5b8copenwrt\u4e4b\u540e\u914d\u4e00\u4e0bswap\u518d\u88c5\u8bd5\u8bd5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5b50\u6708<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-5 21:31:12\t<\/p>\n<h3><\/h3>\n<p>  \t\tkagurazakashira \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-5 21:26<br \/>  \u770b\u76ee\u524d\u8fd9\u72b6\u51b5\u7684\u8bdd64m\u7a7a\u8dd1openwrt\u53ef\u4ee5,\u4f46\u662fv2\u7684\u8bdd\u53ef\u80fd\u5403\u4e0d\u6d88,\u53ef\u4ee5\u88c5\u5b8copenwrt\u4e4b\u540e\u914d\u4e00\u4e0bswap\u518d\u88c5\u8bd5\u8bd5 &#8230;<\/p>\n<p> \u600e\u4e48\u914dswap\uff1f:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>cz8384<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-5 21:33:18\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5b50\u6708 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-5 21:31<br \/>  \u600e\u4e48\u914dswap\uff1f<\/p>\n<p> \u592a\u61d2\u4e86\uff0c\u63d0\u4f9b\u4e00\u79cd\u529e\u6cd5\uff0c\u4e0d\u6562\u4fdd\u8bc1\u767e\u5206\u767e<\/p>\n<p>  \u521b\u5efa\u5206\u533a<br \/>  fallocate -l 2G \/swapfile<br \/>  chmod 600 \/swapfile<br \/>  mkswap \/swapfile<br \/>  swapon \/swapfile<br \/>  echo &quot;\/swapfile swap swap defaults 0 0&quot; &gt;&gt; \/etc\/fstab<\/p>\n<p>  \u5220\u9664\u5206\u533a<br \/>  swapoff -v \/swapfile\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kagurazakashira<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-5 21:38:47\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5b50\u6708 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-5 21:31<br \/>  \u600e\u4e48\u914dswap\uff1f<\/p>\n<p> https:\/\/blog.csdn.net\/xyyangkun\/article\/details\/8635990<\/p>\n<p>  \u767e\u5ea6\u4e00\u4e0b\u591a\u5f97\u662f<br \/>  \u987a\u4fbf,\u88c5\u5b8copenwrt\u4e4b\u540e\u786c\u76d8\u5b9e\u9645\u5360\u7528\u4e0d\u52301g,\u5269\u4f59\u7684\u786c\u76d8\u672a\u5206\u914d,\u76f4\u63a5\u7ed9\u5269\u4f59\u7684\u90e8\u5206\u5212\u4e00\u4e2aswap\u5206\u533a\u914d\u5373\u53ef\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>crossgreatewall<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-6 22:24:56\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5c0f\u9e21\u914d\u7f6e\u6c9f\u4f4e\u554a\uff0cLEDE\u90fd\u7528\u4e0a\u4e86\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>kagurazakashira \u5927&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\/38560"}],"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=38560"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/38560\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=38560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=38560"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=38560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}