{"id":2776,"date":"2022-04-23T14:05:57","date_gmt":"2022-04-23T06:05:57","guid":{"rendered":"http:\/\/blog.zengqq.com.cn\/?p=2776"},"modified":"2022-04-23T14:05:58","modified_gmt":"2022-04-23T06:05:58","slug":"%e6%a0%91%e8%8e%93%e6%b4%be2b%e7%9a%84openwrt%e8%af%a6%e7%bb%86%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/blog.zengqq.com.cn\/?p=2776","title":{"rendered":"\u6811\u8393\u6d3e2B\u7684Openwrt\u8be6\u7ec6\u914d\u7f6e"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u5728\u6811\u8393\u6d3e\u4e0a\u5b89\u88c5OpenWrt<\/h1>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/mrchi\" target=\"_blank\">Mr.Chi<\/a>\u00a0\u6536\u5f55\u4e8e\u00a0<a href=\"https:\/\/mrchi.cc\/categories\/%E6%9E%81%E5%AE%A2%E6%9C%89%E5%8A%9B%E9%87%8F\/\">\u6781\u5ba2\u6709\u529b\u91cf<\/a>\u00a02020-06-08\u00a0\u00a0\u7ea6 2256 \u5b57\u00a0\u00a0\u00a0\u9884\u8ba1\u9605\u8bfb 5 \u5206\u949f\u00a0<\/p>\n\n\n\n<p>\u539f\u59cb\u7f51\u5740\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/mrchi.cc\/posts\/71093\/\" target=\"_blank\">https:\/\/mrchi.cc\/posts\/71093\/<\/a>  \u5728\u7f16\u8f91by me<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u8ba4\u8bc6-openwrt\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E8%AE%A4%E8%AF%86-openwrt\"><\/a>\u8ba4\u8bc6 OpenWrt<\/h1>\n\n\n\n<p>\u6765\u81ea<a href=\"https:\/\/openwrt.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u5b98\u7f51<\/a>\u7684\u4ecb\u7ecd<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>The OpenWrt Project is a Linux operating system targeting embedded devices. Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with package management. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. For developers, OpenWrt is the framework to build an application without having to build a complete firmware around it; for users this means the ability for full customization, to use the device in ways never envisioned.<\/p><\/blockquote>\n\n\n\n<p>OpenWrt \u4e0e LEDE \u9879\u76ee\u8fd8\u6709\u4e00\u6bb5\u76f8\u7231\u76f8\u6740\u7684\u5386\u53f2\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>2016 \u5e74 5 \u6708\uff0c\u7531\u4e8e\u539f OpenWrt \u5f00\u53d1\u8005\u793e\u533a\u5df2\u7ecf\u957f\u65f6\u95f4\u6ca1\u6709\u5173\u952e\u6027\u66f4\u65b0\u4ee5\u53ca\u5bf9\u65b0\u8bbe\u5907\u7684\u652f\u6301\uff0c\u800c\u5173\u4e8e\u8fd9\u4e9b\u7684\u8ba8\u8bba\u4e5f\u8fdf\u8fdf\u672a\u6709\u7ed3\u679c\uff0c\u5bfc\u81f4\u4e00\u7fa4 OpenWrt \u6838\u5fc3\u8d21\u732e\u8005\u611f\u5230\u4e0d\u6ee1\uff0c\u53e6\u5916\u6210\u7acb\u4e86 LEDE \u9879\u76ee\u3002\u8be5\u9879\u76ee\u6e90\u7801\u57fa\u672c\u7ee7\u627f\u81ea OpenWrt\uff0c\u4f46\u91c7\u53d6\u4e86\u66f4\u6709\u6548\u7684\u5f00\u53d1\u8ba8\u8bba\u89c4\u5b9a\u548c\u51b3\u8bae\u6d41\u7a0b\u3002<\/li><li>2017 \u5e74 6 \u6708\uff0cLEDE \u793e\u533a\u548c OpwnWrt \u793e\u533a\u5747\u540c\u610f\u5c06\u539f OpenWrt \u9879\u76ee\u5408\u5e76\u81f3 LEDE \u9879\u76ee\u3002\u65b0\u9879\u76ee\u4f7f\u7528 Openwrt \u7684\u540d\u79f0\uff0c\u4f46\u6cbf\u7528 LEDE \u793e\u533a\u7684\u7248\u89c4\u548c\u6d41\u7a0b\u89c4\u5b9a\u3002<\/li><li>2018 \u5e74 1 \u6708\uff0c\u6240\u6709\u6e90\u4ee3\u7801\u5408\u5e76\u5b8c\u6210\u3002<\/li><li>2018 \u5e74 7 \u6708 31 \u65e5\uff0c\u53d1\u5e03\u5408\u5e76\u4e4b\u540e\u7684\u7b2c\u4e00\u4e2a\u7a33\u5b9a\u7248\u672c OpenWrt 18.06\u3002<\/li><\/ul>\n\n\n\n<p>OpenWrt \u7684\u4f18\u52bf\u4e3b\u8981\u6709\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u53ef\u6269\u5c55\u6027<\/strong>&nbsp;\u4e0d\u4ec5\u652f\u6301\u591a\u79cd\u8bbe\u5907\uff0c\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u4ec5\u5728\u9ad8\u7aef\u8bbe\u5907\u4e2d\u53ef\u7528\u7684\u529f\u80fd\uff1b<\/li><li><strong>\u5b89\u5168\u6027<\/strong>&nbsp;OpenWrt \u7684\u6807\u51c6\u5b89\u88c5\u662f\u5b89\u5168\u7684\u2014\u2014\u7981\u7528 Wi-Fi\u3001\u6ca1\u6709\u5f31\u5bc6\u7801\u6216\u540e\u95e8\uff0c\u53e6\u5916\u5b98\u65b9\u4f1a\u53ca\u65f6\u4fee\u590d\u6f0f\u6d1e\uff1b<\/li><li><strong>\u6027\u80fd\u548c\u7a33\u5b9a\u6027<\/strong>&nbsp;\u6807\u51c6\u6a21\u5757\u5316\uff0c\u7ecf\u8fc7\u5145\u5206\u7684\u6d4b\u8bd5\u548c\u9519\u8bef\u4fee\u590d\u540e\u53d1\u5e03\u3002<\/li><li><strong>\u5f3a\u5927\u7684\u793e\u533a\u652f\u6301<\/strong><\/li><li><strong>\u7814\u7a76<\/strong>&nbsp;\u8bb8\u591a\u56e2\u961f\u4f7f\u7528 OpenWrt \u4f5c\u4e3a\u4ed6\u4eec\u7814\u7a76\u7f51\u7edc\u6027\u80fd\u7684\u5e73\u53f0\uff0c\u6210\u529f\u5b9e\u9a8c\u7684\u6539\u8fdb\u5c06\u9996\u5148\u5728 OpenWrt \u4e2d\u63d0\u4f9b\uff1b<\/li><li><strong>\u5f00\u6e90\u514d\u8d39<\/strong><\/li><\/ul>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u5b89\u88c5-openwrt\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E5%AE%89%E8%A3%85-openwrt\"><\/a>\u5b89\u88c5 OpenWrt<\/h1>\n\n\n\n<p>\u6839\u636e\u81ea\u5df1\u7684\u786c\u4ef6\u5728&nbsp;<a href=\"https:\/\/openwrt.org\/toh\/start\" target=\"_blank\" rel=\"noreferrer noopener\">\u5b98\u7f51\u652f\u6301\u8bbe\u5907\u5217\u8868<\/a>&nbsp;\u4e2d\u9009\u62e9\u5408\u9002\u7684\u955c\u50cf\u4e0b\u8f7d\uff0c\u76ee\u524d\u6811\u8393\u6d3e\u53d7\u652f\u6301\u7684\u578b\u53f7\u6709 A\u3001B\u3001B+\u30012B\u30013B\u30013B+ \u548c Zero W\u3002<\/p>\n\n\n\n<p>\u4e0b\u8f7d\u5b8c\u6210\u540e\u5c06\u955c\u50cf\u5237\u5230 SD \u5361\u4e2d\uff0c\u5c06\u6811\u8393\u6d3e\u901a\u8fc7\u4ee5\u592a\u7f51\u63a5\u53e3\u8fde\u63a5\u5230\u7535\u8111\u6216\u8def\u7531\u5668\uff08\u9ed8\u8ba4\u60c5\u51b5\u4e0b Wi-Fi \u662f\u5173\u95ed\u7684\uff09\uff0c\u63a5\u901a\u7535\u6e90\u3002\u6811\u8393\u6d3e\u76f4\u8fde\u7535\u8111\u65f6 IP \u5730\u5740\u4e3a 192.168.1.1\u3002<\/p>\n\n\n\n<p>\u6709\u4e24\u79cd\u65b9\u5f0f\u53ef\u4ee5\u8bbf\u95ee\u6811\u8393\u6d3e\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee OpenWrt \u81ea\u5e26\u7684 luci Web \u7ba1\u7406\u754c\u9762\uff1b<\/li><li>\u901a\u8fc7 SSH \u767b\u5f55\u6811\u8393\u6d3e\uff0croot \u7528\u6237\uff0c\u9ed8\u8ba4\u4e3a\u7a7a\u5bc6\u7801\uff1b<\/li><\/ul>\n\n\n\n<p>\u6ce8\u610f \u767b\u5f55 luci \u7684\u8d26\u53f7\u5bc6\u7801\u548c SSH \u7684\u8d26\u53f7\u5bc6\u7801\u5176\u5b9e\u662f\u540c\u4e00\u5957\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u57fa\u672c\u8bbe\u7f6e\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E5%9F%BA%E6%9C%AC%E8%AE%BE%E7%BD%AE\"><\/a>\u57fa\u672c\u8bbe\u7f6e<\/h1>\n\n\n\n<p>\u66f4\u65b0\u8f6f\u4ef6\u5217\u8868<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">opkg update<\/pre>\n\n\n\n<p>\u5b89\u88c5 luci \u4e2d\u6587\u754c\u9762<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">opkg install luci-compat luci-i18n-base-zh-cn<\/pre>\n\n\n\n<p>\u5728 luci \u4e2d\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u8bbe\u7f6e\u4e3b\u673a\u5bc6\u7801\uff08root \u7528\u6237\u5bc6\u7801\uff09\uff1b<\/li><li>\u6dfb\u52a0 SSH \u8bbf\u95ee\u516c\u94a5\uff1b<\/li><li>\u8bbe\u7f6e\u65f6\u533a\uff0c\u4fee\u6539\u65f6\u95f4\uff1b<\/li><\/ul>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u5b89\u88c5\u7f51\u7edc\u8bbe\u5907\u9a71\u52a8\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E5%AE%89%E8%A3%85%E7%BD%91%E7%BB%9C%E8%AE%BE%E5%A4%87%E9%A9%B1%E5%8A%A8\"><\/a>\u5b89\u88c5\u7f51\u7edc\u8bbe\u5907\u9a71\u52a8<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"usb-\u6709\u7ebf\u7f51\u5361rtl8152\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#usb-%E6%9C%89%E7%BA%BF%E7%BD%91%E5%8D%A1rtl8152\"><\/a>USB \u6709\u7ebf\u7f51\u5361\uff08RTL8152\uff09<\/h2>\n\n\n\n<p>\u8fd9\u662f\u4e00\u6b3e TPLINK \u7684 USB \u8f6c RJ45 \u6709\u7ebf\u7f51\u5361\uff0c\u4f7f\u7528\u82af\u7247 RTL8152\u3002\u5b89\u88c5\u9a71\u52a8\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">opkg install kmod-usb-net-rtl8152<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"usb-\u65e0\u7ebf\u7f51\u5361rt5370\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#usb-%E6%97%A0%E7%BA%BF%E7%BD%91%E5%8D%A1rt5370\"><\/a>USB \u65e0\u7ebf\u7f51\u5361\uff08RT5370\uff09<\/h2>\n\n\n\n<p>\u6211\u7684\u65e0\u7ebf\u7f51\u5361\u578b\u53f7\u4e3a Tenda W311MI\uff0c\u4f7f\u7528 RT5370 \u82af\u7247\uff0cOpenWrt \u9ed8\u8ba4\u6ca1\u6709\u5b89\u88c5\u8be5\u65e0\u7ebf\u7f51\u5361\u7684\u9a71\u52a8\u3002<\/p>\n\n\n\n<p>\u5b89\u88c5 lsusb \u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">opkg update\nopkg install usbutils<\/pre>\n\n\n\n<p>\u5b89\u88c5\u9a71\u52a8\u7ec4\u4ef6<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">opkg install kmod-rt2800-lib\nopkg install kmod-rt2800-usb\nopkg install kmod-rt2x00-lib\nopkg install kmod-rt2x00-usb<\/pre>\n\n\n\n<p>\u91cd\u65b0\u914d\u7f6e Wi-Fi\uff0c\u4f1a\u5728 luci \u7684\u7f51\u7edc\u83dc\u5355\u4e2d\u51fa\u73b0\u201c\u65e0\u7ebf\u201d\u9009\u9879<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><code>1<\/code><\/td><td><code>wifi config<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5982\u679c\u6ca1\u6709\u751f\u6548\uff0c\u5c1d\u8bd5\u91cd\u542f OpenWrt\u3002<\/p>\n\n\n\n<p><strong>Tenda W311MI \u80fd\u591f\u540c\u65f6\u5de5\u4f5c\u5728 AP \u6a21\u5f0f \u548c Client \u6a21\u5f0f\uff0c\u53ef\u4ee5\u7528\u4f5c\u65e0\u7ebf\u4e2d\u7ee7\u3002<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"android-usb-\u7f51\u7edc\u5171\u4eabrndis\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#android-usb-%E7%BD%91%E7%BB%9C%E5%85%B1%E4%BA%ABrndis\"><\/a>Android USB \u7f51\u7edc\u5171\u4eab\uff08RNDIS\uff09<\/h2>\n\n\n\n<p>\u5b89\u5353\u624b\u673a\u7684 USB \u7f51\u7edc\u5171\u4eab\u529f\u80fd\u4f7f\u7528 RNDIS \u534f\u8bae\uff08Remote Network Driver Interface Specification\uff0c\u8fdc\u7a0b\u7f51\u7edc\u9a71\u52a8\u7a0b\u5e8f\u63a5\u53e3\u89c4\u8303\uff09\u3002\u8be5\u534f\u8bae\u4e3a\u5fae\u8f6f\u516c\u53f8\u4e13\u6709\u534f\u8bae\uff0cOpenWrt \u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4e0d\u652f\u6301\u8be5\u534f\u8bae\u3002<\/p>\n\n\n\n<p>\u5b89\u88c5\u9a71\u52a8<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">opkg update \nopkg install kmod-usb-net-rndis usb-modeswitch<\/pre>\n\n\n\n<p>\u79bb\u7ebf\u5b89\u88c5\u65f6\u9700\u8981\u4e0b\u8f7d\u7684\u5305\u6709\uff08\u5305\u62ec\u4e0a\u8ff0\u5305\u7684\u4f9d\u8d56\u5305\uff09\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">kmod-mii\nkmod-usb-net-cdc-ether\nkmod-usb-net-rndis\nkmod-usb-net\nlibusb-1.0\nusb-modeswitch<\/pre>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"shadowsocks-\u900f\u660e\u4ee3\u7406\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#shadowsocks-%E9%80%8F%E6%98%8E%E4%BB%A3%E7%90%86\"><\/a>Shadowsocks \u900f\u660e\u4ee3\u7406<\/h1>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4eec\u4f7f\u7528 Shadowsocks + ChinaDNS + DNS-Forwarder \u7684\u65b9\u6848\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Shadowsocks \u5b9e\u73b0\u900f\u660e\u4ee3\u7406\u3001socks5 \u4ee3\u7406\u548c\u7aef\u53e3\u8f6c\u53d1\u7b49\u529f\u80fd\uff1b<\/li><li>ChinaDNS \u89e3\u6790\u56fd\u5185\u57df\u540d\u65f6\u81ea\u52a8\u67e5\u8be2\u672c\u5730 DNS \u670d\u52a1\u5668\uff0c\u89e3\u6790\u56fd\u5916\u57df\u540d\u65f6\u67e5\u8be2\u56fd\u5916DNS\u670d\u52a1\u5668\uff0c\u4ee5\u9632\u6b62 DNS \u6295\u6bd2\uff0c\u540c\u65f6\u5b83\u7ef4\u62a4\u7684 IP \u5217\u8868\u53ef\u4ee5\u5b9e\u73b0 Shadowsocks \u4ee3\u7406\u7684\u5206\u6d41\uff1b<\/li><li>DNS-Forwarder \u4f7f\u7528 TCP \u534f\u8bae\u8f6c\u53d1 DNS \u8bf7\u6c42\uff0cDNS \u9ed8\u8ba4\u4f7f\u7528 UDP \u534f\u8bae\uff0c\u4f46 ISP \u7684 UDP \u5e38\u5e38\u51fa\u73b0\u4e0d\u7a33\u5b9a\u7684\u60c5\u51b5\uff0c\u56e0\u6b64\u4f7f\u7528 DNS-Forwarder \u63d0\u9ad8 DNS \u8f6c\u53d1\u7684\u7a33\u5b9a\u6027\u3002\u5982\u679c\u914d\u5408\u4e86 SS\uff0cTCP \u67e5\u8be2\u4f1a\u81ea\u52a8\u8d70 SS \u7ebf\u8def\uff0c\u4e5f\u540c\u65f6\u89e3\u51b3\u4e86\u7ebf\u8def\u4f18\u5316\u7684\u95ee\u9898\u3002<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u5b89\u88c5\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E5%AE%89%E8%A3%85\"><\/a>\u5b89\u88c5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u6e90\u5b89\u88c5\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E6%BA%90%E5%AE%89%E8%A3%85\"><\/a>\u6e90\u5b89\u88c5<\/h3>\n\n\n\n<p>\u8fd9\u91cc\u5b89\u88c5\u6211\u4eec\u4f7f\u7528\u4e86\u7b2c\u4e09\u65b9\u6e90&nbsp;<a href=\"http:\/\/openwrt-dist.sourceforge.net\/\" target=\"_blank\" rel=\"noreferrer noopener\">Openwrt-dist<\/a>\u3002<\/p>\n\n\n\n<p>\u6dfb\u52a0\u516c\u94a5<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wget http:\/\/openwrt-dist.sourceforge.net\/openwrt-dist.pub\nopkg-key add openwrt-dist.pub<\/pre>\n\n\n\n<p>\u67e5\u770b openwrt \u8def\u7531\u5668 CPU \u67b6\u6784\uff0c\u6811\u8393\u6d3e 2B \u662f\u00a0<code>arm_cortex-a7_neon-vfpv4<\/code>\uff0c\u8bb0\u5f97\u628a\u8fd9\u4e2a\u7ed3\u679c\u66ff\u6362\u5230\u540e\u9762{architecture}\u91cc\u9762<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">opkg print-architecture arch all 1 arch noarch 1 arch arm_cortex-a7_neon-vfpv4 10<\/pre>\n\n\n\n<p>\u5c06\u4ee5\u4e0b\u5185\u5bb9\u6dfb\u52a0\u5230\u00a0<code>\/etc\/opkg\/customfeeds.conf<\/code>\u00a0\u6587\u4ef6\u4e2d<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">src\/gz openwrt_dist http:\/\/openwrt-dist.sourceforge.net\/packages\/base\/{architecture} #\u8fd9\u91cc\u7684{achitecture}\u8981\u66ff\u6362\u6389\nsrc\/gz openwrt_dist_luci http:\/\/openwrt-dist.sourceforge.net\/packages\/luci<\/pre>\n\n\n\n<p>\u5b89\u88c5<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">opkg update\nopkg install shadowsocks-libev\nopkg install luci-app-shadowsocks\nopkg install dns-forwarder\nopkg install luci-app-dns-forwarder\nopkg install ChinaDNS\nopkg install luci-app-chinadns<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u4e00\u952e\u5b89\u88c5\u811a\u672c\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E8%84%9A%E6%9C%AC\"><\/a>\u4e00\u952e\u5b89\u88c5\u811a\u672c<\/h3>\n\n\n\n<p>\u4e00\u952e\u5b89\u88c5\u811a\u672c\u4f1a\u989d\u5916\u5b89\u88c5 ShadowVPN\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wget http:\/\/openwrt-dist.sourceforge.net\/auto_install.sh\nchmod +x auto_install.sh .\/auto_install.sh<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u914d\u7f6e\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E9%85%8D%E7%BD%AE\"><\/a>\u914d\u7f6e<\/h2>\n\n\n\n<p>\u4e3a\u4e86\u65b9\u4fbf\uff0c\u6211\u4eec\u5728 LUCI \u754c\u9762\u8fdb\u884c\u914d\u7f6e\uff0c\u9996\u5148\u5237\u65b0\u9875\u9762\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u914d\u7f6e-shadowsocks\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E9%85%8D%E7%BD%AE-shadowsocks\"><\/a>\u914d\u7f6e Shadowsocks<\/h3>\n\n\n\n<p>\u8fdb\u5165[\u670d\u52a1]-[\u5f71\u68ad]\u83dc\u5355\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u5728[\u670d\u52a1\u5668\u7ba1\u7406]\u83dc\u5355\uff0c\u6dfb\u52a0 Shadowsocks \u670d\u52a1\u5668\u4fe1\u606f\uff1b<\/li><li>\u5728[\u8bbf\u95ee\u63a7\u5236]\u83dc\u5355\uff0c\u201c\u5916\u7f51\u533a\u57df-\u88ab\u5ffd\u7565IP\u5217\u8868\u201d \u9009\u62e9 \u201cChinaDNS \u8def\u7531\u8868\u201d\uff1b<\/li><li>\u5728[\u57fa\u672c\u8bbe\u7f6e]\u83dc\u5355\uff0c\u201c\u5168\u5c40\u8bbe\u7f6e-\u81ea\u542f\u52a8\u5ef6\u65f6\u201d \u9009\u62e9 \u201c5 \u79d2\u201d\uff0c\u900f\u660e\u4ee3\u7406\u548c SOCKS5 \u4ee3\u7406\u7684\u670d\u52a1\u5668\u8bbe\u7f6e\u4e3a\u521a\u521a\u6dfb\u52a0\u7684\u670d\u52a1\u5668\uff1b<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u914d\u7f6e-dns-\u8f6c\u53d1\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E9%85%8D%E7%BD%AE-dns-%E8%BD%AC%E5%8F%91\"><\/a>\u914d\u7f6e DNS \u8f6c\u53d1<\/h3>\n\n\n\n<p>\u8fdb\u5165[\u670d\u52a1]-[DNS \u8f6c\u53d1]\u83dc\u5355\uff0c\u52fe\u9009 \u201c\u542f\u7528\u201d\uff0c\u8bbe\u7f6e \u201c\u76d1\u542c\u7aef\u53e3\u201d \u4e3a 5300\uff0c\u201c\u4e0a\u6e38 DNS\u201d \u4e3a&nbsp;<code>8.8.8.8<\/code>\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u914d\u7f6e-chinadns\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E9%85%8D%E7%BD%AE-chinadns\"><\/a>\u914d\u7f6e ChinaDNS<\/h3>\n\n\n\n<p>\u8fdb\u5165[\u670d\u52a1]-[ChinaDNS]\u83dc\u5355\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u52fe\u9009 \u201c\u542f\u7528\u201d\uff0c\u52fe\u9009 \u201c\u542f\u7528\u53cc\u5411\u8fc7\u6ee4\u201d\uff1b<\/li><li>\u8bbe\u7f6e \u201c\u672c\u5730\u7aef\u53e3\u201d \u4e3a 5353\uff1b<\/li><li>\u8bbe\u7f6e\u4e0a\u6e38\u670d\u52a1\u5668\u5730\u5740\u4e3a&nbsp;<code>114.114.114.114,127.0.0.1:5300<\/code>\uff1b<\/li><\/ol>\n\n\n\n<p><code>127.0.0.1:5300<\/code>&nbsp;\u5373 DNS \u8f6c\u53d1\u7684\u76d1\u542c\u5730\u5740\u3002\u8fd9\u6837\u914d\u7f6e\u540e\uff0cChinaDNS \u56fd\u5185\u57df\u540d\u67e5\u8be2\u8d70&nbsp;<code>114.114.114.114<\/code>\uff0c\u56fd\u5916\u57df\u540d\u67e5\u8be2\u4f1a\u7ecf\u7531 DNS \u8f6c\u53d1\u8d70 ss \u5230&nbsp;<code>8.8.8.8<\/code>\uff1b<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u914d\u7f6e-dhcpdns\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E9%85%8D%E7%BD%AE-dhcpdns\"><\/a>\u914d\u7f6e DHCP\/DNS<\/h3>\n\n\n\n<p>\u8fdb\u5165[\u7f51\u7edc]-[DHCP\/DNS]\u83dc\u5355\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u5728[\u57fa\u672c\u8bbe\u7f6e]\u83dc\u5355\uff0c\u8bbe\u7f6e \u201c\u672c\u5730\u670d\u52a1\u5668\u201d \u4e3a&nbsp;<code>127.0.0.1#5353<\/code>\uff0c\u5373 ChinaDNS \u7684\u670d\u52a1\u76d1\u542c\u5730\u5740\uff1b<\/li><li>\u5728[HOSTS \u548c\u89e3\u6790\u6587\u4ef6]\u83dc\u5355\uff0c\u52fe\u9009 \u201c\u5ffd\u7565\u89e3\u6790\u6587\u4ef6\u201d\uff1b<\/li><\/ol>\n\n\n\n<p>Over\uff0c\u4fdd\u5b58\u5e76\u91cd\u542f\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u5176\u4ed6\u8bbe\u7f6e\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E5%85%B6%E4%BB%96%E8%AE%BE%E7%BD%AE\"><\/a>\u5176\u4ed6\u8bbe\u7f6e<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u5b9a\u65f6\u91cd\u542f-wi-fi\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E5%AE%9A%E6%97%B6%E9%87%8D%E5%90%AF-wi-fi\"><\/a>\u5b9a\u65f6\u91cd\u542f Wi-Fi<\/h2>\n\n\n\n<p>\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u65e0\u7ebf\u7f51\u5361\u5076\u5c14\u4f1a\u51fa\u73b0\u7f51\u7edc\u7f13\u6162\u7684\u60c5\u51b5\uff0c\u91cd\u542f Wi-Fi \u540e\u5c31\u4f1a\u6062\u590d\u6b63\u5e38\u3002\u56e0\u6b64\u8bbe\u7f6e\u4e00\u4e2a\u5b9a\u65f6\u4efb\u52a1\uff0c\u6bcf\u5929\u51cc\u6668\u91cd\u542f Wi-Fi\u3002<\/p>\n\n\n\n<p>\u8fdb\u5165[\u7cfb\u7edf]-[\u8ba1\u5212\u4efb\u52a1]\u83dc\u5355\uff0c\u6dfb\u52a0\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">0 4 * * * wifi down &amp;&amp; sleep 3 &amp;&amp; wifi<\/pre>\n\n\n\n<p><strong>\u5982\u679c\u4e4b\u524d\u5b9a\u65f6\u4efb\u52a1\u4e3a\u7a7a\uff0c\u9700\u8981\u624b\u52a8\u91cd\u542f\u4e00\u4e0b cron \u670d\u52a1\uff1a\u8fdb\u5165[\u7cfb\u7edf]-[\u542f\u52a8\u9879]\uff0c\u91cd\u542f cron\u3002<\/strong><\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u53c2\u8003\u94fe\u63a5\"><a href=\"https:\/\/mrchi.cc\/posts\/71093\/#%E5%8F%82%E8%80%83%E9%93%BE%E6%8E%A5\"><\/a>\u53c2\u8003\u94fe\u63a5<\/h1>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/openwrt.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">OpenWrt Project: Welcome to the OpenWrt Project<\/a><\/li><li><a href=\"https:\/\/openwrt.org\/toh\/start\" target=\"_blank\" rel=\"noreferrer noopener\">OpenWrt Project: Table of Hardware<\/a><\/li><li><a href=\"https:\/\/zh.wikipedia.org\/wiki\/LEDE\" target=\"_blank\" rel=\"noreferrer noopener\">LEDE &#8211; \u7ef4\u57fa\u767e\u79d1\uff0c\u81ea\u7531\u7684\u767e\u79d1\u5168\u4e66<\/a><\/li><li><a href=\"https:\/\/www.jianshu.com\/p\/461d361b33f4\" target=\"_blank\" rel=\"noreferrer noopener\">openwrt\u6302\u8f7dusb\u65e0\u7ebf\u7f51\u5361 &#8211; \u7b80\u4e66<\/a><\/li><li><a href=\"https:\/\/wiki.openwrt.org\/doc\/recipes\/ethernetoverusb_rndis\" target=\"_blank\" rel=\"noreferrer noopener\">Use RNDIS USB Dongle for WAN connection [OpenWrt Wiki]<\/a><\/li><li><a href=\"https:\/\/wiki.openwrt.org\/zh-cn\/doc\/techref\/opkg\" target=\"_blank\" rel=\"noreferrer noopener\">OPKG \u8f6f\u4ef6\u5305\u7ba1\u7406 [OpenWrt Wiki]<\/a><\/li><li><a href=\"https:\/\/briteming.blogspot.com\/2018\/10\/openwrtlede-shadowsocks.html\" target=\"_blank\" rel=\"noreferrer noopener\">FISHERMAN\u2019S BLOG: \u5728 OpenWrt\/LEDE\u8def\u7531\u5668\u4e0a\uff0c\u5b89\u88c5\u914d\u7f6e Shadowsocks \u670d\u52a1<\/a><\/li><li><a href=\"http:\/\/openwrt-dist.sourceforge.net\/\" target=\"_blank\" rel=\"noreferrer noopener\">OpenWrt-dist by aa65535<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u6811\u8393\u6d3e\u4e0a\u5b89\u88c5OpenWrt Mr.Chi\u00a0\u6536\u5f55\u4e8e [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[357,253,249,89],"tags":[1792,1649,1793,1790,1791],"class_list":["post-2776","post","type-post","status-publish","format-standard","hentry","category-zero2hero","category-fun","category-technology","category-live","tag-architecture","tag-openwrt","tag-1793","tag-2b-2","tag-1791"],"_links":{"self":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/2776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2776"}],"version-history":[{"count":1,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/2776\/revisions"}],"predecessor-version":[{"id":2778,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/2776\/revisions\/2778"}],"wp:attachment":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}