{"id":3269,"date":"2018-11-27T12:25:29","date_gmt":"2018-11-27T04:25:29","guid":{"rendered":"https:\/\/tao0.date\/?p=3269"},"modified":"2018-11-30T13:56:16","modified_gmt":"2018-11-30T05:56:16","slug":"%e6%a2%85%e6%9e%97%e5%9b%ba%e4%bb%b6-%e5%8d%95%e7%ba%bf%e5%9b%9b%e6%8b%a8-%e5%b9%bf%e5%b7%9e%e7%94%b5%e4%bf%a150m4200m-%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/tao0.date\/?p=3269","title":{"rendered":"\u6885\u6797\u56fa\u4ef6 \u5355\u7ebf\u56db\u62e8 \u5e7f\u5dde\u7535\u4fe150M*4=200M \u6559\u7a0b"},"content":{"rendered":"<div><img decoding=\"async\" src=\"https:\/\/tao0.date\/wp-content\/uploads\/2018\/11\/511a2-2202491954.png\" alt=\"QQ\u56fe\u724720170825193024.png\" \/><\/div>\n<p>\u53ea\u662f\u6d4b\u901f\u70b9\u662f\u6df1\u5733\uff0c\u6211\u5bb6\u662f\u5e7f\u5dde\u7535\u4fe150M<\/p>\n<p>\u5173\u4e8e(\u53cc)\u591a\u62e8\uff0c\u5927\u5bb6\u5e94\u8be5\u90fd\u6709\u6240\u8033\u95fb\uff0c\u8be6\u7ec6\u6211\u4e0d\u591a\u8bf4\uff0c\u5927\u610f\u5c31\u662f\u53ef\u4ee5\u901a\u8fc7\u591a\u6b21\u62e8\u53f7\u6765\u53e0\u52a0\u7f51\u901f \u8ba9\u4f60\u7684\u5e26\u5bbd\u9ad8\u4e8e\u7b7e\u7ea6\u901f\u5ea6<\/p>\n<p>\u800c\u591a\u62e8\u7684\u6559\u7a0b\u7f51\u4e0a\u4e5f\u591a\u5982\u725b\u6bdb\uff0c\u6709\u5404\u79cd\u5404\u6837\u7684\u65b9\u6cd5\uff0c\u4f46\u662f\u4eca\u5929\u6211\u8981\u53d1\u7684\u6559\u7a0b\u662f\u6211\u5728\u7f51\u4e0a\u4ece\u6ca1\u627e\u5230\u8fc7\u7684 \u6885\u6797\u56fa\u4ef6\u7684\u591a\u62e8\u6559\u7a0b<\/p>\n<p>\u5927\u5bb6\u4e00\u76f4\u5b58\u5728\u4e00\u4e2a\u8bef\u533a\u5c31\u662f\u6885\u6797\u53ea\u652f\u6301\u53cc\u62e8\uff0c\u4f46\u662f\u5b9e\u9645\u4e0a\u6885\u6797\u5b8c\u5168\u53ef\u4ee5\u5b9e\u73b0\u591a\u62e8\uff0c\u53ea\u662f\u6ca1\u6709\u4eba\u53d1\u51fa\u8fc7\u6559\u7a0b\uff08\u4e5f\u8bb8\u6709\u4eba\u505a\u8fc7 \u4f46\u662f\u6211\u6ca1\u641c\u5230\uff09<\/p>\n<p>\u81f3\u4e8e\u4e3a\u4ec0\u4e48\u6211\u4e0d\u7528OpenWrt\u591a\u62e8\uff0c\u663e\u800c\u6613\u89c1\u7684\u662f\uff1aopenwrt\u5bf9\u4e8e\u7f51\u4ef6\u8def\u7531\u5668\u7684\u652f\u6301\u5f88\u5dee\uff0c\u6ca1\u6709\u786c\u4ef6nat\uff0c\u4e5f\u6ca1\u6709 5G WIFI ac\u652f\u6301\uff08R7000\u751a\u81f3\u6ca1\u6709\u65e0\u7ebf\uff09<\/p>\n<p>so\uff0c\u7ecf\u8fc7\u4e09\u5929\u7684\u7814\u7a76\uff0c\u7ec8\u4e8e\u5728\u4eca\u5929\u641e\u5b9a\u4e86\uff0c\u628a\u65b9\u6cd5\u53d1\u51fa\u6765\u8ba9\u5927\u5bb6\u90fd\u80fd\u4eab\u53d7\u6885\u6797\u591a\u62e8~<\/p>\n<p>\u56e0\u4e3a\u8fd9\u662f\u4e00\u7bc7\u6559\u7a0b\u800c\u4e0d\u662f\u4e2a\u4eba\u8bb0\u5f55\uff0c\u6240\u4ee5\u6211\u4f1a\u76f4\u63a5\u628a\u7ed3\u679c\u548c\u539f\u7406\u53d1\u51fa\u6765\uff0c\u800c\u4e0d\u4f1a\u628a\u81ea\u5df1\u63a2\u7d22\u7684\u8fc7\u7a0b\u5199\u51fa\u6765\u3002<\/p>\n<h2>0x00 \u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u7f51\u4ef6\u8def\u7531\u5668\uff08\u8fd9\u91cc\u662fR6300v2\uff09 \u6885\u6797\u56fa\u4ef6\uff08\u6211\u7528\u7684\u7248\u672c\u4e3a380.65_X7.4\uff09 \u5df2\u7ecf\u914d\u7f6e\u597dwan0\u53e3\u7684\u62e8\u53f7\uff08\u5c31\u662f\u5df2\u7ecf\u53ef\u4ee5\u6b63\u5e38\u62e8\u53f7\u4e0a\u7f51\uff09<\/p>\n<p>\u63d0\u793a\uff1a\u6700\u540e\u5230\u5e95\u80fd\u4e0d\u80fd\u6709\u6548\u679c\u53d6\u51b3\u4e8e\u5f53\u5730\u8fd0\u8425\u5546\uff0c\u5982\u679c\u4f60\u5df2\u7ecf\u6709\u53cc\u62e8\u7ecf\u9a8c\uff0c\u53ef\u4ee5\u89c6\u60c5\u51b5\u5f00\u542fMultiPPPd\u5e76\u53d1\u62e8\u53f7\uff08\u6211\u8fd9\u8fb9\u4e0d\u7528\uff09<\/p>\n<h2>0x01 \u914d\u7f6e\u9636\u6bb5<\/h2>\n<p>\u4f60\u9700\u8981\u628a\u6885\u6797\u7684SSH\u6253\u5f00\uff0c\u7cfb\u7edf\u7ba1\u7406-\u7cfb\u7edf\u8bbe\u7f6e-Enable SSH-LAN Only<\/p>\n<p>\u4e5f\u8981\u542f\u7528JFFS\uff0c\u7cfb\u7edf\u7ba1\u7406-\u7cfb\u7edf\u8bbe\u7f6e-JFFS Enable JFFS custom scripts and configs-\u662f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/tao0.date\/wp-content\/uploads\/2018\/11\/3a729-3585367561.png\" alt=\"QQ\u56fe\u724720170825190445.png\" \/><\/p>\n<p>\u4f7f\u7528putty\u6216\u8005\u522b\u7684\u4ec0\u4e48ssh\u8f6f\u4ef6\u8fde\u63a5\u4e0a\u8def\u7531\u5668\uff0c\u7528\u6237\u540d\u548c\u5bc6\u7801\u4e0eweb\u4e00\u81f4\uff08ssh\u8fde\u63a5\u6559\u7a0b\u8bf7\u81ea\u884c\u767e\u5ea6\uff09<\/p>\n<pre>\r\ncp \/tmp\/ppp\/options.wan0 \/jffs\/options.duobo1\r\ncp \/tmp\/ppp\/options.wan0 \/jffs\/options.duobo2\r\ncp \/tmp\/ppp\/options.wan0 \/jffs\/options.duobo3\r\n<\/pre>\n<p>\u6267\u884c\u4ee5\u4e0a\u547d\u4ee4\uff08\u5982\u679c\u9700\u8981\u66f4\u591a\u6b21\u62e8\u53f7\u5c31\u4ee5\u6b64\u7c7b\u63a8\uff09<\/p>\n<p>\u7136\u540e\u4fee\u6539\/jffs\/options.duoboX\u7684\u5185\u5bb9\uff0c\u6bcf\u4e00\u4e2a\u90fd\u8981\u4fee\u6539<\/p>\n<p>\u5982\u4f55\u4fee\u6539\u6587\u4ef6\u5185\u5bb9\uff1f\u81ea\u884c\u767e\u5ea6\uff0c\u4f60\u53ef\u4ee5\u7528vim\u7f16\u8f91\uff0c\u4e5f\u53ef\u4ee5\u7528WinSCP\u8fde\u63a5\u7f16\u8f91<\/p>\n<pre>noauth\r\nrefuse-eap\r\nuser '\u7528\u6237\u540d'\r\npassword '\u5bc6\u7801'\r\nnomppe nomppc\r\nplugin rp-pppoe.so nic-vlan2\r\nmru 1492 mtu 1492\r\npersist\r\nholdoff 10\r\nmaxfail 0\r\nusepeerdns\r\nipcp-accept-remote ipcp-accept-local noipdefault\r\nktune\r\ndefault-asyncmap nopcomp noaccomp\r\nnovj nobsdcomp nodeflate\r\nlcp-echo-interval 6\r\nlcp-echo-failure 10\r\nlcp-echo-adaptive\r\nunit 0\r\nlinkname duobo1\r\n<\/pre>\n<p>\u5b9e\u9645\u4e0a\uff0c\u4e0a\u9762\u90a3\u4e9b\u90fd\u4e0d\u9700\u8981\u7ba1\uff0c\u53ea\u9700\u8981\u628a\u6700\u540e\u4e00\u884c\u7684linkname\u4fee\u6539\u4e3aduoboX\u5c31\u884c\uff08\u6bcf\u4e00\u4e2a\u90fd\u8981\u4fee\u6539\uff0c\u5176\u5b9e\u53ea\u8981\u4fdd\u8bc1\u6bcf\u4e2alinkname\u4e0d\u540c\u5373\u53ef\uff09<\/p>\n<h2>0x02 \u8fde\u63a5\uff01<\/h2>\n<p>\u73b0\u5728\u4f60\u7cfb\u7edf\u4e0a\u672c\u8eab\u5df2\u7ecf\u6709\u4e00\u4e2a\u5efa\u7acb\u4e86\u7684\u8fde\u63a5ppp0\uff08\u5c31\u662f\u7cfb\u7edf\u81ea\u5e26\u7684wan0\u62e8\u51fa\u53bb\u7684\uff09\uff0c\u6211\u4eec\u518d\u6765\u62e8\u591a\u51e0\u4e2a<\/p>\n<pre>\/usr\/sbin\/pppd file \/jffs\/options.duobo1\r\n\/usr\/sbin\/pppd file \/jffs\/options.duobo2\r\n\/usr\/sbin\/pppd file \/jffs\/options.duobo3\r\n<\/pre>\n<p>\u6b64\u90e8\u5206\u64cd\u4f5c\uff0c\u5982\u679c\u662f\u9700\u8981\u5e76\u53d1\u62e8\u53f7\u7684\u8bf7\u540c\u65f6\u52a0\u4e0a \/usr\/sbin\/pppd file \/tmp\/ppp\/options.wan0 \u5728\u7b2c\u4e00\u884c<\/p>\n<p>\u7136\u540e\u7b49\u5f85\u62e8\u53f7\u6210\u529f \u8fd0\u884c ifconfig \u547d\u4ee4<\/p>\n<p><img decoding=\"async\" title=\"snipaste_20170825_192201.png\" src=\"https:\/\/tao0.date\/wp-content\/uploads\/2018\/11\/6aa93-2204370706.png\" alt=\"snipaste_20170825_192201.png\" \/><\/p>\n<p>\u5f53\u4f60\u770b\u5230\u6709\u591a\u4e2appp\uff08\u6709\u591a\u5c11\u4e2a\u4ee5\u4f60\u81ea\u5df1\u62e8\u7684\u6570\u91cf\u4e3a\u51c6\uff09\u5168\u90e8\u4e0a\u7ebf\u5e76\u4e14\u83b7\u53d6\u5230ip\u540e \u5c31\u53ef\u4ee5\u8fdb\u884c\u4e0b\u4e00\u6b65\u64cd\u4f5c\u4e86<\/p>\n<p>\u8bf7\u8bb0\u4f4f\u56fe\u4e2d\u7684P-t-P:14.147.28.1\u4e2d\u768414.147.28.1\u662f\u7f51\u5173\u5730\u5740\uff0c\u540e\u9762\u9700\u8981\u7528\u5230<\/p>\n<h2>0x03 \u8fdb\u4e00\u6b65\u914d\u7f6e<\/h2>\n<p>\u914d\u7f6e\u8def\u7531\u8868<\/p>\n<pre>ip route del default\r\nip route add default nexthop via 14.147.28.1 dev ppp0 weight 1 \\\r\nnexthop via 14.147.28.1 dev ppp1 weight 1 \\\r\nnexthop via 14.147.28.1 dev ppp2 weight 1 \\\r\nnexthop via 14.147.28.1 dev ppp3 weight 1\r\nip route flush cache\r\n<\/pre>\n<p>\u8bf7\u628a\u91cc\u9762\u7684 via 14.147.28.1 \u6539\u4e3a\u4f60\u524d\u9762\u8bb0\u4f4f\u7684\u7f51\u5173\u5730\u5740\uff0cdev ppp3\u4f9d\u636e\u4f60\u62e8\u53f7\u6570\u91cf\u4ee5\u6b64\u7c7b\u63a8<\/p>\n<p>\u6dfb\u52a0SNAT\uff08\u7b2c\u4e00\u884c\u662f\u6e05\u7a7a\u9ed8\u8ba4\u8868\u9632\u6b62\u5e72\u6270\uff09<\/p>\n<pre>iptables -t nat -F POSTROUTING\r\niptables -t nat -A POSTROUTING -s 192.168.1.0\/24 -o ppp0 -j MASQUERADE\r\niptables -t nat -A POSTROUTING -s 192.168.1.0\/24 -o ppp1 -j MASQUERADE\r\niptables -t nat -A POSTROUTING -s 192.168.1.0\/24 -o ppp2 -j MASQUERADE\r\niptables -t nat -A POSTROUTING -s 192.168.1.0\/24 -o ppp3 -j MASQUERADE\r\n<\/pre>\n<p>\u9700\u8981\u4fee\u6539-s 192.168.1.0\/24\u4e3a\u4f60\u5b9e\u9645\u7684\u5185\u7f51\u6bb5\uff08\u9ed8\u8ba4\u5c31\u662f\u8fd9\u4e2a \u5982\u679c\u4e0d\u77e5\u9053\u5c31\u4e0d\u8981\u6539\u4e86\uff0c\u6539\u8fc7\u7684\u4eba\u81ea\u7136\u77e5\u9053\u600e\u4e48\u6539\uff09<\/p>\n<p>\u5230\u8fd9\u91cc\u914d\u7f6e\u5df2\u7ecf\u5168\u90e8\u7ed3\u675f\u4e86\uff0c\u4e0a\u7f51\u4e00\u6bb5\u65f6\u95f4\u540e\u901a\u8fc7 iptables -t nat -L POSTROUTING -nv \u6765\u67e5\u770b\u72b6\u6001<\/p>\n<pre>Chain POSTROUTING (policy ACCEPT 119 packets, 38504 bytes)\r\n pkts bytes target     prot opt in     out     source               destination\r\n 1713  115K MASQUERADE  all  --  *      ppp0    192.168.200.0\/24     0.0.0.0\/0\r\n 2173  161K MASQUERADE  all  --  *      ppp1    192.168.200.0\/24     0.0.0.0\/0\r\n 1631  105K MASQUERADE  all  --  *      ppp2    192.168.200.0\/24     0.0.0.0\/0\r\n 1113 71012 MASQUERADE  all  --  *      ppp3    192.168.200.0\/24     0.0.0.0\/0\r\n<\/pre>\n<p>\u53ef\u4ee5\u770b\u5230\u56db\u4e2a\u7f51\u53e3\u8d1f\u8f7d\u5747\u8861\u4e86\uff0c\u76ee\u6807\u8fbe\u6210\uff0c\u5177\u4f53\u6d4b\u901f\u6548\u679c\u5c31\u662f\u672c\u6587\u5f00\u5934\u7684\u56fe<\/p>\n<h2>0x04 \u53ef\u9009\u4f18\u5316\u9879\u76ee<\/h2>\n<p>\u5b9e\u9645\u4e0a\u6309\u7167\u4e0a\u9762\u7684\u505a\uff0c\u6d4b\u901f\u8fd8\u662f\u6ca1\u6709\u6211\u5f00\u5934\u56fe\u7247\u7684\u90a3\u4e2a\u6548\u679c\uff0c\u53ea\u6709bt\u4e0b\u8f7d\uff08\u591a\u6e90\uff09\u624d\u4f1a\u6709\u6548\u679c<\/p>\n<p>\uff08\u8fd9\u65f6\u5019\u5982\u679c\u4f60\u76f4\u63a5\u6d4b\u901f \u53ea\u6709\u5f00\u5934\u76841s\u4f1a\u6709\u53e0\u52a0\u7684\u6548\u679c\uff0c\u7136\u540e\u5c31\u6389\u4e0b\u53bb\u4e86\uff1f\uff09<\/p>\n<p>\u5982\u679c\u8981\u50cf\u6211\u4e00\u6837\u5f97\u51fa\u660e\u663e\u7684\u6d4b\u901f\u7ed3\u679c\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u7981\u7528\u8def\u7531\u7f13\u5b58<\/p>\n<p>\u5177\u4f53\u53c2\u8003\u00a0<a href=\"http:\/\/www.openwrt.org.cn\/bbs\/forum.php?mod=viewthread&amp;tid=7538\">http:\/\/www.openwrt.org.cn\/bbs\/forum.php?mod=viewthread&amp;tid=7538<\/a><\/p>\n<p>\u8981\u76f4\u63a5\u7ed9\u547d\u4ee4\u7684\u8bdd\u5c31\u662f<\/p>\n<pre>echo -1 &gt; \/proc\/sys\/net\/ipv4\/rt_cache_rebuild_count\r\n<\/pre>\n<h2>0x05 \u6e29\u99a8\u63d0\u793a<\/h2>\n<p>\u8def\u7531\u5668\u6bcf\u6b21\u91cd\u542f\u4e4b\u540e\u4f60\u90fd\u9700\u8981\u6309\u7167\u4e0a\u9762\u6765\u4e00\u6b21\uff0c\u4e3a\u4e86\u907f\u514d\u591a\u6b21\u590d\u5236\u4fee\u6539\u62e8\u53f7\u6587\u4ef6\u6211\u5df2\u7ecf\u628a\u5b83\u653e\u5230\u4e86jffs\u91cc<\/p>\n<p>\u6240\u4ee50x01\u90e8\u5206\u7684\u64cd\u4f5c\u91cd\u542f\u4e4b\u540e\u4e0d\u7528\u91cd\u505a\uff0c\u4f46\u662f\u5176\u4ed6\u540e\u9762\u7684\u5168\u90e8\u90fd\u8981\u518d\u505a\u4e00\u6b21<\/p>\n<p>\u867d\u7136\u540e\u9762\u7684\u64cd\u4f5c\u5e76\u4e0d\u7e41\u7410\uff0c\u4f46\u662f\u5982\u679c\u6709\u4eba\u6765\u628a\u4ed6\u5199\u6210\u81ea\u542f\u52a8\u811a\u672c\u5c31\u66f4\u597d\uff0c\u53ef\u4ee5\u5b9e\u73b0\u65b9\u4fbf\u7684\u81ea\u52a8\u8d1f\u8f7d\u5747\u8861\u591a\u62e8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53ea\u662f\u6d4b\u901f\u70b9\u662f\u6df1\u5733\uff0c\u6211\u5bb6\u662f\u5e7f\u5dde\u7535\u4fe150M \u5173\u4e8e(\u53cc)&hellip;<\/p>\n","protected":false},"author":1,"featured_media":3271,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[241,242],"class_list":["post-3269","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website-document","tag-241","tag-242"],"_links":{"self":[{"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/posts\/3269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3269"}],"version-history":[{"count":0,"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/posts\/3269\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/media\/3271"}],"wp:attachment":[{"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}