{"id":37247,"date":"2019-10-31T22:16:34","date_gmt":"2019-10-31T19:16:34","guid":{"rendered":"https:\/\/prohoster.info\/blog\/multivan-i-marshrutizatsiya-na-mikrotik-routeros\/"},"modified":"2021-02-01T11:37:39","modified_gmt":"2021-02-01T09:37:39","slug":"multivan-i-marshrutizatsiya-na-mikrotik-routeros","status":"publish","type":"post","link":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/multivan-i-marshrutizatsiya-na-mikrotik-routeros","title":{"rendered":"Multivan und Routing auf Mikrotik RouterOS","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<h4>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h4>\n<p>\u0412\u0437\u044f\u0442\u044c\u0441\u044f \u0437\u0430 \u0441\u0442\u0430\u0442\u044c\u044e, \u043f\u043e\u043c\u0438\u043c\u043e \u0442\u0449\u0435\u0441\u043b\u0430\u0432\u0438\u044f, \u043f\u043e\u0431\u0443\u0434\u0438\u043b\u0430 \u0443\u0434\u0440\u0443\u0447\u0430\u044e\u0449\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u0435 \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044c\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f\u0430\u0445 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c-\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430. \u0421\u0442\u0430\u0442\u044c\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 Mikrotik RouterOS (\u0434\u0430\u043b\u0435\u0435 ROS). \u0412 \u043d\u0435\u0439 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d, \u0441 \u0430\u043a\u0446\u0435\u043d\u0442\u043e\u043c \u043d\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e. \u0411\u043e\u043d\u0443\u0441\u043e\u043c \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439 \u0438 \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b. \u0422\u0435, \u043a\u0442\u043e \u0438\u0449\u0435\u0442 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u0438\u044f \u0442\u0435\u043c \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0438 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0432\u043b\u0430\u043d\u043e\u0432, \u0431\u0440\u0438\u0434\u0436\u0435\u0439, \u043c\u043d\u043e\u0433\u043e\u0441\u0442\u0443\u043f\u0435\u043d\u0447\u0430\u0442\u043e\u0433\u043e \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b\u0430 \u0438 \u0442\u043e\u043c\u0443 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u2014 \u043c\u043e\u0433\u0443\u0442 \u043d\u0435 \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0441\u0438\u043b \u043d\u0430 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u0435.<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h4>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u0434\u043e\u043f\u044b\u0442\u043d\u043e\u0433\u043e, \u0432\u044b\u0431\u0440\u0430\u043d \u043f\u044f\u0442\u0438\u043f\u043e\u0440\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 Mikrotik \u0441 ROS \u0432\u0435\u0440\u0441\u0438\u0438 6.45.3. \u041e\u043d \u0431\u0443\u0434\u0435\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0435\u0442\u044f\u043c\u0438 (LAN1 \u0438 LAN2) \u0438 \u0442\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c\u0438 (ISP1, ISP2, ISP3). \u041a\u0430\u043d\u0430\u043b \u043a ISP1 \u0438\u043c\u0435\u0435\u0442 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u201c\u0441\u0435\u0440\u044b\u0439\u201d \u0430\u0434\u0440\u0435\u0441, ISP2 \u2014 \u201c\u0431\u0435\u043b\u044b\u0439\u201d, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u044b\u0439 \u043f\u043e DHCP, ISP3 \u2014 \u201c\u0431\u0435\u043b\u044b\u0439\u201d \u0441 PPPoE \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439. \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435:<\/p>\n<p><img decoding=\"async\" alt=\"\u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Mikrotik RouterOS\" src=\"\/wp-content\/uploads\/2019\/08\/c4aecb1d7bdc9f137a63310563a1a935.jpeg\" style=\"display:block;margin: 0 auto;\"><\/p>\n<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u043e\u0443\u0442\u0435\u0440 \u201c\u041c\u0422\u041a\u201d \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u0445\u0435\u043c\u044b \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b:<\/p>\n<ol>\n<li>\u041e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430. \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u2014 ISP2, \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u0437\u0435\u0440\u0432 \u2014 ISP1, \u0432\u0442\u043e\u0440\u043e\u0439 \u0440\u0435\u0437\u0435\u0440\u0432 \u2014 ISP3.<\/li>\n<li>\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0445\u043e\u0434 \u0441\u0435\u0442\u0438 LAN1 \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 ISP1.<\/li>\n<li>\u041f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 address-list.<\/li>\n<li>\u041f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 (DSTNAT)<\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440 \u0444\u0430\u0439\u0435\u0440\u0432\u043e\u043b\u043b\u0430 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442.<\/li>\n<li>\u0420\u043e\u0443\u0442\u0435\u0440 \u043c\u043e\u0433 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u0447\u0435\u0440\u0435\u0437 \u043b\u044e\u0431\u043e\u0433\u043e \u0438\u0437 \u0442\u0440\u0435\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430.<\/li>\n<li>\u041e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u043e\u0442\u0432\u0435\u0442\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0432 \u043a\u0430\u043d\u0430\u043b, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u043d\u0438 \u043f\u0440\u0438\u0448\u043b\u0438 (\u0432\u043a\u043b\u044e\u0447\u0430\u044f LAN).<\/li>\n<\/ol>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0440\u043e\u0443\u0442\u0435\u0440 \u0431\u0443\u0434\u0435\u043c \u201c\u0441 \u0447\u0438\u0441\u0442\u043e\u0433\u043e \u043b\u0438\u0441\u0442\u0430\u201d, \u0434\u0430\u0431\u044b \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u043e\u0432 \u0432 \u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a \u0432\u0435\u0440\u0441\u0438\u0438 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0445 \u201c\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u201d. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u043d Winbox, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f. \u0421\u0430\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 Winbox. \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u044b\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u043c \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c Ether5.<\/i><\/p>\n<h4>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0439 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043b\u0438 \u044d\u0442\u043e \u0438\u043b\u0438 \u0445\u0438\u0442\u0440\u044b\u0435 \u0443\u043c\u043d\u0438\u043a\u0438 \u0432\u043e\u043a\u0440\u0443\u0433 \u043f\u043b\u0435\u0442\u0443\u0442 \u0441\u0435\u0442\u0438 \u0437\u0430\u0433\u043e\u0432\u043e\u0440\u043e\u0432<\/h4>\n<p>\u041f\u044b\u0442\u043b\u0438\u0432\u044b\u0439 \u0438 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d, \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044f \u0442\u0430\u043a\u0443\u044e \u0438\u043b\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u0443\u044e \u0441\u0445\u0435\u043c\u0443, \u0432\u0434\u0440\u0443\u0433 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u043e\u0441\u043e\u0437\u043d\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u043d\u043e \u0438 \u0442\u0430\u043a \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0414\u0430-\u0434\u0430, \u0431\u0435\u0437 \u044d\u0442\u0438\u0445 \u0432\u0430\u0448\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 route rules, \u043a\u043e\u0438\u043c\u0438 \u043f\u0435\u0441\u0442\u0440\u044f\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c?<\/p>\n<p>\u0410\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u044e \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445 \u0438 \u0448\u043b\u044e\u0437\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043c\u043e\u0436\u0435\u043c? \u0414\u0430:<\/p>\n<p>\u041d\u0430 ISP1 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u0430\u0434\u0440\u0435\u0441 \u0438 \u0448\u043b\u044e\u0437 \u0441 <b>distance=2<\/b> \u0438 <b>check-gateway=ping.<\/b><br \/>\n\u041d\u0430 ISP2 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 dhcp \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u2014 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e distance \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u0435\u043d \u0435\u0434\u0438\u043d\u0438\u0446\u0435.<br \/>\n\u041d\u0430 ISP3 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 pppoe \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043f\u0440\u0438 <b>add-default-route=yes<\/b> \u0441\u0442\u0430\u0432\u0438\u043c <b>default-route-distance=3<\/b>.<\/p>\n<p>NAT \u043d\u0430 \u0432\u044b\u0445\u043e\u0434 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c:<\/p>\n<p><b>\/ip firewall nat add action=masquerade chain=srcnat out-interface-list=WAN<\/b><\/p>\n<p>\u041f\u043e \u0438\u0442\u043e\u0433\u0443, \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043b\u043e\u043a\u0430\u043b\u043e\u043a \u043a\u043e\u0442\u0438\u043a\u0438 \u0432\u0435\u0441\u0435\u043b\u043e \u0433\u0440\u0443\u0437\u044f\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 ISP2 \u0438 \u0435\u0441\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u043d\u0430\u043b\u0430 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 <b>check gateway<\/b> \u0421\u043c. \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 1<\/p>\n<p>\u041f\u0443\u043d\u043a\u0442 1 \u0437\u0430\u0434\u0430\u0447\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d. \u0413\u0434\u0435 \u0436\u0435 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u043c\u0435\u0442\u043a\u0430\u043c\u0438? \u041d\u0435\u0442\u2026<\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435. \u041d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0438\u0437 LAN \u0447\u0435\u0440\u0435\u0437 ISP1:<\/p>\n<p><b>\/ip firewall mangle add action=route chain=prerouting dst-address-list=!BOGONS<br \/>\npassthrough=yes route-dst=100.66.66.1 src-address-list=Via_ISP1<br \/>\n\/ip firewall mangle add action=route chain=prerouting dst-address-list=!BOGONS<br \/>\npassthrough=no route-dst=100.66.66.1 src-address=192.168.88.0\/24 <\/b><\/p>\n<p>\u041f\u0443\u043d\u043a\u0442\u044b 2 \u0438 3 \u0437\u0430\u0434\u0430\u0447\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b. \u041c\u0435\u0442\u043a\u0438, \u043c\u0430\u0440\u043a\u0438, route rules, \u0433\u0434\u0435 \u0432\u044b?!<\/p>\n<p>\u041d\u0443\u0436\u043d\u043e \u0434\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043b\u044e\u0431\u0438\u043c\u043e\u043c\u0443 OpenVPN \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0441 \u0430\u0434\u0440\u0435\u0441\u043e\u043c 172.17.17.17 \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0438\u0437 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442? \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430:<\/p>\n<p><b>\/ip cloud set ddns-enabled=yes<\/b><\/p>\n<p>\u041a\u043b\u0438\u0435\u043d\u0442\u0430\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0438\u0440\u0430 \u0434\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u0432\u043e\u0434\u0430: \u201c<b>:put [ip cloud get dns-name]<\/b>\u201d<\/p>\n<p>\u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0431\u0440\u043e\u0441 \u043f\u043e\u0440\u0442\u0430 \u0438\u0437 \u0438\u043d\u0435\u0442\u0430:<\/p>\n<p><b>\/ip firewall nat add action=dst-nat chain=dstnat dst-port=1194<br \/>\nin-interface-list=WAN protocol=udp to-addresses=172.17.17.17<\/b><\/p>\n<p>\u041f\u0443\u043d\u043a\u0442 4 \u0433\u043e\u0442\u043e\u0432.<\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0444\u0430\u0435\u0440\u0432\u043e\u043b \u0438 \u043f\u0440\u043e\u0447\u0443\u044e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u043f\u0443\u043d\u043a\u0442\u0430 5, \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0434\u0443\u0435\u043c\u0441\u044f \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0443\u0436\u0435 \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0442\u044f\u043d\u0435\u043c\u0441\u044f \u043a \u0435\u043c\u043a\u043e\u0441\u0442\u0438 \u0441 \u043b\u044e\u0431\u0438\u043c\u044b\u043c \u043d\u0430\u043f\u0438\u0442\u043a\u043e\u043c\u2026<br \/>\n\u0410! \u0422\u0443\u043d\u043d\u0435\u043b\u0438 \u0436\u0435 \u0435\u0449\u0435 \u0437\u0430\u0431\u044b\u043b\u0438.<\/p>\n<p>l2tp-\u043a\u043b\u0438\u0435\u043d\u0442, \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043f\u043e \u043d\u0430\u0433\u0443\u0433\u043b\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u0434\u043e \u043b\u044e\u0431\u0438\u043c\u043e\u0433\u043e \u0433\u043e\u043b\u043b\u0430\u043d\u0434\u0441\u043a\u043e\u0433\u043e VDS \u043f\u043e\u0434\u043d\u044f\u043b\u0441\u044f? \u0414\u0430.<br \/>\nl2tp-\u0441\u0435\u0440\u0432\u0435\u0440 \u0441 IPsec \u043f\u043e\u0434\u043d\u044f\u043b\u0441\u044f \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u043f\u043e \u0414\u041d\u0421-\u0438\u043c\u0435\u043d\u0438 \u0438\u0437 IP Cloud(\u0441\u043c \u0432\u044b\u0448\u0435.) \u0446\u0435\u043f\u043b\u044f\u044e\u0442\u0441\u044f? \u0414\u0430.<br \/>\n\u041e\u0442\u043a\u0438\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u043d\u0430 \u0441\u043f\u0438\u043d\u043a\u0443 \u0441\u0442\u0443\u043b\u0430, \u043f\u0440\u0438\u0445\u043b\u0435\u0431\u044b\u0432\u0430\u044f \u043d\u0430\u043f\u0438\u0442\u043e\u043a, \u043b\u0435\u043d\u0438\u0432\u043e \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c \u043f\u0443\u043d\u043a\u0442\u044b 6 \u0438 7 \u0437\u0430\u0434\u0430\u0447\u0438. \u0414\u0443\u043c\u0430\u0435\u043c \u2014 \u0430 \u043e\u043d\u043e \u043d\u0430\u043c \u043d\u0430\u0434\u043e? \u0412\u0441\u0435 \u0436 \u0438 \u0442\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 (\u0441)\u2026 \u0422\u0430\u043a \u0432\u043e\u0442 \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u0442\u0430\u043a\u0438 \u043d\u0435 \u043d\u0430\u0434\u043e, \u0442\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435. \u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d.<\/p>\n<p><b>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d? \u042d\u0442\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0440\u043e\u0443\u0442\u0435\u0440\u0443.<\/b><\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0441\u0442\u0430\u0442\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0447\u0438\u0442\u0430\u0442\u044c, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0447\u0442\u043e \u0442\u0430\u043c \u043a\u0440\u043e\u043c\u0435 \u0432\u044b\u043f\u0435\u043d\u0434\u0440\u0435\u0436\u0430 \u0441\u043e\u043c\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c?<\/p>\n<p>\u0421 \u0442\u0435\u043c\u0438, \u043a\u0442\u043e \u043e\u0441\u0442\u0430\u043b\u0441\u044f, \u043a\u0442\u043e \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d \u043f\u0443\u043d\u043a\u0442\u0430\u043c\u0438 6 \u0438 7 \u0437\u0430\u0434\u0430\u0447\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043e\u0449\u0443\u0449\u0430\u0435\u0442 \u0437\u0443\u0434 \u043f\u0435\u0440\u0444\u0435\u043a\u0446\u0438\u043e\u043d\u0438\u0437\u043c\u0430, \u043f\u043e\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f \u0433\u043b\u0443\u0431\u0436\u0435.<\/p>\n<p>\u0412\u0430\u0436\u043d\u0435\u0439\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u0430\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430. \u0410 \u0438\u043c\u0435\u043d\u043d\u043e: \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e, \u0432 \u043a\u0430\u043a\u043e\u0439 (\u0438\u043b\u0438 \u0432 \u043a\u0430\u043a\u0438\u0435)\u0421\u043c. \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 3 \u043a\u0430\u043d\u0430\u043b(\u044b) \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430 \u043d\u0430\u0448\u0435\u043c \u0440\u043e\u0443\u0442\u0435\u0440\u0435, \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0442\u043e\u0442 \u043a\u0430\u043d\u0430\u043b, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442 \u043f\u0440\u0438\u0448\u0435\u043b. \u0417\u0430\u0434\u0430\u0447\u0430 \u043f\u043e\u043d\u044f\u0442\u043d\u0430. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430-\u0442\u043e \u0433\u0434\u0435? \u0412\u0435\u0434\u044c \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u0437\u0430\u0434\u0430\u0447\u0430 \u0442\u0430 \u0436\u0435, \u043d\u043e \u043d\u0438\u043a\u0442\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043d\u0435 \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438 \u0431\u0435\u0434\u044b \u043d\u0435 \u043e\u0449\u0443\u0449\u0430\u0435\u0442. \u041e\u0442\u043b\u0438\u0447\u0438\u0435 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043b\u044e\u0431\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0443\u0437\u0435\u043b \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u043a\u0430\u043d\u0430\u043b\u043e\u0432, \u0430 \u043d\u0435 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0440\u043e\u0433\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439, \u043a\u0430\u043a \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043b\u043e\u043a\u0430\u043b\u043a\u0435. \u0410 \u201c\u0431\u0435\u0434\u0430\u201d \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043a \u043d\u0430\u043c \u043f\u0440\u0438\u0448\u0435\u043b \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 IP \u0430\u0434\u0440\u0435\u0441 ISP3, \u0442\u043e \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0442\u0432\u0435\u0442 \u0443\u0439\u0434\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u043d\u0430\u043b ISP2, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0442\u0443\u0434\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u0448\u043b\u044e\u0437 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0423\u0439\u0434\u0435\u0442 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0431\u0440\u043e\u0448\u0435\u043d \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u043c, \u043a\u0430\u043a \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439. \u0421 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438\u0441\u044c. \u041a\u0430\u043a \u0435\u0435 \u0440\u0435\u0448\u0430\u0442\u044c?<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043c \u043d\u0430 \u0442\u0440\u0438 \u044d\u0442\u0430\u043f\u0430:<\/p>\n<ol>\n<li><b>\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430. <\/b> \u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0434\u0430\u043d\u044b \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430: \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0435\u0442\u044c, \u0444\u0430\u0435\u0440\u0432\u043e\u043b, address lists, hairpin NAT \u0438 \u043f\u0440.<\/li>\n<li><b>\u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d.<\/b> \u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0438 \u0440\u0430\u0441\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043f\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0443\u0436\u043d\u044b\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f.<\/li>\n<li><b>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a ISP.<\/b> \u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0438 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442.<\/li>\n<\/ol>\n<h4>1. \u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h4>\n<p>1.1. \u041e\u0447\u0438\u0449\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code class=\"plaintext\">\/system reset-configuration skip-backup=yes no-defaults=yes<\/code><\/pre>\n<p>\u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u043c\u0441\u044f \u0441 \u201c<b>Dangerous! Reset anyway? [y\/N]:<\/b>\u201d \u0438, \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f Winbox-\u043e\u043c \u043f\u043e MAC. \u041d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0438 \u0431\u0430\u0437\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043e\u0447\u0438\u0449\u0435\u043d\u044b.<\/p>\n<p>1.2. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/p>\n<pre><code class=\"plaintext\">\/user add group=full name=knight password=ultrasecret comment=\u201dNot horse\u201d<\/code><\/pre>\n<p>\u043b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u043f\u043e\u0434 \u043d\u0438\u043c \u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e:<\/p>\n<pre><code class=\"plaintext\">\/user remove admin<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u0418\u043c\u0435\u043d\u043d\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0430 \u043d\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0430\u0432\u0442\u043e\u0440 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c \u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442 \u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e.<\/i><\/p>\n<p>1.3. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 interface lists \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043e\u043f\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u0435\u0440\u0432\u043e\u043b\u043b\u0435, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 discovery \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 MAC \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445:<\/p>\n<pre><code class=\"plaintext\">\/interface list add name=WAN comment=\"For Internet\"\n\/interface list add name=LAN comment=\"For Local Area\"<\/code><\/pre>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b<\/p>\n<pre><code class=\"plaintext\">\/interface ethernet set ether1 comment=\"to ISP1\"\n\/interface ethernet set ether2 comment=\"to ISP2\"\n\/interface ethernet set ether3 comment=\"to ISP3\"\n\/interface ethernet set ether4 comment=\"to LAN1\"\n\/interface ethernet set ether5 comment=\"to LAN2\"<\/code><\/pre>\n<p>\u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c interface lists:<\/p>\n<pre><code class=\"plaintext\">\/interface list member add interface=ether1 list=WAN comment=ISP1\n\/interface list member add interface=ether2 list=WAN comment=ISP2 \n\/interface list member add interface=ether3 list=WAN comment=\"to ISP3\"\n\/interface list member add interface=ether4 list=LAN  comment=\"LAN1\"\n\/interface list member add interface=ether5 list=LAN  comment=\"LAN2\"\n<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u041f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043b\u044e\u0441 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u0435\u0442 \u0442\u0440\u0430\u0431\u043b\u0448\u0443\u0442\u0438\u043d\u0433 \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.<\/i><\/p>\n<p><i>\u0410\u0432\u0442\u043e\u0440 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c, \u0432 \u0446\u0435\u043b\u044f\u0445 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 interface list \u201cWAN\u201d \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 ether3, \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043f\u043e \u043d\u0435\u043c\u0443 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0445\u043e\u0434\u0438\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b ip.<\/p>\n<p><\/i><i>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043d\u0430 ether3 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043d\u044f\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 PPP, \u0435\u0433\u043e \u0442\u043e\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 interface list \u201cWAN\u201d<\/i><\/p>\n<p>1.4. \u0421\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0440\u043e\u0443\u0442\u0435\u0440 \u043e\u0442 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0435\u0434\u0441\u0442\u0432\u0430 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0437 \u0441\u0435\u0442\u0435\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u043f\u043e \u041c\u0410\u0421:<\/p>\n<pre><code class=\"plaintext\">\/ip neighbor discovery-settings set discover-interface-list=!WAN\n\/tool mac-server set allowed-interface-list=LAN\n\/tool mac-server mac-winbox set allowed-interface-list=LAN<\/code><\/pre>\n<p>1.5. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u0430\u0432\u0438\u043b \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u0444\u0430\u0439\u0440\u0432\u043e\u043b\u043b\u0430 \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b \u0440\u043e\u0443\u0442\u0435\u0440\u0430:<\/p>\n<pre><code class=\"plaintext\">\/ip firewall filter add action=accept chain=input comment=\"Related Established Untracked Allow\" \nconnection-state=established,related,untracked<\/code><\/pre>\n<p>(\u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0438 \u0440\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043a\u0430\u043a \u0438\u0437 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439, \u0442\u0430\u043a \u0438 \u0441\u0430\u043c\u0438\u043c \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c)<\/p>\n<pre><code class=\"plaintext\">\/ip firewall filter add action=accept chain=input comment=\"ICMP from ALL\" protocol=icmp<\/code><\/pre>\n<p>(\u043f\u0438\u043d\u0433 \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0438\u043d\u0433. \u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d \u0432\u0435\u0441\u044c icmp \u043d\u0430 \u0432\u0445\u043e\u0434. \u0412\u0435\u0441\u044c\u043c\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 MTU)<\/p>\n<pre><code class=\"plaintext\">\/ip firewall filter add action=drop chain=input comment=\"All other WAN Drop\" in-interface-list=WAN<\/code><\/pre>\n<p>(\u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u0446\u0435\u043f\u043e\u0447\u043a\u0443 input \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435, \u0447\u0442\u043e \u043f\u0440\u0438\u043b\u0435\u0442\u0430\u0435\u0442 \u0438\u0437 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442)<\/p>\n<pre><code class=\"plaintext\">\/ip firewall filter add action=accept chain=forward \ncomment=\"Established, Related, Untracked allow\" \nconnection-state=established,related,untracked<\/code><\/pre>\n<p>(\u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u0438 \u0440\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0441\u043a\u0432\u043e\u0437\u044c \u0440\u043e\u0443\u0442\u0435\u0440)<\/p>\n<pre><code class=\"plaintext\">\/ip firewall filter add action=drop chain=forward comment=\"Invalid drop\" connection-state=invalid<\/code><\/pre>\n<p>(\u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u0441 connection-state=invalid, \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0441\u043a\u0432\u043e\u0437\u044c \u0440\u043e\u0443\u0442\u0435\u0440. \u041e\u043d\u043e \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u043e Mikrotik, \u043d\u043e \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0435\u0434\u043a\u0438\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430)<\/p>\n<pre><code class=\"plaintext\">\/ip firewall filter add action=drop chain=forward comment=\"Drop all from WAN not DSTNATed\"  \nconnection-nat-state=!dstnat connection-state=new in-interface-list=WAN<\/code><\/pre>\n<p>(\u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u043a\u0432\u043e\u0437\u044c \u0440\u043e\u0443\u0442\u0435\u0440 \u043f\u0430\u043a\u0435\u0442\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0434\u0443\u0442 \u0438\u0437 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438 \u043d\u0435 \u043f\u0440\u043e\u0448\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 dstnat. \u042d\u0442\u043e \u0443\u0431\u0435\u0440\u0435\u0436\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0442\u0438 \u043e\u0442 \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u043d\u0430\u0445\u043e\u0434\u044f\u0441\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u0448\u0438\u0440\u043e\u043a\u043e\u0432\u0435\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0434\u043e\u043c\u0435\u043d\u0435 \u0441 \u043d\u0430\u0448\u0438\u043c\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0441\u0435\u0442\u044f\u043c\u0438, \u043f\u0440\u043e\u043f\u0438\u0448\u0443\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0448\u043b\u044e\u0437\u0430 \u043d\u0430\u0448\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 IP \u0438, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u043e\u043f\u044b\u0442\u0430\u044e\u0442\u0441\u044f \u201c\u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c\u201d \u043d\u0430\u0448\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0442\u0438. )<\/p>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u041f\u0440\u0438\u043c\u0435\u043c \u0437\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u0447\u0442\u043e \u0441\u0435\u0442\u0438 LAN1 \u0438 LAN2 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u043c\u0438 \u0438 \u0442\u0440\u0430\u0444\u0438\u043a \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0438 \u0441 \u043d\u0438\u0445 \u043d\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u0442\u0441\u044f.<\/i><\/p>\n<p>1.6. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0441 \u043f\u0435\u0440\u0435\u0447\u043d\u0435\u043c \u043d\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0435\u0442\u0435\u0439:<\/p>\n<pre><code class=\"plaintext\">\/ip firewall address-list\nadd address=0.0.0.0\/8 comment=\"\"This\" Network\" list=BOGONS\nadd address=10.0.0.0\/8 comment=\"Private-Use Networks\" list=BOGONS\nadd address=100.64.0.0\/10 comment=\"Shared Address Space. RFC 6598\" list=BOGONS\nadd address=127.0.0.0\/8 comment=Loopback list=BOGONS\nadd address=169.254.0.0\/16 comment=\"Link Local\" list=BOGONS\nadd address=172.16.0.0\/12 comment=\"Private-Use Networks\" list=BOGONS\nadd address=192.0.0.0\/24 comment=\"IETF Protocol Assignments\" list=BOGONS\nadd address=192.0.2.0\/24 comment=TEST-NET-1 list=BOGONS\nadd address=192.168.0.0\/16 comment=\"Private-Use Networks\" list=BOGONS\nadd address=198.18.0.0\/15 comment=\"Network Interconnect Device Benchmark Testing\"\n list=BOGONS\nadd address=198.51.100.0\/24 comment=TEST-NET-2 list=BOGONS\nadd address=203.0.113.0\/24 comment=TEST-NET-3 list=BOGONS\nadd address=224.0.0.0\/4 comment=Multicast list=BOGONS\nadd address=192.88.99.0\/24 comment=\"6to4 Relay Anycast\" list=BOGONS\nadd address=240.0.0.0\/4 comment=\"Reserved for Future Use\" list=BOGONS\nadd address=255.255.255.255 comment=\"Limited Broadcast\" list=BOGONS<\/code><\/pre>\n<p>(\u042d\u0442\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438 \u0441\u0435\u0442\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043c\u044b \u0442\u043e\u0436\u0435 \u0431\u0443\u0434\u0435\u043c \u044d\u0442\u043e\u043c\u0443 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c. )<\/p>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u0421\u043f\u0438\u0441\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c.<\/i><\/p>\n<p>1.7. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c DNS \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430:<\/p>\n<pre><code class=\"plaintext\">\/ip dns set servers=1.1.1.1,8.8.8.8<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u0412 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 ROS \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 <a class=\"wpil_keyword_link\" href=\"https:\/\/prohoster.info\/server\"   title=\"\u0441\u0435\u0440\u0432\u0435\u0440\u044b\" data-wpil-keyword-link=\"linked\"  data-wpil-monitor-id=\"1839\">\u0441\u0435\u0440\u0432\u0435\u0440\u044b<\/a> \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 \u043f\u0435\u0440\u0435\u0434 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0417\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0438 \u043e\u0442\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435. \u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e. \u0422\u0430\u0439\u043c\u0430\u0443\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u2014 \u0431\u043e\u043b\u0435\u0435 5 \u0441\u0435\u043a. \u0412\u043e\u0437\u0432\u0440\u0430\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e, \u043f\u0440\u0438 \u0432\u043e\u0437\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u201c\u0443\u043f\u0430\u0432\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u201d, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442. \u0421 \u0443\u0447\u0435\u0442\u043e\u043c \u044d\u0442\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d\u0430, \u0430\u0432\u0442\u043e\u0440 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u044b, \u0432\u044b\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c\u0438.<\/i><\/p>\n<p>1.8. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0435\u0442\u044c.<br \/>\n1.8.1. \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 IP \u0430\u0434\u0440\u0435\u0441\u0430 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439:<\/p>\n<pre><code class=\"plaintext\">\/ip address add interface=ether4 address=192.168.88.254\/24 comment=\"LAN1 IP\"\n\/ip address add interface=ether5 address=172.16.1.0\/23 comment=\"LAN2 IP\"<\/code><\/pre>\n<p>1.8.2. \u0417\u0430\u0434\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 \u043a \u043d\u0430\u0448\u0438\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u0435\u0442\u044f\u043c \u0447\u0435\u0440\u0435\u0437 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<pre><code class=\"plaintext\">\/ip route rule add dst-address=192.168.88.0\/24 table=main comment=\u201dto LAN1\u201d\n\/ip route rule add dst-address=172.16.0.0\/23 table=main comment=\"to LAN2\"<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u042d\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0430\u0434\u0440\u0435\u0441\u0430\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0441 \u0441\u043e\u0443\u0440\u0441\u0430\u043c\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 IP \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0430, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0438\u0434\u0435\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. <\/i><\/p>\n<p>1.8.3. \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c Hairpin NAT \u0434\u043b\u044f LAN1 \u0438 LAN2:<\/p>\n<pre><code class=\"plaintext\">\/ip firewall nat add action=src-nat chain=srcnat comment=\"Hairpin to LAN1\" \nout-interface=ether4 src-address=192.168.88.0\/24 to-addresses=192.168.88.254\n\/ip firewall nat add action=src-nat chain=srcnat comment=\"Hairpin to LAN2\" \nout-interface=ether5 src-address=172.16.0.0\/23 to-addresses=172.16.1.0<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0447\u0435\u0440\u0435\u0437 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 IP \u043d\u0430 \u0441\u0432\u043e\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u044b (dstnat), \u043d\u0430\u0445\u043e\u0434\u044f\u0441\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0435\u0442\u0438. <\/i><\/p>\n<h4>2. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u043e\u0433\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d<\/h4>\n<p>\u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u201c\u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0442\u0443\u0434\u0430 \u043e\u0442\u043a\u0443\u0434\u0430 \u0441\u043f\u0440\u043e\u0441\u0438\u043b\u0438\u201d \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 ROS: <b>connection mark<\/b> \u0438 <b>routing mark<\/b>. <b>Connection mark<\/b> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0438 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u044d\u0442\u043e\u0439 \u043c\u0435\u0442\u043a\u043e\u0439, \u043a\u0430\u043a \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f <b>routing mark<\/b>. \u0410 \u0443\u0436\u0435 \u0441 <b>routing mark<\/b> \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 <b>ip route<\/b> \u0438 <b>route rules<\/b>. \u0421 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c, \u0442\u0435\u043f\u0435\u0440\u044c \u043a\u0443\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0438\u0442\u044c \u2014 \u0440\u0430\u0437, \u0433\u0434\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u0435\u0442\u0438\u0442\u044c \u2014 \u0434\u0432\u0430.<\/p>\n<p>\u0421 \u043f\u0435\u0440\u0432\u044b\u043c \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u2014 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440 \u0438\u0437 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043f\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u043a\u0430\u043d\u0430\u043b\u0443. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u0443\u0434\u0443\u0442 \u0442\u0440\u0438 \u043c\u0435\u0442\u043a\u0438 (\u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043a\u0430\u043d\u0430\u043b\u043e\u0432): \u201cconn_isp1\u201d, \u201cconn_isp2\u201d \u0438 \u201cconn_isp3\u201d.<\/p>\n<p>\u041d\u044e\u0430\u043d\u0441 \u0441\u043e \u0432\u0442\u043e\u0440\u044b\u043c \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0434\u0432\u0443\u0445 \u0432\u0438\u0434\u043e\u0432: \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u044b\u0435 \u0438 \u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0441\u0430\u043c\u043e\u043c\u0443 \u0440\u043e\u0443\u0442\u0435\u0440\u0443. \u041c\u0435\u0445\u0430\u043d\u0438\u0437\u043c connection mark \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 <b>mangle<\/b>. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u043d\u0430 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e\u0439 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435, \u043b\u044e\u0431\u0435\u0437\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u0430\u043c\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 mikrotik-trainings.com (\u043d\u0435 \u0440\u0435\u043a\u043b\u0430\u043c\u0430):<\/p>\n<p><img decoding=\"async\" alt=\"\u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Mikrotik RouterOS\" src=\"\/wp-content\/uploads\/2019\/08\/cbf1742f17f6a2cee244f93ffe7ef253.jpeg\" style=\"display:block;margin: 0 auto;\"><\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044f \u043f\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c, \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u043f\u0430\u043a\u0435\u0442, \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0432 \u201c<b>input interface<\/b>\u201d, \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043f\u043e \u0446\u0435\u043f\u043e\u0447\u043a\u0435 \u201c<b>Prerouting<\/b>\u201d \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u044b\u0439 \u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0432 \u0431\u043b\u043e\u043a\u0435 \u201c<b>Routing Decision<\/b>\u201d. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0434\u043b\u044f \u0443\u0431\u0438\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u0437\u0430\u0439\u0446\u0435\u0432, \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u043c <b>Connection Mark<\/b> \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 <b>Mangle Prerouting<\/b> \u0446\u0435\u043f\u043e\u0447\u043a\u0438 <b>Prerouting<\/b>.<\/p>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/b>. \u0412 ROS \u043c\u0435\u0442\u043a\u0438 \u201cRouting mark\u201d \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Ip\/Routes\/Rules \u043a\u0430\u043a \u201cTable\u201d, \u0430 \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u0445, \u043a\u0430\u043a \u201cRouting Mark\u201d. \u0421\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u043d\u0435\u0441\u0442\u0438 \u043d\u0435\u043a\u0443\u044e \u043f\u0443\u0442\u0430\u043d\u0438\u0446\u0443 \u0432 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u043d\u043e, \u043f\u043e \u0441\u0443\u0442\u0438, \u044d\u0442\u043e \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435, \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u043c rt_tables \u0432 iproute2 \u043d\u0430 linux.<\/i><\/p>\n<p>2.1. \u041c\u0435\u0442\u0438\u043c \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043e\u0442 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432:<\/p>\n<pre><code class=\"plaintext\">\/ip firewall mangle add action=mark-connection chain=prerouting \ncomment=\"Connmark in from ISP1\" connection-mark=no-mark in-interface=ether1  new-connection-mark=conn_isp1 passthrough=no\n\n\/ip firewall mangle add action=mark-connection chain=prerouting \ncomment=\"Connmark in from ISP2\" connection-mark=no-mark in-interface=ether2  new-connection-mark=conn_isp2 passthrough=no\n\n\/ip firewall mangle add action=mark-connection chain=prerouting \ncomment=\"Connmark in from ISP3\" connection-mark=no-mark in-interface=pppoe-isp3  new-connection-mark=conn_isp3 passthrough=no<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043c\u0435\u0442\u0438\u0442\u044c \u0443\u0436\u0435 \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0443\u0441\u043b\u043e\u0432\u0438\u0435 connection-mark=no-mark \u0432\u043c\u0435\u0441\u0442\u043e connection-state=new \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u044e \u044d\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u043c, \u043a\u0430\u043a \u0438 \u043e\u0442\u043a\u0430\u0437 \u043e\u0442 drop invalid \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0432 \u0444\u0438\u043b\u044c\u0442\u0440\u0435 input. <\/i><\/p>\n<p><i><br \/>\n<\/i><i>passthrough=no \u2014 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0435\u0440\u0435\u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0438 \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u043f\u0440\u0430\u0432\u0438\u043b \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0436\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f.<\/i><\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0432\u0432\u0438\u0434\u0443, \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u043a\u0430 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0432\u043c\u0435\u0448\u0438\u0432\u0430\u0435\u043c\u0441\u044f \u0432 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e. \u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0434\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0430\u043f\u044b \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u044d\u0442\u0430\u043f\u043e\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432\u0448\u0435\u043c\u0443\u0441\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044e \u043e\u0442 \u0430\u0434\u0440\u0435\u0441\u0430\u0442\u0430 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438. \u0422.\u0435. \u0442\u0435\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 (\u0441\u043c \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443) \u043f\u0440\u043e\u0448\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u0440\u043e\u0443\u0442\u0435\u0440 \u043f\u043e \u043f\u0443\u0442\u0438:<\/p>\n<p><b>\u201cInput Interface\u201d=&gt;\u201dPrerouting\u201d=&gt;\u201dRouting Decision\u201d=&gt;\u201dForward\u201d=&gt;\u201dPost Routing\u201d=&gt;\u201dOutput Interface\u201d<\/b> \u0438 \u043f\u043e\u043f\u0430\u043b\u0438 \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0430\u0442\u0443 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438.<\/p>\n<p><u><b> \u0412\u0430\u0436\u043d\u043e!<\/b><\/u> \u0412 ROS \u043d\u0435\u0442 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u043f\u0443\u0442\u044c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430 \u043f\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0439 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435, \u0442\u043e \u043e\u043d \u043f\u0440\u043e\u0439\u0434\u0435\u0442 \u043f\u043e \u0442\u043e\u043c\u0443 \u0436\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u043f\u0443\u0442\u0438, \u0447\u0442\u043e \u0438 \u0437\u0430\u043f\u0440\u043e\u0441:<\/p>\n<p><b>\u201cInput Interface\u201d=&gt;\u201dPrerouting\u201d=&gt;\u201dRouting Decision\u201d=&gt;\u201dForward\u201d=&gt;\u201dPost Routing\u201d=&gt;\u201dOutput Interface\u201d<\/b> \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u201c<b>Input Interface<\/b>\u201d \u0431\u044b\u043b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 ISP, \u0430 \u0434\u043b\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u2014 LAN<\/p>\n<p>2.2. \u041d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0442\u0432\u0435\u0442\u043d\u044b\u0439 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043f\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<pre><code class=\"plaintext\">\/ip firewall mangle add action=mark-routing chain=prerouting \ncomment=\"Routemark transit out via ISP1\" connection-mark=conn_isp1 \ndst-address-type=!local in-interface-list=!WAN new-routing-mark=to_isp1 passthrough=no\n\n\/ip firewall mangle add action=mark-routing chain=prerouting \ncomment=\"Routemark transit out via ISP2\" connection-mark=conn_isp2 \ndst-address-type=!local in-interface-list=!WAN new-routing-mark=to_isp2 passthrough=no\n\n\/ip firewall mangle add action=mark-routing chain=prerouting \ncomment=\"Routemark transit out via ISP3\" connection-mark=conn_isp3 \ndst-address-type=!local in-interface-list=!WAN new-routing-mark=to_isp3 passthrough=no<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435. in-interface-list=!WAN \u2014 \u043c\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0442\u0440\u0430\u0444\u0438\u043a\u043e\u043c \u0438\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u0438 dst-address-type=!local \u043d\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u043c \u0430\u0434\u0440\u0435\u0441 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0441\u0430\u043c\u043e\u0433\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430.<br \/>\n<\/b><\/i><\/p>\n<p>\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0448\u043b\u0438 \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440 \u043f\u043e \u043f\u0443\u0442\u0438:<\/p>\n<p><b>\u201cInput Interface\u201d=&gt;\u201dPrerouting\u201d=&gt;\u201dRouting Decision\u201d=&gt;\u201dInput\u201d=&gt;\u201dLocal Process\u201d<\/b><\/p>\n<p><u><b>\u0412\u0430\u0436\u043d\u043e!<\/b><\/u> \u041e\u0442\u0432\u0435\u0442 \u043f\u043e\u0439\u0434\u0435\u0442 \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0443\u0442\u0438:<\/p>\n<p><b>\u201dLocal Process\u201d=&gt;\u201dRouting Decision\u201d=&gt;\u201dOutput\u201d=&gt;\u201dPost Routing\u201d=&gt;\u201dOutput Interface\u201d<br \/>\n<\/b><br \/>\n2.3. \u041d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0442\u0432\u0435\u0442\u043d\u044b\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043f\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<pre><code class=\"plaintext\">\/ip firewall mangle add action=mark-routing chain=output \ncomment=\"Routemark local out via ISP1\" connection-mark=conn_isp1 dst-address-type=!local \nnew-routing-mark=to_isp1 passthrough=no\n\n\/ip firewall mangle add action=mark-routing chain=output \ncomment=\"Routemark local out via ISP2\" connection-mark=conn_isp2 dst-address-type=!local \nnew-routing-mark=to_isp2 passthrough=no\n\n\/ip firewall mangle add action=mark-routing chain=output \ncomment=\"Routemark local out via ISP3\" connection-mark=conn_isp3 dst-address-type=!local \nnew-routing-mark=to_isp3 passthrough=no<\/code><\/pre>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0437\u0430\u0434\u0430\u0447\u0443 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u043a \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 \u0432 \u0442\u043e\u0442 \u043a\u0430\u043d\u0430\u043b \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u0438\u0448\u0435\u043b \u0437\u0430\u043f\u0440\u043e\u0441 \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u043d\u043e\u0439. \u0412\u0441\u0435 \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043e, \u043f\u0440\u043e\u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0438 \u0433\u043e\u0442\u043e\u0432\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<br \/>\n\u041e\u0442\u043b\u0438\u0447\u043d\u044b\u043c \u201c\u043f\u043e\u0431\u043e\u0447\u043d\u044b\u043c\u201d \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u043c \u0442\u0430\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0430 \u043f\u043e\u0440\u0442\u043e\u0432 DSNAT \u0441 \u043e\u0431\u043e\u0438\u0445 (ISP2, ISP3) \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e. \u041d\u0435 \u043d\u0430 \u0432\u0441\u0435\u0445, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430 ISP1 \u0443 \u043d\u0430\u0441 \u043d\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0430\u0434\u0440\u0435\u0441. \u042d\u0442\u043e\u0442 \u044d\u0444\u0444\u0435\u043a\u0442 \u0432\u0430\u0436\u0435\u043d, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 \u0434\u0432\u0443\u043c\u044f M\u0425, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043c\u043e\u0442\u0440\u044f\u0442 \u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u043a\u0430\u043d\u0430\u043b\u044b \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442.<\/p>\n<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u044e\u0430\u043d\u0441\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 IP \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438\u0437 \u043f\u043f. 1.8.2 \u0438 3.1.2.6.<\/p>\n<p>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0441 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438 \u0438 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0443\u043d\u043a\u0442\u0430 3 \u0437\u0430\u0434\u0430\u0447\u0438. \u0420\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0442\u0430\u043a:<\/p>\n<p>2.4. \u041d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0440\u0430\u0444\u0438\u043a \u043e\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b:<\/p>\n<pre><code class=\"plaintext\">\/ip firewall mangle add action=mark-routing chain=prerouting \ncomment=\"Address List via ISP1\" dst-address-list=!BOGONS new-routing-mark=to_isp1 \npassthrough=no src-address-list=Via_ISP1\n\n\/ip firewall mangle add action=mark-routing chain=prerouting \ncomment=\"Address List via ISP2\" dst-address-list=!BOGONS new-routing-mark=to_isp2 \npassthrough=no src-address-list=Via_ISP2\n\n\/ip firewall mangle add action=mark-routing chain=prerouting \ncomment=\"Address List via ISP3\" dst-address-list=!BOGONS new-routing-mark=to_isp3 \npassthrough=no src-address-list=Via_ISP3<\/code><\/pre>\n<p>\u041f\u043e \u0438\u0442\u043e\u0433\u0443, \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p><img decoding=\"async\" alt=\"\u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Mikrotik RouterOS\" src=\"\/wp-content\/uploads\/2019\/08\/29b8c8ddf5a24b513dd2c71808e9fd38.jpeg\" style=\"display:block;margin: 0 auto;\"><\/p>\n<h4>3. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a ISP \u0438 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e \u043c\u0430\u0440\u043a\u0430\u043c<\/h4>\n<p>3.1. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a ISP1:<br \/>\n3.1.1. \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 IP \u0430\u0434\u0440\u0435\u0441:<\/p>\n<pre><code class=\"plaintext\">\/ip address add interface=ether1 address=100.66.66.2\/30 comment=\"ISP1 IP\"<\/code><\/pre>\n<p>3.1.2. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e:<br \/>\n3.1.2.1. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u201c\u0430\u0432\u0430\u0440\u0438\u0439\u043d\u044b\u0439\u201d \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e:<\/p>\n<pre><code class=\"plaintext\">\/ip route add comment=\"Emergency route\" distance=254 type=blackhole<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u042d\u0442\u043e\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0442\u0440\u0430\u0444\u0438\u043a\u0443 \u043e\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u044d\u0442\u0430\u043f Route Decision \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u043b\u044e\u0431\u043e\u0433\u043e \u0438\u0437 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432. \u041d\u044e\u0430\u043d\u0441 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0430\u043a\u0435\u0442 \u0445\u043e\u0442\u044c \u043a\u0443\u0434\u0430-\u0442\u043e \u0434\u0432\u0438\u043d\u0443\u043b\u0441\u044f, \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e \u0448\u043b\u044e\u0437\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0415\u0441\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0442, \u0442\u043e \u043f\u0430\u043a\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d.<\/i><\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 <b>check gateway<\/b> \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b\u0430 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432. \u0421\u0443\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0443 \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u0443\u0442\u044c \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u0448\u043b\u044e\u0437\u0443 \u043d\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0430 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0439 \u0448\u043b\u044e\u0437. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043a\u0438\u0445 \u201c\u043f\u0440\u043e\u0432\u0435\u0440\u043e\u0447\u043d\u044b\u0445\u201d \u0448\u043b\u044e\u0437\u043e\u0432 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u044b 4.2.2.1, 4.2.2.2 \u0438 4.2.2.3 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0434\u043b\u044f ISP1, ISP2 \u0438 ISP3.<\/p>\n<p>3.1.2.2. \u041c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e \u201c\u043f\u0440\u043e\u0432\u0435\u0440\u043e\u0447\u043d\u043e\u0433\u043e\u201d \u0430\u0434\u0440\u0435\u0441\u0430:<\/p>\n<pre><code class=\"plaintext\">\/ip route add check-gateway=ping comment=\"For recursion via ISP1\"  \ndistance=1 dst-address=4.2.2.1 gateway=100.66.66.1 scope=10<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 scope \u043f\u043e\u043d\u0438\u0436\u0430\u0435\u043c \u0434\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u0432 ROS target scope, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c 4.2.2.1 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e\u0433\u043e \u0448\u043b\u044e\u0437\u0430. \u041f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u044e: scope \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0434\u043e \u201c\u043f\u0440\u043e\u0432\u0435\u0440\u043e\u0447\u043d\u043e\u0433\u043e\u201d \u0430\u0434\u0440\u0435\u0441\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u043d\u043e target scope \u0442\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u0447\u043d\u044b\u0439.<\/i><\/p>\n<p>3.1.2.3. \u0420\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0431\u0435\u0437 routing mark:<\/p>\n<pre><code class=\"plaintext\">\/ip route add comment=\"Unmarked via ISP1\" distance=2 gateway=4.2.2.1<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 distance=2 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e ISP1 \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c \u0437\u0430\u0434\u0430\u0447\u0438 \u0437\u0430\u044f\u0432\u043b\u0435\u043d \u043a\u0430\u043a \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439. <\/i><\/p>\n<p>3.1.2.4. \u0420\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 c routing mark \u201cto_isp1\u201d:<\/p>\n<pre><code class=\"plaintext\">\/ip route add comment=\"Marked via ISP1 Main\" distance=1 gateway=4.2.2.1 \nrouting-mark=to_isp1<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0437\u0434\u0435\u0441\u044c \u043c\u044b \u043d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043b\u043e\u0434\u0430\u043c\u0438 \u0442\u043e\u0439 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u0447\u0442\u043e \u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0430 \u0432 \u043f\u0443\u043d\u043a\u0442\u0435 2.<\/i><\/p>\n<p><i><br \/>\n<\/i><i>\u041f\u043e \u044d\u0442\u043e\u043c\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0443 \u0432\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u0435\u0435\u0442 mark route \u201cto_isp1\u201d, \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u043d\u0430 \u0448\u043b\u044e\u0437 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a\u043e\u0439 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0430\u043a\u0442\u0438\u0432\u0435\u043d \u0448\u043b\u044e\u0437 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b main.<\/i><\/p>\n<p>3.1.2.5. \u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0439 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 ISP2 \u0438 ISP3:<\/p>\n<pre><code class=\"plaintext\">\/ip route add comment=\"Marked via ISP2 Backup1\" distance=2 gateway=4.2.2.1 \nrouting-mark=to_isp2\n\/ip route add comment=\"Marked via ISP3 Backup1\" distance=2 gateway=4.2.2.1 \nrouting-mark=to_isp3<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u042d\u0442\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u043d\u0443\u0436\u043d\u044b, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u0434\u043b\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u0442 \u0447\u043b\u0435\u043d\u0430\u043c\u0438 address list \u201cto_isp*\u201d\u2019<\/i><\/p>\n<p>3.1.2.6. \u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 ISP1:<\/p>\n<pre><code class=\"plaintext\">\/ip route rule add comment=\"From ISP1 IP to Inet\" src-address=100.66.66.2 table=to_isp1<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u0412 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0438 \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438 \u0438\u0437 \u043f\u0443\u043d\u043a\u0442\u0430 1.8.2, \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0445\u043e\u0434 \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c \u0441\u043e\u0443\u0440\u0441\u043e\u043c. \u042d\u0442\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u043c \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0442\u0443\u043d\u043d\u0435\u043b\u0435\u0439, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f IP-\u0430\u0434\u0440\u0435\u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b(EoIP, IP-IP, GRE). \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0432 ip route rules \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437, \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u0439, \u0442\u043e \u0434\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b \u0438\u0437 \u043f\u0443\u043d\u043a\u0442\u0430 1.8.2.<\/i><\/p>\n<p>3.1.3. \u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e NAT \u0434\u043b\u044f \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430:<\/p>\n<pre><code class=\"plaintext\">\/ip firewall nat add action=src-nat chain=srcnat comment=\"NAT via ISP1\"  \nipsec-policy=out,none out-interface=ether1 to-addresses=100.66.66.2<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> NAT\u0438\u043c \u0432\u0441\u0435 \u0432\u044b\u0445\u043e\u0434\u044f\u0449\u0435\u0435, \u043a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 IPsec. \u042f \u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c action=masquerade \u0431\u0435\u0437 \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438. \u041e\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0435\u043c\u043a\u043e, \u0447\u0435\u043c src-nat, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0430\u0434\u0440\u0435\u0441 \u0434\u043b\u044f NAT.<\/i><\/p>\n<p>3.1.4. \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d \u0432\u044b\u0445\u043e\u0434 \u0447\u0435\u0440\u0435\u0437 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0441\u0440\u0430\u0437\u0443 \u043d\u0430 \u0448\u043b\u044e\u0437 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 ISP1.<\/p>\n<pre><code class=\"plaintext\">\/ip firewall mangle add action=route chain=prerouting comment=\"Address List via ISP1 only\" \ndst-address-list=!BOGONS passthrough=no route-dst=100.66.66.1 \nsrc-address-list=Via_only_ISP1 place-before=0<\/code><\/pre>\n<p><i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> action=route \u0438\u043c\u0435\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0440\u0430\u043d\u044c\u0448\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438.<\/i><\/p>\n<p><i><br \/>\n<\/i><i>place-before=0 \u2014 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442 \u043d\u0430\u0448\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0435\u0440\u0432\u044b\u043c \u0432 \u0441\u043f\u0438\u0441\u043a\u0435.<\/i><\/p>\n<p>3.2. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a ISP2.<\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 ISP2 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u043c \u0432\u044b\u0434\u0430\u0435\u0442 \u043f\u043e DHCP, \u0440\u0430\u0437\u0443\u043c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u043f\u0440\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0438 DHCP \u043a\u043b\u0438\u0435\u043d\u0442\u0430:<\/p>\n<pre><code class=\"plaintext\">\/ip dhcp-client\nadd add-default-route=no disabled=no interface=ether2 script=\":if ($bound=1) do={r\n    n    \/ip route add check-gateway=ping comment=\"For recursion via ISP2\" distance=1 \n           dst-address=4.2.2.2\/32 gateway=$\"gateway-address\" scope=10r\n    n    \/ip route add comment=\"Unmarked via ISP2\" distance=1 gateway=4.2.2.2;r\n    n    \/ip route add comment=\"Marked via ISP2 Main\" distance=1 gateway=4.2.2.2 \n           routing-mark=to_isp2;r\n    n    \/ip route add comment=\"Marked via ISP1 Backup1\" distance=2 gateway=4.2.2.2 \n           routing-mark=to_isp1;r\n    n    \/ip route add comment=\"Marked via ISP3 Backup2\" distance=3 gateway=4.2.2.2 \n           routing-mark=to_isp3;r\n    n    \/ip firewall nat add action=src-nat chain=srcnat ipsec-policy=out,none \n           out-interface=$\"interface\" to-addresses=$\"lease-address\" comment=\"NAT via ISP2\" \n           place-before=1;r\n    n    if ([\/ip route rule find comment=\"From ISP2 IP to Inet\"] =\"\") do={r\n    n        \/ip route rule add comment=\"From ISP2 IP to Inet\" \n               src-address=$\"lease-address\" table=to_isp2 r\n    n    } else={r\n    n       \/ip route rule set [find comment=\"From ISP2 IP to Inet\"] disabled=no \n              src-address=$\"lease-address\"r\n    n    }      r\n    n} else={r\n    n   \/ip firewall nat remove  [find comment=\"NAT via ISP2\"];r\n    n   \/ip route remove [find comment=\"For recursion via ISP2\"];r\n    n   \/ip route remove [find comment=\"Unmarked via ISP2\"];r\n    n   \/ip route remove [find comment=\"Marked via ISP2 Main\"];r\n    n   \/ip route remove [find comment=\"Marked via ISP1 Backup1\"];r\n    n   \/ip route remove [find comment=\"Marked via ISP3 Backup2\"];r\n    n   \/ip route rule set [find comment=\"From ISP2 IP to Inet\"] disabled=yesr\n    n}r\n    n\" use-peer-dns=no use-peer-ntp=no<\/code><\/pre>\n<p>\u0421\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u043e\u043a\u043d\u0435 Winbox:<\/p>\n<p><img decoding=\"async\" alt=\"\u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Mikrotik RouterOS\" src=\"\/wp-content\/uploads\/2019\/08\/f330fdd1c79746980eb2b81ccb06fa16.jpeg\" style=\"display:block;margin: 0 auto;\"><br \/>\n<i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u041f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0430\u0440\u0435\u043d\u0434\u044b, \u0432\u0442\u043e\u0440\u0430\u044f \u2014 \u043f\u043e\u0441\u043b\u0435 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0430\u0440\u0435\u043d\u0434\u044b.<\/i>\u0421\u043c. \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 2<\/p>\n<p>3.3. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0443 ISP3.<\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u043c \u0432\u044b\u0434\u0430\u0435\u0442 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435, \u0442\u043e \u0440\u0430\u0437\u0443\u043c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u0430\u0440\u0442\u0443\u044e\u0442 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043d\u044f\u0442\u0438\u044f \u0438 \u043f\u043e\u0441\u043b\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 ppp.<\/p>\n<p>3.3.1. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0444\u0438\u043b\u044c:<\/p>\n<pre><code class=\"plaintext\">\/ppp profile\nadd comment=\"for PPPoE to ISP3\" interface-list=WAN name=isp3_client \non-down=\"\/ip firewall nat remove  [find comment=\"NAT via ISP3\"];r\n    n\/ip route remove [find comment=\"For recursion via ISP3\"];r\n    n\/ip route remove [find comment=\"Unmarked via ISP3\"];r\n    n\/ip route remove [find comment=\"Marked via ISP3 Main\"];r\n    n\/ip route remove [find comment=\"Marked via ISP1 Backup2\"];r\n    n\/ip route remove [find comment=\"Marked via ISP2 Backup2\"];r\n    n\/ip route rule set [find comment=\"From ISP3 IP to Inet\"] disabled=yes;\" \non-up=\"\/ip route add check-gateway=ping comment=\"For recursion via ISP3\" distance=1 \n    dst-address=4.2.2.3\/32 gateway=$\"remote-address\" scope=10r\n    n\/ip route add comment=\"Unmarked via ISP3\" distance=3 gateway=4.2.2.3;r\n    n\/ip route add comment=\"Marked via ISP3 Main\" distance=1 gateway=4.2.2.3 \n    routing-mark=to_isp3;r\n    n\/ip route add comment=\"Marked via ISP1 Backup2\" distance=3 gateway=4.2.2.3 \n    routing-mark=to_isp1;r\n    n\/ip route add comment=\"Marked via ISP2 Backup2\" distance=3 gateway=4.2.2.3 \n    routing-mark=to_isp2;r\n    n\/ip firewall mangle set [find comment=\"Connmark in from ISP3\"] \n    in-interface=$\"interface\";r\n    n\/ip firewall nat add action=src-nat chain=srcnat ipsec-policy=out,none \n    out-interface=$\"interface\" to-addresses=$\"local-address\" comment=\"NAT via ISP3\" \n    place-before=1;r\n    nif ([\/ip route rule find comment=\"From ISP3 IP to Inet\"] =\"\") do={r\n    n   \/ip route rule add comment=\"From ISP3 IP to Inet\" src-address=$\"local-address\" \n    table=to_isp3 r\n    n} else={r\n    n   \/ip route rule set [find comment=\"From ISP3 IP to Inet\"] disabled=no \n    src-address=$\"local-address\"r\n    n};r\n    n\"<\/code><\/pre>\n<p>\u0421\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u043e\u043a\u043d\u0435 Winbox:<\/p>\n<p><img decoding=\"async\" alt=\"\u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Mikrotik RouterOS\" src=\"\/wp-content\/uploads\/2019\/08\/92eb555f8c33c7dae242ab6ef432cb5d.jpeg\" style=\"display:block;margin: 0 auto;\"><br \/>\n<i><b>\u0417\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435.<\/b> \u0421\u0442\u0440\u043e\u043a\u0430<br \/>\n<b>\/ip firewall mangle set [find comment=\u00abConnmark in from ISP3\u00bb] in-interface=$\u00abinterface\u00bb;<\/b><br \/>\n\u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0435\u0433\u043e \u043a\u043e\u0434\u043e\u043c \u0430 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c.<\/i><\/p>\n<p>3.3.2. \u0422\u0435\u043f\u0435\u0440\u044c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u044c, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 ppp:<\/p>\n<pre><code class=\"plaintext\">\/interface pppoe-client add allow=mschap2 comment=\"to ISP3\" disabled=no \ninterface=ether3 name=pppoe-isp3 password=isp3_pass profile=isp3_client user=isp3_client<\/code><\/pre>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0448\u0442\u0440\u0438\u0445\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0447\u0430\u0441\u044b:<\/p>\n<pre><code class=\"plaintext\">\/system ntp client set enabled=yes server-dns-names=0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org<\/code><\/pre>\n<h4>\u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b \u0434\u043e \u043a\u043e\u043d\u0446\u0430<\/h4>\n<p>\u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d \u2014 \u0435\u0441\u0442\u044c \u043b\u0438\u0447\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0435\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u0440\u0430 \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c. \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 ROS \u043e\u0431\u0448\u0438\u0440\u0435\u043d \u0438 \u0433\u0438\u0431\u043e\u043a, \u0447\u0442\u043e \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445, \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u2014 \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u0438. \u0418\u0437\u0443\u0447\u0430\u0439\u0442\u0435, \u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043d\u043e\u0432\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0437\u043d\u0430\u043d\u0438\u0439, \u043c\u043e\u0436\u043d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 <b>\u0421heck-gateway<\/b> \u0441 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u043c\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430\u043c\u0438 \u043d\u0430 <b>Netwatch<\/b>.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u044f<\/h4>\n<ol>\n<li><i><b>Check-gateway<\/b> \u2014 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u043e\u0441\u043b\u0435 \u0434\u0432\u0443\u0445 \u043f\u043e\u0434\u0440\u044f\u0434 \u043d\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0448\u043b\u044e\u0437\u0430 \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0430\u0437 \u0432 10 \u0441\u0435\u043a\u0443\u043d\u0434, \u043f\u043b\u044e\u0441 \u0442\u0430\u0439\u043c\u0430\u0443\u0442 \u043e\u0442\u0432\u0435\u0442\u0430. \u0418\u0442\u043e\u0433\u043e, \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0430\u0439\u043c\u0438\u043d\u0433 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043b\u0435\u0436\u0438\u0442 \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 20-30 \u0441\u0435\u043a\u0443\u043d\u0434. \u0415\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0439 \u0442\u0430\u0439\u043c\u0438\u043d\u0433 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u0435\u043d \u2014 \u0435\u0441\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c <b>Netwatch<\/b>, \u0433\u0434\u0435 \u0442\u0430\u0439\u043c\u0435\u0440 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e.\u041c\u0435\u0445\u0430\u043d\u0438\u0437\u043c <b>Check-gateway<\/b> \u043d\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0438 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u043e\u0442\u0435\u0440\u044f\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0432 \u043a\u0430\u043d\u0430\u043b\u0435.\n<p><\/i><i>\u0412\u0430\u0436\u043d\u043e! \u0414\u0435\u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0432\u043b\u0435\u0447\u0435\u0442 \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044e \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430 \u043d\u0435\u0433\u043e \u0441\u0441\u044b\u043b\u0430\u044e\u0442\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u043d\u0438\u0445 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c <b>check-gateway=ping<\/b> \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/i><\/li>\n<li><i>\u0411\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0432 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0435 \u0440\u0430\u0431\u043e\u0442\u044b DH\u0421P \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u0431\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442, \u043a\u0430\u043a \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u043e\u0434\u0432\u0438\u0441\u0448\u0438\u0439 \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 renew. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043d\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0445\u043e\u0434\u0438\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a\u0443 \u043d\u0435 \u043f\u043e\u043c\u0435\u0448\u0430\u0435\u0442, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442.<\/i><\/li>\n<li><i><b>ECMP (Equal Cost Multi-Path)<\/b> \u2014 \u0432 ROS \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0442\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0448\u043b\u044e\u0437\u0430\u043c\u0438 \u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0439 distance. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u043e \u043a\u0430\u043d\u0430\u043b\u0430\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c round robin, \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0448\u043b\u044e\u0437\u043e\u0432.<\/i><\/li>\n<\/ol>\n<p>\u0417\u0430 \u0442\u043e\u043b\u0447\u043e\u043a \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0441\u0442\u0430\u0442\u044c\u0438, \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0435\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u0440\u0430\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0430\u043a\u0446\u0435\u043d\u0442\u043e\u0432 \u2014 \u043b\u0438\u0447\u043d\u0430\u044f \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c \u0415\u0432\u0433\u0435\u043d\u0438\u044e <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/users\/jscar\/\">@jscar<\/a><\/noindex><\/p>\n<p>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/463813\/\">habr.com<\/a><\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0412\u0437\u044f\u0442\u044c\u0441\u044f \u0437\u0430 \u0441\u0442\u0430\u0442\u044c\u044e, \u043f\u043e\u043c\u0438\u043c\u043e \u0442\u0449\u0435\u0441\u043b\u0430\u0432\u0438\u044f, \u043f\u043e\u0431\u0443\u0434\u0438\u043b\u0430 \u0443\u0434\u0440\u0443\u0447\u0430\u044e\u0449\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u0435 \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044c\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f\u0430\u0445 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c-\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430. \u0421\u0442\u0430\u0442\u044c\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 Mikrotik RouterOS (\u0434\u0430\u043b\u0435\u0435 ROS). \u0412 \u043d\u0435\u0439 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d, \u0441 \u0430\u043a\u0446\u0435\u043d\u0442\u043e\u043c \u043d\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e. \u0411\u043e\u043d\u0443\u0441\u043e\u043c \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439 \u0438 \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b. \u0422\u0435, \u043a\u0442\u043e \u0438\u0449\u0435\u0442 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u0438\u044f \u0442\u0435\u043c \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0438 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":27933,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-37247","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0412\u0437\u044f\u0442\u044c\u0441\u044f \u0437\u0430 \u0441\u0442\u0430\u0442\u044c\u044e, \u043f\u043e\u043c\u0438\u043c\u043e \u0442\u0449\u0435\u0441\u043b\u0430\u0432\u0438\u044f, \u043f\u043e\u0431\u0443\u0434\u0438\u043b\u0430 \u0443\u0434\u0440\u0443\u0447\u0430\u044e\u0449\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u0435 \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044c\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f\u0430\u0445 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c-\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430. \u0421\u0442\u0430\u0442\u044c\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 Mikrotik RouterOS (\u0434\u0430\u043b\u0435\u0435 ROS). \u0412 \u043d\u0435\u0439 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d, \u0441 \u0430\u043a\u0446\u0435\u043d\u0442\u043e\u043c \u043d\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e. \u0411\u043e\u043d\u0443\u0441\u043e\u043c \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439 \u0438 \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b. \u0422\u0435, \u043a\u0442\u043e \u0438\u0449\u0435\u0442 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u0438\u044f \u0442\u0435\u043c \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0438\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/multivan-i-marshrutizatsiya-na-mikrotik-routeros\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Mikrotik RouterOS | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0412\u0437\u044f\u0442\u044c\u0441\u044f \u0437\u0430 \u0441\u0442\u0430\u0442\u044c\u044e, \u043f\u043e\u043c\u0438\u043c\u043e \u0442\u0449\u0435\u0441\u043b\u0430\u0432\u0438\u044f, \u043f\u043e\u0431\u0443\u0434\u0438\u043b\u0430 \u0443\u0434\u0440\u0443\u0447\u0430\u044e\u0449\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u0435 \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044c\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f\u0430\u0445 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c-\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430. \u0421\u0442\u0430\u0442\u044c\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 Mikrotik RouterOS (\u0434\u0430\u043b\u0435\u0435 ROS). \u0412 \u043d\u0435\u0439 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d, \u0441 \u0430\u043a\u0446\u0435\u043d\u0442\u043e\u043c \u043d\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e. \u0411\u043e\u043d\u0443\u0441\u043e\u043c \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439 \u0438 \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b. \u0422\u0435, \u043a\u0442\u043e \u0438\u0449\u0435\u0442 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u0438\u044f \u0442\u0435\u043c \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0438\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/multivan-i-marshrutizatsiya-na-mikrotik-routeros\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T19:16:34+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-02-01T09:37:39+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Multiview und Routing auf Mikrotik RouterOS | ProHoster","description":"Einf\u00fchrung Der Ansto\u00df zur Erstellung dieses Artikels, abgesehen von Eitelkeit, war die frustrierende H\u00e4ufigkeit von Fragen zu diesem Thema in den relevanten Gruppen der russischsprachigen Telegram-Community. Der Artikel richtet sich an angehende Administratoren von Mikrotik RouterOS (im Folgenden ROS). Es wird ausschlie\u00dflich das Multiview behandelt, mit einem Schwerpunkt auf der Routing-Technik. Als Bonus finden sich minimal erforderliche Einstellungen, um einen sicheren und benutzerfreundlichen Betrieb zu gew\u00e4hrleisten. Jene, die auf der Suche nach einer detaillierten Er\u00f6rterung von Warteschlangen und Lastverteilung sind, werden ebenfalls ber\u00fccksichtigt.","canonical_url":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/multivan-i-marshrutizatsiya-na-mikrotik-routeros","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"de_DE","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Mikrotik RouterOS | ProHoster","og:description":"\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0412\u0437\u044f\u0442\u044c\u0441\u044f \u0437\u0430 \u0441\u0442\u0430\u0442\u044c\u044e, \u043f\u043e\u043c\u0438\u043c\u043e \u0442\u0449\u0435\u0441\u043b\u0430\u0432\u0438\u044f, \u043f\u043e\u0431\u0443\u0434\u0438\u043b\u0430 \u0443\u0434\u0440\u0443\u0447\u0430\u044e\u0449\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u0435 \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044c\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f\u0430\u0445 \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c-\u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430. \u0421\u0442\u0430\u0442\u044c\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 Mikrotik RouterOS (\u0434\u0430\u043b\u0435\u0435 ROS). \u0412 \u043d\u0435\u0439 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043d, \u0441 \u0430\u043a\u0446\u0435\u043d\u0442\u043e\u043c \u043d\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e. \u0411\u043e\u043d\u0443\u0441\u043e\u043c \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439 \u0438 \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b. \u0422\u0435, \u043a\u0442\u043e \u0438\u0449\u0435\u0442 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u0438\u044f \u0442\u0435\u043c \u043e\u0447\u0435\u0440\u0435\u0434\u0435\u0439, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0438","og:url":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/multivan-i-marshrutizatsiya-na-mikrotik-routeros","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T19:16:34+00:00","article:modified_time":"2021-02-01T09:37:39+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"37247","title":null,"description":"","keywords":"","keyphrases":null,"primary_term":null,"canonical_url":"","og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-02-09 17:59:22","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 23:26:42","updated":"2026-02-09 17:59:22"},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/37247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/comments?post=37247"}],"version-history":[{"count":1,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/37247\/revisions"}],"predecessor-version":[{"id":159083,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/37247\/revisions\/159083"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/media\/27933"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/media?parent=37247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/categories?post=37247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/tags?post=37247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}