{"id":89,"date":"2021-10-11T03:27:59","date_gmt":"2021-10-11T10:27:59","guid":{"rendered":"https:\/\/www.xh86.me\/?p=89"},"modified":"2021-10-11T14:13:24","modified_gmt":"2021-10-11T21:13:24","slug":"routeros%e7%ae%80%e5%8d%95%e7%bd%91%e7%bb%9c%e9%85%8d%e7%bd%ae%e4%ba%8b%e4%be%8b","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=89","title":{"rendered":"RouterOS\u7b80\u5355\u7f51\u7edc\u914d\u7f6e\u4e8b\u4f8b"},"content":{"rendered":"<p>\u901a\u8fc7\u4e0b\u9762\u4e00\u4e2a\u7b80\u5355\u7684\u7f51\u7edc\u62d3\u6251\u4f5c\u4e3a\u914d\u7f6e\u5b9e\u4f8b\uff0c\u6839\u636e\u8be5\u7f51\u7edc\u9700\u8981\u901a\u8fc7RouterOS\u5b8c\u6210\u914d\u7f6e\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"360\" height=\"431\" class=\"wp-image-90\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/diagram-description-automatically-generated-1.png\" alt=\"Diagram\n\nDescription automatically generated\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/diagram-description-automatically-generated-1.png 360w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/diagram-description-automatically-generated-1-251x300.png 251w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/><\/p>\n<p>\u5728\u5f53\u524d\u7684\u5b9e\u4f8b\u4e2d\u6211\u4eec\u6d89\u53ca\u5230\u4e24\u4e2a\u7f51\u7edc\uff0c\u5373\u63a5\u5165ISP\u7f51\u7edc\u7684WAN\u5916\u7f51\u548cLAN\u5185\u7f51\uff1a<\/p>\n<ul>\n<li>LAN\u5185\u7f51\u5730\u5740\u6bb5\uff1a192.168.0.0\/24\u3002\u8def\u7531\u5668\u7684\u5730\u5740\u5728\u8fd9\u4e2a\u7f51\u7edc\u4e2d\u4e3a192.168.0.254<\/li>\n<li>\u63a5\u5165ISP\u7684\u5916\u7f51WAN\u4e3a10.0.0.0\/24\u3002\u8def\u7531\u5668\u7684\u5730\u5740\u662f\u5728\u7f51\u7edc\u4e2d\u4e3a10.0.0.217<\/li>\n<li>\u5916\u7f51DNS\u4e3a61.139.2.69\uff0c202.98.68.96<\/li>\n<\/ul>\n<p>\u914d\u7f6eRouterOS\u5b9e\u73b0\u5185\u7f51\u8bbf\u95eeISP\u7f51\u7edc\uff0c\u6211\u4eec\u7684\u6b65\u9aa4\u4e00\u5171\u5206\u4e3a\u4e94\u6b65<\/p>\n<ul>\n<li>\u9996\u5148\uff1a\u542f\u52a8\u8bbe\u5907\u540e\uff0c\u68c0\u67e5interface\u63a5\u53e3\u7f51\u53e3\u8fde\u63a5\u662f\u5426\u6b63\u5e38\uff0c\u5e76\u5b9a\u4e49\u7f51\u53e3\u540d\u79f0<\/li>\n<li>\u7b2c\u4e8c\uff1a\u914d\u7f6e\u5bf9\u5e94\u7f51\u53e3\u7684IP\u5730\u5740<\/li>\n<li>\u7b2c\u4e09\uff1a\u914d\u7f6e\u9ed8\u8ba4\u7f51\u5173\u8def\u7531<\/li>\n<li>\u7b2c\u56db\uff1a\u914d\u7f6enat\u5730\u5740\u8f6c\u6362\u89c4\u5219<\/li>\n<li>\u7b2c\u4e94\uff1a\u914d\u7f6eDNS\u670d\u52a1\u5668<\/li>\n<\/ul>\n<p><strong>\u7b2c\u4e00\u6b65\uff1a\u7f51\u7edc\u63a5\u53e3\u914d\u7f6e<\/strong><\/p>\n<p>\u5728\/interfaces\u5217\u8868\u4e2d\u4fee\u6539ether2\u4e3aether2-lan\u5b9a\u4e49\u4e3a\u5185\u7f51\u63a5\u53e3\uff0c\u5982\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"464\" class=\"wp-image-91\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-description-13.png\" alt=\"Graphical user interface, application\n\nDescription automatically generated\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-description-13.png 484w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-description-13-300x288.png 300w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/p>\n<p>\u540c\u6837\u5c06ether2\u4fee\u6539\u4e3aether2-lan\uff0c\u6307\u5b9a\u5185\u7f51\u63a5\u53e3\uff0c\u540c\u7406\u5c06ether1\u4e5f\u8bbe\u7f6e\u4e3aether1-wan\uff0c\u4ee5\u6b64\u533a\u5206\u63a5\u53e3\u3002<\/p>\n<p><strong>\u7b2c\u4e8c\u6b65\uff1a\u6dfb\u52a0IP\u5730\u5740<\/strong><\/p>\n<p>\u5728\/ip address\u4e2d\u6dfb\u52a0IP\u5730\u5740\u548c\u9009\u62e9\u7f51\u5361\u63a5\u53e3\uff0c\u6dfb\u52a0\u5185\u7f51\u548c\u5916\u56f4\u7684IP\u5730\u5740\u5982\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"405\" class=\"wp-image-92\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-table-exce.png\" alt=\"Graphical user interface, application, table, Excel\n\nDescription automatically generated\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-table-exce.png 606w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-table-exce-300x200.png 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/p>\n<p>\u540c\u7406\u5728ip address\u83dc\u5355\u4e0b\uff0c\u6dfb\u52a0ether1-wan\u53e3\u7684IP\u5730\u5740\u3002<\/p>\n<p><strong>\u7b2c\u4e09\u6b65\uff1a\u6dfb\u52a0\u9ed8\u8ba4\u7f51\u5173<\/strong><\/p>\n<p>\u5728\/ip routes\u91cc\u6dfb\u52a0\u9ed8\u8ba4\u7f51\u517310.0.0.1\uff0c\u5f00\u542fcheck-gateway=ping\uff08\u7f51\u5173ping\u76d1\u6d4b\uff09\u5982\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"648\" height=\"486\" class=\"wp-image-93\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-2.png\" alt=\"Graphical user interface, text, application, email\n\nDescription automatically generated\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-2.png 648w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-2-300x225.png 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/p>\n<p><strong>\u7b2c\u56db\u6b65\uff0cNAT\u5730\u5740\u8f6c\u6362<\/strong><\/p>\n<p>\u5728\/ip firewall nat \u91cc\u70b9\u51fb\u201c+\u201d\u6dfb\u52a0\u4f2a\u88c5\u89c4\u5219\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"514\" height=\"245\" class=\"wp-image-94\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-description-14.png\" alt=\"Graphical user interface, application\n\nDescription automatically generated\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-description-14.png 514w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-description-14-300x143.png 300w\" sizes=\"auto, (max-width: 514px) 100vw, 514px\" \/><\/p>\n<p>\u5728NAT\u91cc\u6dfb\u52a0\u65b0\u7684\u89c4\u5219\uff0c\u5728chain\u91cc\u9009\u62e9srcnat\u94fe\u8868\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"592\" height=\"360\" class=\"wp-image-95\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-3.png\" alt=\"Graphical user interface, text, application, email\n\nDescription automatically generated\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-3.png 592w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-3-300x182.png 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/p>\n<p>\u5728\u9009\u62e9action\u91cc\u7684action=masquerade\u89c4\u5219\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"582\" height=\"255\" class=\"wp-image-96\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-4.png\" alt=\"Graphical user interface, text, application, email\n\nDescription automatically generated\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-4.png 582w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-4-300x131.png 300w\" sizes=\"auto, (max-width: 582px) 100vw, 582px\" \/><\/p>\n<p>\u6dfb\u52a0\u5b8c\u6210\u540e\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"542\" height=\"120\" class=\"wp-image-97\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/table-description-automatically-generated-4.png\" alt=\"Table\n\nDescription automatically generated\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/table-description-automatically-generated-4.png 542w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/table-description-automatically-generated-4-300x66.png 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/p>\n<p><strong>\u7b2c\u4e94\u6b65\uff0cDNS\u914d\u7f6e<\/strong><\/p>\n<p>\u5728\/ip dns\u7684settings\u4e2d\u6dfb\u52a0\u591a\u4e2aDNS\u670d\u52a1\u5668\u5730\u5740\uff0c\u6839\u636e\u9700\u8981\u542f\u7528DNS\u7f13\u5b58\uff08allow remote requests\uff09\uff0c\u5e76\u80fd\u901a\u8fc7Cache size\u4fee\u6539DNS\u7f13\u5b58\u5927\u5c0f\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"618\" height=\"293\" class=\"wp-image-98\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-description-automaticall-4.png\" alt=\"Graphical user interface\n\nDescription automatically generated\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-description-automaticall-4.png 618w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-description-automaticall-4-300x142.png 300w\" sizes=\"auto, (max-width: 618px) 100vw, 618px\" \/><\/p>\n<p>\u5230\u6b64\uff0c\u4e0a\u8ff0\u7684\u5355\u5728\u7ebf\u7f51\u4e8b\u4f8b\u5c31\u5df2\u7ecf\u914d\u7f6e\u5b8c\u6210\uff01<\/p>\n<p><strong>\u7aef\u53e3\u6620\u5c04<\/strong><\/p>\n<p>\u6839\u636e\u4ee5\u4e0a\u7f51\u7edc\u62d3\u6251\uff0c\u9700\u8981\u5c06\u5185\u7f51\u7684http\u670d\u52a1\u5668\u53d1\u5e03\u5230\u5916\u7f51\uff0c\u5185\u7f51\u7684http\u670d\u52a1\u5668IP\u5730\u5740192.168.0.88\uff0c\u8fd9\u91cc\u9700\u8981\u505a\u7aef\u53e3\u6620\u5c04\u89c4\u5219\uff0c\u8fdb\u5165ip firewall nat\u91cc\uff0c\u9009\u62e9chain=dstnat\uff0c\u6211\u4eec\u7684\u5916\u7f51IP\u5730\u5740\u662f10.0.0.217\u914d\u7f6e\u5230dst-address\uff0cdst-port\u4e3atcp\u534f\u8bae80\u7aef\u53e3\uff0c\u5982\u4e0b\u56fe<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"584\" height=\"420\" class=\"wp-image-99\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-description-15.png\" alt=\"Graphical user interface, application\n\nDescription automatically generated\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-description-15.png 584w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-description-15-300x216.png 300w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/p>\n<p>\u5728action\u9009\u62e9dst-nat\u64cd\u4f5c\uff0cto-address\u8bbe\u7f6e\u5185\u7f51http\u670d\u52a1\u5668IP\u5730\u5740\uff0c\u548c\u7aef\u53e380<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"571\" height=\"139\" class=\"wp-image-100\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-5.png\" alt=\"Graphical user interface, text, application, email\n\nDescription automatically generated\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-5.png 571w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-5-300x73.png 300w\" sizes=\"auto, (max-width: 571px) 100vw, 571px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"571\" height=\"139\" class=\"wp-image-101\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-6.png\" alt=\"Graphical user interface, text, application, email\n\nDescription automatically generated\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-6.png 571w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-text-application-email-6-300x73.png 300w\" sizes=\"auto, (max-width: 571px) 100vw, 571px\" \/><\/p>\n<p><strong>\u4e3b\u673a\u5e26\u5bbd\u63a7\u5236<\/strong><\/p>\n<p>\u8fdb\u5165Queue\u6dfb\u52a0\u5e26\u5bbd\u63a7\u5236\u89c4\u5219\uff0c\u9009\u62e9simple queue\uff0c\u6dfb\u52a0\u4e3b\u673aIP\u662f192.168.0.3\uff0c\u5e76\u53d6\u540d\u4e3aIP03\uff0c\u8bbe\u7f6e\u5e26\u5bbd\u4e3a\u4e0a\u884c(upload)1m\uff0c\u4e0b\u884c(download)2m<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"535\" height=\"394\" class=\"wp-image-102\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-word-descr-5.png\" alt=\"Graphical user interface, application, Word\n\nDescription automatically generated\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-word-descr-5.png 535w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-application-word-descr-5-300x221.png 300w\" sizes=\"auto, (max-width: 535px) 100vw, 535px\" \/><\/p>\n<p>\u6dfb\u52a0\u5b8c\u6210\u540e\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"509\" height=\"135\" class=\"wp-image-103\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-description-automaticall-5.png\" alt=\"Graphical user interface\n\nDescription automatically generated with low confidence\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-description-automaticall-5.png 509w, https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/10\/graphical-user-interface-description-automaticall-5-300x80.png 300w\" sizes=\"auto, (max-width: 509px) 100vw, 509px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7\u4e0b\u9762\u4e00\u4e2a\u7b80\u5355\u7684\u7f51\u7edc\u62d3\u6251\u4f5c\u4e3a\u914d\u7f6e\u5b9e\u4f8b\uff0c\u6839\u636e\u8be5\u7f51\u7edc\u9700\u8981\u901a\u8fc7RouterOS\u5b8c\u6210\u914d\u7f6e\uff1a \u5728\u5f53\u524d\u7684\u5b9e\u4f8b\u4e2d\u6211\u4eec\u6d89\u53ca\u5230 [&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,2],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-mikrotik","category-network"],"_links":{"self":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=89"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":104,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions\/104"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}