{"id":2420,"date":"2018-09-25T10:31:15","date_gmt":"2018-09-25T02:31:15","guid":{"rendered":"https:\/\/www.mudone.com\/?p=2420"},"modified":"2018-09-26T02:51:42","modified_gmt":"2018-09-25T18:51:42","slug":"setup-a-smart-home-gateway","status":"publish","type":"post","link":"https:\/\/www.mudone.com\/?p=2420","title":{"rendered":"\u5bb6\u5ead\u7f51\u5173\u7684\u914d\u7f6e\u8bb0\u5f55"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>\u4e3b\u8981\u7684\u8bc9\u6c42\uff1a<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u80fd\u591f\u5728\u5916\u90e8\u7f51\u7edc\u968f\u65f6\u63a5\u5165\u5230\u5bb6\u91cc\u7684\u5185\u7f51\u3001\u8bbf\u95ee\u5bb6\u91cc\u7684\u5404\u79cd\u8bbe\u5907\uff1b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u5bb6\u91cc\u7684\u4e00\u4e9b\u5bb6\u7535\u4e5f\u5e26\u7f51\u7edc\u63a7\u5236\u529f\u80fd\uff08\u6240\u8c13\u7684\u667a\u80fd\u5bb6\u7535\uff09\uff0c\u540e\u7eed\u5e0c\u671b\u80fd\u591f\u901a\u8fc7\u8fd9\u4e2a\u5c0f\u7f51\u5173\u5b9e\u73b0\u7535\u5668\u81ea\u52a8\u63a7\u5236\u548c\u8c03\u8282\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u5bb6\u5ead\u7f51\u7edc\u60c5\u51b5\uff1a<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u6d77\u7535\u4fe1500M(\u4e0b\u884c)\/50M(\u4e0a\u884c)\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7535\u4fe1\u63a5\u5165\u8bbe\u5907\uff1a\u70fd\u706b\u901a\u4fe1SDN\u7f51\u5173\uff0c\u578b\u53f7\u662f HG2821T-U\uff0c\u7535\u4fe1\u76ee\u524d\u65b0\u5f00\u6237\u4ee5\u53ca\u5347\u7ea7\u4e0a\u6765\u7684\u7f51\u7edc\u90fd\u662f\u91c7\u7528\u8fd9\u79cdSDN\u7f51\u5173\uff0c\u76ee\u524d\u7f51\u4e0a\u6682\u672a\u627e\u5230\u6210\u719f\u7684\u65b9\u6848\u8fdb\u5165\u8bbe\u5907\u8fdb\u884c\u4e00\u4e9b\u914d\u7f6e\u3002\u597d\u5728\u7535\u4fe1\u63d0\u4f9b\u4e86APP\u8ddf\u7f51\u5173\u8bbe\u5907\u7ed1\u5b9a\u4e4b\u540e\u53ef\u4ee5\u8bbe\u7f6eDMZ\u548cUPnP\uff0c\u4f46\u662f\u7b2c\u4e00\u6b21\u5728APP\u8bbe\u7f6e\u4e4b\u540e\u672a\u751f\u6548\uff0c\u91cd\u542f\u7f51\u5173\u4e5f\u65e0\u6548\u3002\u65e0\u5948\u62e8\u6253\u4e86\u7535\u4fe1\u7684\u62a5\u4fee\u7535\u8bdd\uff0c\u7535\u4fe1\u5de5\u4f5c\u4eba\u5458\u4e0a\u95e8\u4e4b\u540e\u7ed9\u51fa\u7684\u89e3\u51b3\u65b9\u6848\u662f\u6362\u8bbe\u5907\u6539\u6865\u63a5\uff0c\u5f53\u5929\u5de5\u4f5c\u4eba\u5458\u6362\u4e86\u4e09\u53f0\u8bbe\u5907\u90fd\u6ca1\u6709\u6210\u529f\uff0c\u7ea6\u4e86\u7b2c\u4e8c\u5929\u518d\u6362\u8bbe\u5907\u6765\u5904\u7406\uff0c\u4e0d\u8fc7\u5f53\u5929\u665a\u4e0a\u7684\u65f6\u5019\u518d\u8bd5DMZ\u548cUPnP\u5012\u662f\u80fd\u7528\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u7f51\u5173\u63a5\u5165\u8bbe\u5907\uff1a<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/wiki.friendlyarm.com\/wiki\/index.php\/NanoPi_2_Fire\" target=\"_blank\" rel=\"noopener\">NanoPi 2 Fire<\/a>\uff0c2016\u5e74\u521d\u4ee599\u5143\u7684\u4ef7\u683c\u8d2d\u5165\uff0c\u5f53\u65f6\u73a9\u4e86\u4e00\u4e2a\u6708\uff0c\u5b89\u88c5\u4e86Ubuntu Mate\uff0c\u539f\u8ba1\u5212\u662f\u628a\u8fd9\u4e2a\u5c0f\u677f\u5b50\u4f5c\u4e3a\u81ea\u5df1\u7684\u5f00\u53d1\u73af\u5883\u4f7f\u7528\uff0c\u65e0\u5948IO\u6027\u80fd\u592a\u5dee\uff0c\u4e4b\u540e\u4e00\u76f4\u5728\u89d2\u843d\u91cc\u5403\u7070\u3002<em>\u540e\u6765\u4e70\u4e86\u4e00\u53f0ASRock\u7684Beebox N3150\u4f5c\u4e3a\u5f00\u53d1\u673a\u4f7f\u7528\u81f3\u4eca\uff0cN3150\u8fd9\u91cc\u4e0d\u5c55\u5f00\u8bf4\u660e\u3002<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">NanoPi 2 Fire\u91c7\u7528\u4e86\u4e09\u661fS5P4418 SoC\uff0c1G\u5185\u5b58\uff0c\u5343\u5146\u7f51\u53e3\uff0c\u677f\u5b50\u5c3a\u5bf8\u5927\u6982\u4e09\u5206\u4e4b\u4e8c\u4e2a\u4fe1\u7528\u5361\u5927\u5c0f\uff0c\u8fd9\u4e2a\u914d\u7f6e\u76f8\u5bf9\u6765\u8bf4\u5f88\u4e0d\u9519\uff0c\u4f46\u662fSoC\u53d1\u70ed\u6bd4\u8f83\u5927\uff0c\u6b63\u597d\u6709\u4e2a\u95f2\u7f6e\u7684USB\u98ce\u6247\uff0c\u5bf9\u7740\u5439\u7528\u6765\u964d\u6e29\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u6280\u672f\u65b9\u6848\u9009\u62e9\uff1a<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001VPN\u65b9\u6848\uff1a<a href=\"https:\/\/www.wireguard.com\/\" target=\"_blank\" rel=\"noopener\">WireGuard<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u7535\u4fe1\u7f51\u5173\u8bbe\u7f6eDMZ\u5230NanoPi 2 Fire<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u5728\u64cd\u4f5c\u7cfb\u7edf\u955c\u50cf\u6298\u817e\u4e0a\u8017\u8d39\u4e86\u6bd4\u8f83\u591a\u7684\u65f6\u95f4\uff0cNanoPi\u5b98\u65b9\u6700\u65b0\u7684\u955c\u50cf\u662f4.4\u5185\u6838\uff0c\u5237\u5230\u677f\u5b50\u91cc\u4e0d\u80fd\u7528\uff0c\u53d1\u73b0\u539f\u6765\u65b0\u7684\u955c\u50cf\u662f\u9002\u914d\u65b0\u677f\u5b50\uff0c\u5bf9\u8001\u7248\u672c\u7684\u677f\u5b50\u6ca1\u6709\u517c\u5bb9\u3002\u8001\u7248\u672c\u7684\u955c\u50cf\u662f3.4\u5185\u6838\uff0c\u7531\u4e8eWireGuard\u6700\u4f4e\u9700\u89813.10\u5185\u6838\u652f\u6301\uff0c\u4e00\u5f00\u59cb\u6253\u7b97\u79fb\u690d3.4\u5185\u6838\u7684\u4e1c\u897f\u81f33.16\u5185\u6838\uff08LTS\uff09\uff0c\u4e5f\u4e70\u597d\u4e86\u4e32\u53e3\u7ebf\u63a5\u5165\u4ee5\u5907\u5185\u6838\u8c03\u8bd5\uff0c\u5c1d\u8bd5\u4e862\u5929\u6700\u7ec8\u8fd8\u662f\u653e\u5f03\uff0c\u4e3b\u8981\u539f\u56e0\u662f\u6d89\u53ca\u7684\u4e1c\u897f\u6bd4\u8f83\u591a\uff0c\u81ea\u5df1\u4e5f\u4e0d\u64c5\u957f\u8fd9\u5757\uff0c\u8fdb\u5c55\u7f13\u6162\uff0c\u65f6\u95f4\u6295\u5165\u4e0d\u503c\u5f97\uff0c\u4e0d\u8fc7\u5bf9\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684\u542f\u52a8\u673a\u5236\u5012\u662f\u4e86\u89e3\u7684\u6bd4\u8f83\u6e05\u695a\u4ee5\u53ca\u5bf9\u5185\u6838\u6e90\u7801\u7684\u7ed3\u6784\u52a0\u6df1\u4e86\u5370\u8c61\u3002\u6700\u540e\u9009\u62e9\u4e86DietPi\u4f5c\u4e3a\u7cfb\u7edf\u955c\u50cf\u800c\u975e\u5b98\u65b9\u955c\u50cf\uff0cDietPi\u5b98\u65b9\u6ca1\u6709\u63d0\u4f9bNanoPi 2 Fire\u7684\u955c\u50cf\uff0c\u6709NanoPi M2\u7684\uff0c\u67e5\u4e86\u4e00\u4e0b\u8d44\u6599\u53d1\u73b0NanoPi M2\u8ddfNanoPi 2 Fire\u7684\u914d\u7f6e\u9664\u4e86WiFi\u548c\u84dd\u7259\u6a21\u5757\u5176\u4ed6\u57fa\u672c\u4e00\u6837\uff0c\u5c1d\u8bd5\u5237\u5165M2\u7684\u955c\u50cf\u5230NanoPi 2 Fire\uff0c\u987a\u5229\u542f\u52a8\u3002DietPi\u7684\u955c\u50cf\u5341\u5206\u7cbe\u7b80\uff0c\u955c\u50cf\u538b\u7f29\u5305\u53ea\u6709\u51e0\u5341\u5146\uff0c\u5341\u5206\u63a8\u8350\u4f7f\u7528\uff0cDietPi\u4e5f\u6709\u6811\u8393\u6d3e\u7684\u955c\u50cf\u3002<strong>\u603b\u7ed3\u4e00\u4e0b\uff1a\u56fd\u4ea7\u677f\u5b50\u7684\u6027\u4ef7\u6bd4\u5f88\u597d\uff0c\u4f46\u662f\u540e\u7eed\u652f\u6301\u4ee5\u53ca\u751f\u6001\u4e0a\u8fd8\u662f\u5dee\u7684\u6bd4\u8f83\u591a\uff0c\u51fa\u73b0\u95ee\u9898\u81ea\u5df1\u7814\u7a76\u89e3\u51b3\u6bd4\u8f83\u75db\u82e6\uff0c\u5982\u6709\u53ef\u80fd\u8fd8\u662f\u9009\u62e9\u7528\u6237\u591a\u7684\u677f\u5b50\u3002<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4\u3001\u7531\u4e8e\u7f3a\u4e4f\u4e86\u539f\u751f\u5185\u6838\u652f\u6301\uff0cWireGuard\u7684\u6280\u672f\u5b9e\u73b0\u65b9\u6848\u4e0a\u9009\u62e9\u4e86wireguard-go\uff0c\u76ee\u524d\u4f7f\u7528\u4e0b\u6765\u826f\u597d\u3002\u540c\u65f6wireguard-go\u5728\u6bd4\u5982MacOSX\u7b49\u6ca1\u6709\u539f\u751f\u5185\u6838\u652f\u6301\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e5f\u53ef\u4ee5\u4f7f\u7528\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f85\u7eed\u3002\u63a5\u4e0b\u6765\u8bb0\u5f55\u4e00\u4e0b\u6298\u817eHome Assistant\u7684\u4e1c\u897f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3b\u8981\u7684\u8bc9\u6c42\uff1a 1\u3001\u80fd\u591f\u5728\u5916\u90e8\u7f51\u7edc\u968f\u65f6\u63a5\u5165\u5230\u5bb6\u91cc\u7684\u5185\u7f51\u3001\u8bbf\u95ee\u5bb6\u91cc\u7684\u5404\u79cd\u8bbe\u5907\uff1b 2\u3001\u5bb6\u91cc\u7684\u4e00\u4e9b\u5bb6\u7535\u4e5f\u5e26\u7f51\u7edc\u63a7\u5236\u529f\u80fd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,1],"tags":[],"class_list":["post-2420","post","type-post","status-publish","format-standard","hentry","category-technote","category-passed-times"],"_links":{"self":[{"href":"https:\/\/www.mudone.com\/index.php?rest_route=\/wp\/v2\/posts\/2420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mudone.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mudone.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mudone.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mudone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2420"}],"version-history":[{"count":26,"href":"https:\/\/www.mudone.com\/index.php?rest_route=\/wp\/v2\/posts\/2420\/revisions"}],"predecessor-version":[{"id":2463,"href":"https:\/\/www.mudone.com\/index.php?rest_route=\/wp\/v2\/posts\/2420\/revisions\/2463"}],"wp:attachment":[{"href":"https:\/\/www.mudone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mudone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mudone.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}