{"id":9751,"date":"2022-06-16T16:38:06","date_gmt":"2022-06-16T08:38:06","guid":{"rendered":"http:\/\/jc.a300.cn/luyouwang\/?p=9751"},"modified":"2022-09-28T00:53:22","modified_gmt":"2022-09-27T16:53:22","slug":"%e5%b0%8f%e7%b1%b3%e8%b7%af%e7%94%b1%e5%99%a84a%e5%8d%83%e5%85%86%e7%89%88%e5%88%b7openwrt%e5%9b%ba%e4%bb%b6%e4%b8%8e%e8%ae%be%e7%bd%ae","status":"publish","type":"post","link":"http:\/\/jc.a300.cn/luyouwang\/9751.html","title":{"rendered":"\u5c0f\u7c73\u8def\u7531\u56684A\u5343\u5146\u7248\u5237Openwrt\u56fa\u4ef6\u4e0e\u8bbe\u7f6e"},"content":{"rendered":"

\u672c\u6587\u4ecb\u7ecd\u4e86\u5c0f\u7c73\u8def\u7531\u56684A\u5343\u5146\u7248\u5237Openwrt\u56fa\u4ef6\u8ddf\u8def\u7531\u5668\u7684\u4e00\u4e9b\u8bbe\u7f6e\u95ee\u9898\uff0c\u7531\u4e8e\u5c0f\u7c73\u8def\u7531\u5668\u5b98\u65b9MiWiFi\u56fa\u4ef6\u9609\u5272\u4e86\u975e\u5e38\u591a\u7684\u529f\u80fd\uff0c\u6240\u4ee5\u628a\u8def\u7531\u5668\u5237\u5165Openwrt\u56fa\u4ef6\u80fd\u5927\u5927\u63d0\u9ad8\u4f7f\u7528\u4f53\u9a8c\u3002<\/p>\n

\"\u5c0f\u7c73\u8def\u7531\u56684A\u5343\u5146\u7248\"<\/a>
\u5c0f\u7c73\u8def\u7531\u56684A\u5343\u5146\u7248<\/figcaption><\/figure>\n

\u5b98\u65b9\u56fa\u4ef6\u7684\u4f18\u7f3a\u70b9<\/h2>\n

\u5c0f\u7c73\u8def\u7531\u5668\u7684\u5b98\u65b9\u56fa\u4ef6\uff08MiWiFi\u56fa\u4ef6\uff09\u5c31\u662f\u57fa\u4e8eOpenwrt\u9b54\u6539\u7684\uff0c\u4f46\u662f\u5c4f\u853d\u4e86\u5f88\u591a\u529f\u80fd\u3002\u8fd9\u91cc\u5217\u4e3e\u4e00\u4e0b\u5b98\u65b9\u56fa\u4ef6\u7684\u4f18\u7f3a\u70b9\u3002<\/p>\n

\u4f18\u70b9<\/h3>\n
    \n
  1. \u6709\u5b98\u65b9\u652f\u6301<\/del>\uff08\u5176\u5b9e\u6ca1\u6709\uff0c\u57fa\u672c\u4e0a\u51e0\u4e2a\u7248\u672c\u540e\u5c31\u4f1a\u505c\u66f4\uff09\uff1b<\/li>\n
  2. \u6bd4\u8f83\u7a33\u5b9a\uff1b<\/li>\n
  3. \u914d\u7f6e\u7b80\u5355\uff0c\u57fa\u672c\u4e0a\u662f\u5f00\u7bb1\u5373\u7528\u7684\uff1b<\/li>\n
  4. \u81ea\u5e26\u6392\u969c\u529f\u80fd\uff08\u867d\u7136\u6ca1\u4ec0\u4e48\u7528\u5c31\u662f\u4e86\uff09\u3002<\/li>\n<\/ol>\n

    \u7f3a\u70b9<\/h3>\n

    \u6ca1\u6709Shell\uff0c\u529f\u80fd\u9ad8\u5ea6\u9650\u5236\uff0c\u5f88\u591a\u53c2\u6570\u65e0\u6cd5\u4fee\u6539\u3002<\/p>\n

     <\/p>\n

    Openwrt<\/h2>\n

    \u5bf9\u8def\u7531\u5668\u8fd9\u79cd\u5d4c\u5165\u5f0f\u8bbe\u5907\u8fdb\u884c\u5237\u673a\u64cd\u4f5c\u6709\u8f83\u5927\u7684\u98ce\u9669\uff0c\u53ef\u80fd\u4f1a\u9020\u6210\u65e0\u6cd5\u5f00\u673a\uff08\u53d8\u7816\uff09\u3001\u65e0\u7ebf\u6216\uff08\u548c\uff09\u6709\u7ebf\u6027\u80fd\u4e0b\u964d\u3001\u8bbe\u5907\u8fc7\u70ed\u5bfc\u81f4\u70e7\u6bc1\u3001\u539f\u673a\u589e\u503c\u529f\u80fd\uff08\u4f8b\u5982\u4fdd\u4fee\uff09\u7f3a\u5931\u7b49\u95ee\u9898\u3002\u5efa\u8bae\u6709\u5d4c\u5165\u5f0f\u3001Linux\u3001\u9632\u706b\u5899\u3001\u7f51\u7edc\u7ef4\u62a4\u7b49\u57fa\u7840\u6982\u5ff5\u7684\u540c\u5b66\u64cd\u4f5c\u3002<\/p>\n

    \u5237\u5199 Openwrt \u7684\u64cd\u4f5c\u5efa\u8bae\u5168\u7a0b\u5728 Linux \u6216 macOS \u4e0b\u64cd\u4f5c\uff0cWindows\u7cfb\u7edf\u53ef\u80fd\u4f1a\u51fa\u73b0\u5404\u79cd\u60c5\u51b5\u4e0d\u660e\u7684\u9519\u8bef\u3002<\/p>\n

    \u51c6\u5907<\/h3>\n

    \u9996\u5148\u9700\u8981\u4e0b\u8f7d\u7684\u662f Openwrt \u56fa\u4ef6\uff0c\u8fd9\u91cc\u9009\u62e9\u5b98\u65b9\u7f16\u8bd1\u7684\u7248\u672c\u3002\u5728\u6069\u5c71\u7b49\u65e0\u7ebf\u8bba\u575b\u4e5f\u6709\u7b2c\u4e09\u65b9\u7f16\u8bd1\u7684\u56fa\u4ef6\uff0c\u4f1a\u52a0\u5165\u66f4\u591a\u529f\u80fd\u6216\u4f18\u5316\uff0c\u8fd9\u4e2a\u81ea\u5df1\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684\u5c31\u597d\u3002\u5b98\u65b9\u56fa\u4ef6\u4e0b\u8f7d\u5730\u5740\uff1aopenwrt.org<\/a>\u00a0\uff0c\u5357\u4eac\u5927\u5b66\u955c\u50cf\u6e90<\/a>\u00a0\uff0c\u6e05\u534e\u5927\u5b66\u955c\u50cf\u6e90<\/a>\u00a0\u3002\u7136\u540e\u5728\u5217\u8868\u4e2d\u5bfb\u627e\u5bf9\u5e94\u578b\u53f7\u5373\u53ef\uff0c\u6211\u4eec\u672c\u6b21\u4f7f\u7528\u7684\u8bbe\u5907\u662f\u5c0f\u7c73\u8def\u7531\u56684A\u5343\u5146\u7248\uff0c\u5bf9\u5e94\u7684\u6587\u4ef6\u540d\u5c31\u5e94\u8be5\u4e3aopenwrt-21.02.3-ramips-mt7621-xiaomi_mi-router-4a-gigabit-squashfs-sysupgrade.bin<\/code>\uff0c\u6ce8\u610f\u9700\u8981\u4e0b\u8f7dsysupgrade<\/code>\u5305\u800c\u975einitramfs<\/code>\u5305\u3002<\/p>\n

    \u63a5\u4e0b\u6765\u9700\u8981\u4e0b\u8f7d OpenwrtInvasion \u811a\u672c\uff0c\u8be5\u811a\u672c\u7528\u4e8e\u901a\u8fc7\u6f0f\u6d1e\u5bf9\u5b98\u65b9\u56fa\u4ef6\u5f00\u542f ssh \u3002Github\u5730\u5740\uff1aacecilia\/OpenWRTInvasion<\/a>\u00a0\uff0c\u53ef\u4ee5\u91c7\u7528git clone<\/code>\u7684\u65b9\u5f0f\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7dZIP\u3002<\/p>\n

    \u5982\u679c\u9700\u8981\u5237\u5165 Padavan \u6216\u5176\u4ed6\u56fa\u4ef6\u8fd8\u9700\u8981\u4e0b\u8f7d\u4e00\u4efd breed \uff0c\u53ef\u4ee5\u4ece\u00a0Boot and Recovery Environment for Embedded Devices<\/a>\u00a0\u4e2d\u4e0b\u8f7d\uff0c\u9009\u62e9\u5bf9\u5e94\u7684CPU\u548c\u578b\u53f7\u5373\u53ef\u3002\u5237\u5165\u5b98\u65b9\u7f16\u8bd1\u7684OpenWRT\u4e0d\u9700\u8981\u4ecebreed\u5237\u5165<\/strong>\uff0c\u53ef\u80fd\u4f1a\u9020\u6210bootloop\u3002<\/p>\n

    \u53ef\u80fd\u8fd8\u9700\u8981\u4e00\u4e2a\u989d\u5916\u7684\u7f51\u7edc\u73af\u5883\u4fdd\u8bc1\u4e0b\u8f7d\u5176\u4ed6\u5fc5\u8981\u7684\u6587\u4ef6\u3002<\/p>\n

    \u5f00\u542f\u5b98\u65b9\u56fa\u4ef6\u7684SSH<\/h3>\n

    \u5c06\u7f51\u7ebf\u8fde\u63a5\u81f3\u7535\u8111\uff0c\u5728\u6d4f\u89c8\u5668\u5185\u6253\u5f00\u5c0f\u7c73\u8def\u7531\u5668\u7684\u540e\u53f0\u7ba1\u7406\u5730\u5740\uff0c\u9ed8\u8ba4\u662fhttp:\/\/192.168.31.1<\/code>\uff0c\u767b\u5f55\u540e\u5c06\u5730\u5740\u680f\u7684\u6574\u6bb5\u6587\u5b57\u590d\u5236\u51fa\u6765\u5907\u7528\uff0c\u6574\u6bb5\u5730\u5740\u5e94\u8be5\u662f\u5f62\u4f3chttp:\/\/192.168.31.1\/cgi-bin\/luci\/;stok=xxx\/web\/home<\/code>\u7684\uff0c\u6b64\u65f6\u4e0d\u8981\u5173\u95ed\u5df2\u767b\u5f55\u540e\u53f0\u7684\u6d4f\u89c8\u5668<\/strong>\u3002<\/p>\n

    \u7136\u540e\u6253\u5f00Terminal\uff0c\u8f93\u5165\u5982\u4e0b\u6307\u4ee4\u5b89\u88c5\u4f9d\u8d56\uff1a<\/p>\n

    pip3 install -r requirements.txt<\/pre>\n

    \u4f9d\u8d56\u5b89\u88c5\u5b8c\u6210\u540e\u6267\u884c\u811a\u672c\u89e3\u9501\u5b98\u65b9SSH\uff1a<\/p>\n

    python3 remote_command_execution_vulnerability.py<\/pre>\n

    \u4e2d\u95f4\u9700\u8981\u8f93\u5165\u4e0a\u9762\u4fdd\u5b58\u7684\u5730\u5740\u4e2d\u7684stok\u53c2\u6570\uff0c\u76f4\u63a5\u6574\u6bb5\u590d\u5236\u7c98\u8d34\u8fdb\u53bb\u5373\u53ef\u3002<\/p>\n

    \u5f00\u542f\u5b8c\u6210\u540e\u901a\u8fc7ssh\u8fdb\u5165\u8def\u7531\u5668\u540e\u53f0\uff0c\u9ed8\u8ba4\u5bc6\u7801\u662froot<\/code>\uff1a<\/p>\n

    ssh root@192.168.31.1<\/pre>\n

    \u5237\u5165 OpenWRT \u56fa\u4ef6<\/h3>\n

    \u5c06\u4e0a\u9762\u4e0b\u8f7d\u7684\u56fa\u4ef6\u6587\u4ef6\u7528WinSCP\u4f20\u5165\/tmp\/<\/code>\u76ee\u5f55\uff0c\u5e76\u91cd\u547d\u540d\u4e3aa.bin<\/code>\uff08\u91cd\u547d\u540d\u4e3a\u5565\u90fd\u884c\uff0c\u4e0d\u6539\u4e5f\u884c\uff0c\u65b9\u4fbf\u8f93\u5165\u5c31\u884c\uff09\uff0c\u7136\u540e\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\u5237\u5165 OpenWRT \uff1a<\/p>\n

    # \u5207\u5230tmp\u76ee\u5f55\r\ncd \/tmp\r\n# \u8f93\u5165\u56fa\u4ef6\r\nmtd -e OS1 -r write firmware.bin OS1<\/pre>\n

    \u5f00\u59cb\u5237\u5199\u540e\u4f1a\u5148\u64e6\u9664\u5bf9\u5e94\u5206\u533a\u7136\u540e\u5199\u5165\u56fa\u4ef6\u6587\u4ef6\uff0c\u6b64\u65f6\u65e0\u8bba\u5982\u4f55\u4e0d\u8981\u52a8\u8def\u7531\u5668\u3001\u7f51\u7ebf\u548c\u7535\u6e90<\/strong>\uff0c\u7b49\u5f85\u7535\u8111\u6b63\u5e38\u83b7\u53d6\u5230IP\u4e14\u8def\u7531\u5668\u4e3bLED\u706f\u53d8\u4e3a\u84dd\u8272<\/strong>\u65f6\u5373\u53ef\u8fdb\u5165\u540e\u53f0\u3002<\/p>\n

     <\/p>\n

    \u8bbe\u7f6e<\/h2>\n

    \u8fd9\u91cc\u4ec5\u5217\u4e3e\u5bb9\u6613\u9057\u5fd8\u6216\u8005\u9700\u8981\u67e5\u627e\u5916\u90e8\u6570\u636e\u7684\u9879\uff0c\u5176\u4ed6\u4f8b\u5982\u4fee\u6539root\u5bc6\u7801\u8fd9\u79cd\u57fa\u7840\u64cd\u4f5c\u5728\u6b64\u7565\u8fc7\u3002
    \u8fd9\u91cc\u5217\u51fa\u7684\u8bbe\u7f6e\u9879\u7684\u793a\u4f8b\u503c\u4ec5\u4e3a\u63a8\u8350\u9009\u9879\uff0c\u5b9e\u9645\u7f51\u7edc\u73af\u5883\u975e\u5e38\u590d\u6742\u8bf7\u6839\u636e\u81ea\u5df1\u7684\u7f51\u7edc\u73af\u5883\u53d8\u901a\u8bbe\u7f6e\u3002
    \u8fd9\u91cc\u6ca1\u6709\u63d0\u5230\u7684\u8bbe\u7f6e\u9879\u5219\u4e00\u822c\u4e3a\u9ed8\u8ba4\u503c\u4e0d\u5fc5\u66f4\u6539\u3002<\/p><\/blockquote>\n

    \u66f4\u6362 OPKG \u8f6f\u4ef6\u6e90\uff08nju\uff09<\/h3>\n

    \u5b98\u65b9\u5e2e\u52a9\u9875\u9762<\/a><\/p>\n

    shell \u6267\u884c\u5982\u4e0b\u547d\u4ee4\u81ea\u52a8\u66ff\u6362\uff1a<\/p>\n

    sed -i 's_downloads.openwrt.org_mirror.nju.edu.cn\/openwrt_' \/etc\/opkg\/distfeeds.conf<\/pre>\n

    \u66f4\u6362 OPKG \u8f6f\u4ef6\u6e90\uff08tsinghua\uff09<\/h3>\n

    \u5b98\u65b9\u5e2e\u52a9\u9875\u9762<\/a><\/p>\n

    shell \u6267\u884c\u5982\u4e0b\u547d\u4ee4\u81ea\u52a8\u66ff\u6362\uff1a<\/p>\n

    sed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn\/openwrt_' \/etc\/opkg\/distfeeds.conf<\/pre>\n

    \u6c49\u5316<\/h3>\n

    \u5230System<\/code>\u2192Software<\/code>\u5b89\u88c5luci-i18n-base-zh-cn<\/code>\u8f6f\u4ef6\u5305\u5e76Ctrl+F5\u5f3a\u5236\u5237\u65b0\u540e\u751f\u6548\u3002<\/p>\n

    \u65e7\u7248\u672c\u53ef\u80fd\u9700\u8981\u5230System<\/code>\u2192System<\/code>\u2192language<\/code>\u66f4\u6362\u4e3a\u7b80\u4f53\u4e2d\u6587<\/code>\u3002<\/p>\n

    \u66f4\u6539NTP\u670d\u52a1\u5668<\/h3>\n

    \u8def\u5f84\uff1a\u7cfb\u7edf<\/code>\u2192\u7cfb\u7edf<\/code>\u2192\u65f6\u95f4\u540c\u6b65<\/code>\uff0c\u5019\u9009\u670d\u52a1\u5668\u66f4\u6539\u4e3a\u5982\u4e0b\u5168\u90e8\u6216\u4efb\u610f\u51e0\u4e2a\u5373\u53ef\u3002<\/p>\n\n\n\n\n\n
    \u9879<\/th>\n\u63a8\u8350\u503c<\/th>\n<\/tr>\n<\/thead>\n
    \u5019\u9009 NTP \u670d\u52a1\u5668<\/td>\nntp.ntsc.ac.cn
    \ncn.ntp.org.cn
    \ntime1.aliyun.com
    \ntime1.cloud.tencent.com
    \npool.ntp.org
    \ntime.apple.com
    \ntime.cloudflare.com<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

    Pv6 \u76f8\u5173\u8bbe\u7f6e<\/h3>\n

    \u8def\u5f84\uff1a\u7f51\u7edc<\/code>\u2192\u63a5\u53e3<\/code>\u2192LAN<\/code>\u2192DHCP\u670d\u52a1\u5668<\/code>\u2192IPv6\u8bbe\u7f6e<\/code>\u3002<\/p>\n\n\n\n\n\n\n\n
    \u9879<\/th>\n\u63a8\u8350\u503c<\/th>\n<\/tr>\n<\/thead>\n
    RA\u670d\u52a1<\/td>\n\u670d\u52a1\u5668\u6a21\u5f0f<\/td>\n<\/tr>\n
    DHCPv6 \u670d\u52a1<\/td>\n\u5df2\u7981\u7528<\/td>\n<\/tr>\n
    NDP\u4ee3\u7406<\/td>\n\u5df2\u7981\u7528<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

    \u8def\u5f84\uff1a\u7f51\u7edc<\/code>\u2192\u63a5\u53e3<\/code>\u2192LAN<\/code>\u2192DHCP\u670d\u52a1\u5668<\/code>\u2192IPv6 RA \u8bbe\u7f6e<\/code>\u3002<\/p>\n\n\n\n\n\n\n
    \u9879<\/th>\n\u63a8\u8350\u503c<\/th>\n<\/tr>\n<\/thead>\n
    \u9ed8\u8ba4\u8def\u7531\u5668<\/td>\n\u5728\u53ef\u7528\u7684\u524d\u7f00\u4e0a \u6216
    \n\u81ea\u52a8<\/td>\n<\/tr>\n
    \u542f\u7528 SLAAC<\/td>\n\u2705<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

    \u8def\u5f84\uff1a\u7f51\u7edc<\/code>\u2192\u63a5\u53e3<\/code>\u2192\u5168\u5c40\u7f51\u7edc\u9009\u9879<\/code>\u3002<\/p>\n

    \u81ea\u5b9a\u4e49 DNS<\/h3>\n

    \u8def\u5f84\uff1a\u7f51\u7edc<\/code>\u2192\u63a5\u53e3<\/code>\u2192WAN<\/code>\u2192\u9ad8\u7ea7\u8bbe\u7f6e<\/code>\u3002<\/p>\n\n\n\n\n\n\n
    \u9879<\/th>\n\u63a8\u8350\u503c<\/th>\n<\/tr>\n<\/thead>\n
    \u81ea\u52a8\u83b7\u53d6 DNS \u670d\u52a1\u5668<\/td>\n\u2b1c<\/td>\n<\/tr>\n
    \u4f7f\u7528\u81ea\u5b9a\u4e49\u7684 DNS \u670d\u52a1\u5668<\/td>\n\u81ea\u7531\u6dfb\u52a0\u6240\u9700\u8981\u7684DNS\u670d\u52a1\u5668IP<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

    \u5982\u679c\u8fd8\u542f\u7528\u4e86 IPv6 \uff1a<\/p>\n

    \u8def\u5f84\uff1a\u7f51\u7edc<\/code>\u2192\u63a5\u53e3<\/code>\u2192WAN6<\/code>\u2192\u9ad8\u7ea7\u8bbe\u7f6e<\/code>\u3002<\/p>\n\n\n\n\n\n\n
    \u9879<\/th>\n\u63a8\u8350\u503c<\/th>\n<\/tr>\n<\/thead>\n
    \u81ea\u52a8\u83b7\u53d6 DNS \u670d\u52a1\u5668<\/td>\n\u2b1c<\/td>\n<\/tr>\n
    \u4f7f\u7528\u81ea\u5b9a\u4e49\u7684 DNS \u670d\u52a1\u5668<\/td>\n\u81ea\u7531\u6dfb\u52a0\u6240\u9700\u8981\u7684DNS\u670d\u52a1\u5668IPv6\u5730\u5740<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

    \u81ea\u52a8\u91cd\u542f\u63a5\u53e3\u4ee5\u83b7\u5f97\u65b0\u7684\u5730\u5740<\/h3>\n
    ifdown wan6&&ifup wan6<\/pre>\n
      \n
    • ifdown<\/code>\u00a0\u505c\u7528\u63a5\u53e3<\/li>\n
    • ifup<\/code>\u00a0\u542f\u7528\u63a5\u53e3<\/li>\n<\/ul>\n

      \u6267\u884c\u8be5\u547d\u4ee4\u540e\u63a5\u53e3\u4f1a\u81ea\u52a8\u5411\u4e0a\u7ea7\u83b7\u53d6\u65b0\u7684 Prefix \u6216\uff08\u548c\uff09IP\u5730\u5740\uff0c\u4e5f\u53ef\u4ee5\u52a0\u5165 crontab \u4e2d\u786e\u4fdd\u4e1a\u52a1\u4e0d\u4e2d\u65ad\u3002<\/p>\n

      HTTPS<\/h3>\n

      \u4e00\u90e8\u5206\u6559\u7a0b\u5728\u8fd9\u91cc\u91c7\u7528\u7684\u662f Openwrt \u7684\u81ea\u7b7e\u8bc1\u4e66\uff0c\u7531\u4e8e\u4fe1\u4efb\u8be5\u81ea\u7b7e\u8bc1\u4e66\u53ef\u80fd\u5e76\u4e0d\u5b89\u5168\uff0c\u56e0\u6b64\u8fd9\u91cc\u4e0d\u4f7f\u7528\u81ea\u7b7e\u8bc1\u4e66\u3002<\/p><\/blockquote>\n

        \n
      1. \u5230Software\u4e2d\u5378\u8f7d\u6240\u6709px5g<\/code>\u76f8\u5173\u7684\u5305\uff1b<\/li>\n
      2. \u7528ssh\u8fde\u63a5\u5230OpenWRT\uff0c\u5220\u9664\/etc\/uhttpd.crt<\/code>\u548c\/etc\/uhttpd.key<\/code>\u4e24\u4e2a\u6587\u4ef6\uff0c\u7136\u540e\u5c06\u81ea\u7b7e\u8bc1\u4e66\u6216\u4e0b\u8f7d\u7684\u8bc1\u4e66\u653e\u5165\/etc<\/code>\u76ee\u5f55\uff1b<\/li>\n
      3. \uff08\u53ef\u9009\uff09\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\/etc\/config\/uhttpd<\/code>\uff0c\u627e\u5230option redirect_https<\/code>\u9879\uff0c\u540e\u9762\u7684\u7684\u503c\u4e3a1<\/code>\u65f6\u4f1a\u81ea\u52a8\u4ecehttp\u8df3\u8f6c\u81f3https\uff0c0<\/code>\u5219\u53cd\u4e4b\uff1b<\/li>\n
      4. \u91cd\u542fuhttpd\u5373\u53ef\uff1a\/etc\/init.d\/uhttpd restart<\/code>\u3002<\/li>\n
      5. <\/li>\n<\/ol>\n

        \u5176\u4ed6<\/h2>\n

        iperf3<\/h3>\n

        1.\u5b89\u88c5<\/p>\n

        opkg update&&opkg install iperf3<\/pre>\n

        2.\u8fd0\u884c\u4e3a\u670d\u52a1\u6a21\u5f0f<\/p>\n

        iperf3 -s<\/pre>\n

        3.\u9ed8\u8ba4\u6d4b\u8bd5\uff08\u6bcf\u6b21\u6301\u7eed1\u79d2\u949f\uff0c\u8fde\u7eed\u6d4b\u8bd560\u79d2\uff09\uff0c\u5176\u4e2d-c<\/code>\u53c2\u6570\u6307\u5b9a\u670d\u52a1\u5668\uff0c-p<\/code>\u53c2\u6570\u6307\u5b9a\u670d\u52a1\u5668\u7aef\u53e3\u3002<\/p>\n

        iperf3 -c mainserver.lxnchan-intranet -p 5835<\/pre>\n

        4.\u6267\u884c\u201c\u6bcf\u6b21\u6301\u7eed10\u79d2\uff0c\u8fde\u7eed\u6d4b\u8bd530\u79d2\u201d\uff0c\u5176\u4e2d-i<\/code>\u53c2\u6570\u6307\u5b9a\u6bcf\u6b21\u6301\u7eed\u65f6\u95f4\uff0c-t<\/code>\u53c2\u6570\u6307\u5b9a\u6d4b\u8bd5\u603b\u6301\u7eed\u65f6\u95f4\u3002<\/p>\n

        iperf3 -c mainserver.lxnchan-intranet -i 10 -t 30<\/pre>\n

        \u5c06\u65e5\u5fd7\u53d1\u9001\u5230\u670d\u52a1\u5668<\/h3>\n

        \u6253\u5f00\u7cfb\u7edf<\/code>\u2192\u7cfb\u7edf<\/code>\u2192\u65e5\u5fd7<\/code>\uff0c\u6309\u7167\u63d0\u793a\u586b\u5199\u5916\u90e8\u7cfb\u7edf\u65e5\u5fd7\u670d\u52a1\u5668\u5730\u5740<\/code>\u3001\u5916\u90e8\u7cfb\u7edf\u65e5\u5fd7\u670d\u52a1\u5668\u7aef\u53e3<\/code>\u548c\u5916\u90e8\u7cfb\u7edf\u65e5\u5fd7\u670d\u52a1\u5668\u534f\u8bae<\/code>\u5373\u53ef\u3002<\/p>\n

        \u6ce8\u610f\uff1a\u5916\u90e8\u7cfb\u7edf\u65e5\u5fd7\u670d\u52a1\u5668\u5730\u5740<\/code>\u8981\u586b\u5199\u65e5\u5fd7\u670d\u52a1\u5668\u7684IP\u5730\u5740<\/strong>\uff0c\u6700\u597d\u4e0d\u8981\u586b\u5199\u57df\u540d\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u8fde\u63a5\u5931\u8d25\uff1b\u5916\u90e8\u7cfb\u7edf\u65e5\u5fd7\u670d\u52a1\u5668\u7aef\u53e3<\/code>\u9ed8\u8ba4\u662f514<\/code>\uff0c\u4f9d\u636e\u5b9e\u9645\u60c5\u51b5\u8c03\u6574\u6216\u4fdd\u6301\u9ed8\u8ba4\uff1b\u5916\u90e8\u7cfb\u7edf\u65e5\u5fd7\u670d\u52a1\u5668\u534f\u8bae<\/code>\u63a8\u8350\u4f7f\u7528UDP<\/code>\u3002<\/p>\n

        \u68c0\u67e5\u662f\u5426\u8bbe\u7f6e\u6210\u529f\u7684\u65b9\u6cd5\u53ef\u4ee5\u67e5\u770b\u65e5\u5fd7\u670d\u52a1\u5668\u4e0a\u662f\u5426\u65b0\u589e\u4e86\u65e5\u5fd7\uff0c\u6216\u8005\u67e5\u770b OpenWrt \u65e5\u5fd7\uff0c\u82e5\u6709\u4e0b\u5217\u8f93\u51fa\u5219\u8fde\u63a5\u6210\u529f\uff1a<\/p>\n

        daemon.info logread[22393]: Logread connected to xx.x.xxx.xxx:514<\/pre>\n

        \u672c\u6587\u6765\u81ea\uff1a\u6ce0\u6ceb\u51dd\u7684\u5f02\u6b21\u5143\u7a7a\u95f4 http:\/\/lxnchan.cn\/mi-r4ag-openwrt.html<\/p>\n","protected":false},"excerpt":{"rendered":"

        \u672c\u6587\u4ecb\u7ecd\u4e86\u5c0f\u7c73\u8def\u7531\u56684A\u5343\u5146\u7248\u5237Openwrt\u56fa\u4ef6\u8ddf\u8def\u7531\u5668\u7684\u4e00\u4e9b\u8bbe\u7f6e\u95ee\u9898\uff0c\u7531\u4e8e\u5c0f\u7c73\u8def\u7531\u5668\u5b98\u65b9MiWiFi\u56fa\u4ef6\u9609\u5272\u4e86\u975e\u5e38\u591a\u7684\u529f\u80fd\uff0c\u6240\u4ee5\u628a\u8def\u7531\u5668\u5237\u5165Openwrt\u56fa\u4ef6\u80fd\u5927\u5927\u63d0\u9ad8\u4f7f\u7528\u4f53\u9a8c\u2026<\/p>\n","protected":false},"author":680,"featured_media":4285,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[3257,3258,3256],"attr":[],"class_list":["post-9751","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-firmware","tag-openwrt","tag-4aopenwrt","tag-4a","entry"],"views":38651,"_links":{"self":[{"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/posts\/9751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/users\/680"}],"replies":[{"embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/comments?post=9751"}],"version-history":[{"count":0,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/posts\/9751\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/media\/4285"}],"wp:attachment":[{"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/media?parent=9751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/categories?post=9751"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/tags?post=9751"},{"taxonomy":"attr","embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/attr?post=9751"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}