{"id":492904,"date":"2026-08-31T09:13:30","date_gmt":"2026-08-31T09:13:30","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=492904"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2026-08-31T09:13:30","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=492904","title":{"rendered":"\u0421\u0443\u0441\u0430\u043d\u0438\u043d: \u043a\u0430\u043a \u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u043a\u043e\u0440\u043c\u0438\u0442\u044c MikroTik \u0441\u043f\u0438\u0441\u043a\u0430\u043c\u0438 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0438 \u043d\u0430\u0443\u0447\u0438\u043b \u0438\u0441\u043a\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<blockquote>\n<p><strong>TL;DR.<\/strong> \u042f \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u0438\u043b\u043e\u0442\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043b\u044f MikroTik RouterOS. \u041e\u043d\u0430 \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u00ab\u043a\u0430\u043a\u0438\u0435 \u0441\u0430\u0439\u0442\u044b \u043d\u0430\u0434\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 VPN\u00bb. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e RouterOS \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 connection tracking, \u0437\u0430\u043c\u0435\u0447\u0430\u0435\u0442 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u043d\u044b\u0435 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0442\u043e\u0442 \u0436\u0435 destination \u0447\u0435\u0440\u0435\u0437 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 route-based VPN\/tunnel \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442, \u043f\u043e\u043c\u043e\u0433 \u043b\u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0443\u0442\u044c. TCP \u0438 UDP \u043e\u0431\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u0430 \u043f\u0440\u0438 \u043f\u0430\u0434\u0435\u043d\u0438\u0438 VPN \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 fail-open DIRECT. \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0443\u0436\u043d\u044b <code>susanin.tar<\/code> \u0438 <code>install.rsc<\/code>, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e VPN-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/p>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u043a\u0430 <strong>\u043e\u0447\u0435\u043d\u044c \u043f\u0438\u043b\u043e\u0442\u043d\u044b\u0439<\/strong>. \u041f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u2014 ARM64, \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u2014 RouterOS 7.23.3. \u041d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c MikroTik \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b clean install <code>0\/16 \u2192 16\/16<\/code>, reboot, fail-open\/recovery, credentialless bootstrap \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u0430\u044f structural reconciliation. \u041f\u0435\u0440\u0435\u0434 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u0435\u043b\u0430\u0439\u0442\u0435 backup.<\/p>\n<\/blockquote>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/2c8\/9b2\/eda\/2c89b2eda279c29963c2a83e01355c8a.png\" alt=\"\u0421\u0443\u0441\u0430\u043d\u0438\u043d\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/2c8\/9b2\/eda\/2c89b2eda279c29963c2a83e01355c8a.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/2c8\/9b2\/eda\/2c89b2eda279c29963c2a83e01355c8a.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0421\u0443\u0441\u0430\u043d\u0438\u043d<\/figcaption><\/div>\n<\/figure>\n<p>\u0421\u0440\u0430\u0437\u0443 \u0434\u0432\u0435 \u0447\u0435\u0441\u0442\u043d\u044b\u0435 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0438. \u042f \u043d\u0435 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u0430 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440 \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442 \u043f\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u0412 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438, firewall, conntrack, VPN \u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0435 \u044f \u0447\u0443\u0432\u0441\u0442\u0432\u0443\u044e \u0441\u0435\u0431\u044f \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u0435\u0435, \u0447\u0435\u043c \u0432 production-C. \u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 Susanin \u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b ChatGPT: \u0434\u043b\u044f C-\u043a\u043e\u0434\u0430, \u0440\u0435\u0432\u044c\u044e, \u0440\u0430\u0437\u0431\u043e\u0440\u0430 RouterOS API, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0433\u0438\u043f\u043e\u0442\u0435\u0437 \u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u041d\u0435 \u0445\u043e\u0447\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0438\u0434, \u0447\u0442\u043e \u0432\u0441\u0451 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u043e\u0434\u0438\u043d\u043e\u0447\u043a\u0443 \u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0445\u0435\u043c\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u044b\u043b\u0430 \u043d\u0435 \u00ab\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u043a\u043e\u0434 \u0438 \u0432\u044b\u043b\u043e\u0436\u0438\u043b\u00bb. \u041f\u043e\u0447\u0442\u0438 \u043a\u0430\u0436\u0434\u0430\u044f \u0437\u0430\u043c\u0435\u0442\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u0430 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 MikroTik: \u0441\u0431\u043e\u0440\u043a\u0430, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430, \u043e\u0448\u0438\u0431\u043a\u0430, \u0430\u043d\u0430\u043b\u0438\u0437 \u043b\u043e\u0433\u043e\u0432 \u0438 RouterOS state, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0438\u043d\u043e\u0433\u0434\u0430 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0440\u043e\u0433\u043e backup \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0439 clean install. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0431\u044b\u043b\u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u043c\u0438 \u043c\u043e\u0438\u043c\u0438 \u0431\u0430\u0433\u0430\u043c\u0438, \u0434\u0440\u0443\u0433\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044f\u043c\u0438 RouterOS. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 C-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u043c, RouterOS scripting, API \u0438 container runtime \u0432 \u0438\u0442\u043e\u0433\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0441\u0430\u043c\u043e\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0438\u0434\u0435\u0438.<\/p>\n<p>\u0412\u0442\u043e\u0440\u0430\u044f \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0430 \u2014 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u0435 \u0432 \u0432\u0430\u043a\u0443\u0443\u043c\u0435. \u041e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u044b\u043c \u0442\u043e\u043b\u0447\u043a\u043e\u043c \u0441\u0442\u0430\u043b <a href=\"https:\/\/github.com\/timbrs\/amneziawg-mikrotik-c\" rel=\"noopener nofollow\"><strong>timbrs\/amneziawg-mikrotik-c<\/strong><\/a> \u0438 \u0441\u0442\u0430\u0442\u044c\u044f \u0435\u0433\u043e \u0430\u0432\u0442\u043e\u0440\u0430 <a href=\"https:\/\/habr.com\/ru\/articles\/1002824\/\" rel=\"noopener nofollow\"><strong>\u00ab\u041d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e: AmneziaWG \u0432 Mikrotik\u00bb<\/strong><\/a>. \u041c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u0430\u043c\u0430 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u0430\u044f \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f: \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e MikroTik \u0443\u0436\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u043e, \u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0439 \u0441\u043b\u043e\u0439. \u0412 <code>amneziawg-mikrotik-c<\/code> \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e WireGuard-\u043b\u043e\u0433\u0438\u043a\u0443 \u0432 RouterOS. \u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u2014 \u043c\u043d\u0435 \u043d\u0430\u0434\u043e\u0435\u043b\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0432\u0435\u0441\u0442\u0438 selective routing \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0435 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 IP-\u0441\u043f\u0438\u0441\u043a\u0438.<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u00ab\u0421\u0443\u0441\u0430\u043d\u0438\u043d\u00bb<\/h3>\n<p>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0447\u0442\u0438 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e\u0435. \u0414\u043b\u044f selective routing \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043b\u0435\u0441 \u0438\u0437 CDN, \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 DNS-\u043e\u0442\u0432\u0435\u0442\u043e\u0432, \u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0445\u0441\u044f IP, TCP, UDP, QUIC, \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u0442\u043a\u0430\u0437\u043e\u0432 \u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043f\u0443\u0442\u0435\u0439. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u0430\u043c\u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u044d\u0442\u043e\u0433\u043e \u043b\u0435\u0441\u0430: \u044d\u0442\u043e\u0442 \u0434\u043e\u043c\u0435\u043d \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0432 VPN, \u044d\u0442\u043e\u0442 IP \u0437\u0430\u043d\u043e\u0441\u0438\u043c \u0432 address-list, \u044d\u0442\u0443 \u043f\u043e\u0434\u0441\u0435\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c.<\/p>\n<p>Susanin \u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442. \u0423 \u043d\u0435\u0433\u043e \u043d\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u044b. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043b\u0438\u0435\u043d\u0442 \u0438\u0434\u0451\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u043c DIRECT-\u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u043c. \u0415\u0441\u043b\u0438 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0440\u043e\u0443\u0442\u0435\u0440 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0436\u0438\u0432\u0443\u0449\u0443\u044e \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0443 \u0438 \u0434\u0430\u0451\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u043f\u0440\u043e\u0439\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 VPN. \u0415\u0441\u043b\u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u043e\u0433, \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u0441\u044f. \u0415\u0441\u043b\u0438 \u043d\u0435 \u043f\u043e\u043c\u043e\u0433 \u2014 destination \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f DIRECT.<\/p>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c: \u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0439\u0442\u0438 \u043d\u0435 \u0442\u0443\u0434\u0430, \u043d\u043e \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u0437 \u043b\u0435\u0441\u0430 \u043f\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u043b\u0435\u0434\u0430\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439, \u0430 \u043d\u0435 \u043f\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0430\u0442\u043b\u0430\u0441\u0443.<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 \u043c\u0435\u043d\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0438 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438<\/h3>\n<p>\u041c\u043e\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u043e\u0431\u044b\u0447\u043d\u043e\u0439: DNS static \u0441 <code>address-list=to_awg<\/code>, \u0437\u0430\u0442\u0435\u043c mangle \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f routing table \u0447\u0435\u0440\u0435\u0437 AmneziaWG. \u041e\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430, \u043f\u043e\u043a\u0430 \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u044b\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c. \u041f\u043e\u0442\u043e\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0430\u0447\u0430\u043b \u0436\u0438\u0442\u044c \u0441\u0432\u043e\u0435\u0439 \u0436\u0438\u0437\u043d\u044c\u044e.<\/p>\n<p>\u041d\u0430 \u043e\u0434\u043d\u043e\u043c \u0441\u0442\u0430\u0440\u043e\u043c backup \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c <strong>1185 DNS static \u0437\u0430\u043f\u0438\u0441\u0435\u0439<\/strong>, \u043f\u043b\u044e\u0441 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 IP \u0432 <code>to_awg<\/code>, \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0441\u043f\u0435\u0432\u0430\u043b\u0430 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 DNS. \u0421\u0430\u043c\u043e \u0447\u0438\u0441\u043b\u043e 1185 \u0434\u043b\u044f MikroTik \u043d\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u0442\u0430\u0441\u0442\u0440\u043e\u0444\u043e\u0439. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c: \u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0430\u043b\u0430.<\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0441\u0435\u0440\u0432\u0438\u0441 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e CDN-\u0443\u0437\u043b\u0430, \u0437\u0430\u0432\u0442\u0440\u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0433\u043e. \u041e\u0434\u0438\u043d hostname \u0432\u0435\u0434\u0451\u0442 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0442\u0435\u0439, \u043e\u0434\u0438\u043d IP \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u0430 QUIC\/UDP 443 \u0438 TCP\/443 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c destination \u043c\u043e\u0433\u0443\u0442 \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443. \u0418\u043d\u043e\u0433\u0434\u0430 \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0432\u0435\u0441\u044c \u0441\u0435\u0440\u0432\u0438\u0441, \u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0438\u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u0443\u0442\u044c. \u0418\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f, \u0430 IP \u0435\u0449\u0451 \u043c\u0435\u0441\u044f\u0446\u0430\u043c\u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043d\u0438\u043a\u0442\u043e \u0435\u0433\u043e \u043d\u0435 \u0443\u0434\u0430\u043b\u0438\u043b.<\/p>\n<p>\u0412 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0442\u0430\u043a: <strong>\u044f \u043f\u044b\u0442\u0430\u044e\u0441\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0443\u0433\u0430\u0434\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f<\/strong>.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/66f\/cda\/40d\/66fcda40d9e8ea7b4ee83137ab974c70.png\" alt=\"\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 \u0438 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/66f\/cda\/40d\/66fcda40d9e8ea7b4ee83137ab974c70.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/66f\/cda\/40d\/66fcda40d9e8ea7b4ee83137ab974c70.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 \u0438 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434<\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u0442\u0441\u044e\u0434\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c Susanin:<\/p>\n<pre><code>DIRECT \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442    \u2192 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044cDIRECT \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u043c    \u2192 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0442\u043e\u0442 \u0436\u0435 destination \u0447\u0435\u0440\u0435\u0437 VPNVPN \u043f\u043e\u043c\u043e\u0433    \u2192 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c VPN \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430VPN \u043d\u0435 \u043f\u043e\u043c\u043e\u0433    \u2192 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c DIRECT<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u0442 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u00ab\u043a\u0430\u043a\u043e\u0439 \u044d\u0442\u043e \u0441\u0430\u0439\u0442\u00bb. Susanin \u043d\u0435 \u0447\u0438\u0442\u0430\u0435\u0442 TLS SNI, \u043d\u0435 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u0435\u0442 HTTPS, \u043d\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 payload \u0438 \u043d\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u044e\u044e \u0431\u0430\u0437\u0443 \u0430\u0434\u0440\u0435\u0441\u043e\u0432. \u0415\u043c\u0443 \u0432\u0430\u0436\u043d\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f: \u0431\u044b\u043b \u043b\u0438 reply, \u043a\u0430\u043a \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f TCP state, \u0435\u0441\u0442\u044c \u043b\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043a \u0438 \u043f\u043e\u043c\u043e\u0433 \u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442.<\/p>\n<p>\u042d\u0442\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u0430\u044f \u0438 \u0441\u043b\u0430\u0431\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0430. \u0421\u0438\u043b\u044c\u043d\u0430\u044f \u2014 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u0421\u043b\u0430\u0431\u0430\u044f \u2014 \u043b\u044e\u0431\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u0432\u0440\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435: \u0437\u0430\u0432\u0438\u0441\u0448\u0438\u0439 TCP \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0430 \u043d\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e; \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u043e\u0439.<\/p>\n<h3>\u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432 RouterOS connection tracking<\/h3>\n<p>\u0414\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0438\u043b\u043e\u0442\u0430 \u044f \u0441\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0439 DPI \u0438\u043b\u0438 \u00abAI \u043f\u043e \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u00bb. \u0412 RouterOS \u0443\u0436\u0435 \u0435\u0441\u0442\u044c <code>\/ip firewall connection<\/code>, \u0433\u0434\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b source\/destination, protocol, TCP state, packet\/byte counters, reply counters, <code>seen-reply<\/code>, rates \u0438 connection marks. \u042d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043a\u0430\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u0441\u0438\u043c\u043f\u0442\u043e\u043c\u044b.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043b\u0438\u0435\u043d\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 TCP SYN, \u043d\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0435\u0442. \u0418\u043b\u0438 TCP \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0448\u0451\u043b \u0432 <code>established<\/code>, \u043e\u0434\u043d\u0430\u043a\u043e \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043a \u043f\u043e\u0447\u0442\u0438 \u043f\u0443\u0441\u0442. \u0414\u043b\u044f QUIC \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u0437\u043d\u0430\u043a UDP\/443 \u0431\u0435\u0437 reply. \u0415\u0441\u0442\u044c \u0438 \u0431\u043e\u043b\u0435\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b\u0435 late-stall \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0446\u0438\u043a\u043b\u043e\u0432 \u043f\u043e\u0434\u0440\u044f\u0434, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c destination \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432 \u0442\u0435\u0441\u0442.<\/p>\n<p>\u0412\u0430\u0436\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u0438 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0443. \u0421\u0430\u043c \u0444\u0430\u043a\u0442 <code>SYN \u0431\u0435\u0437 reply<\/code> \u043d\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u00ab\u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c IP \u0432 VPN\u00bb.<\/p>\n<h3>\u0427\u0435\u0442\u044b\u0440\u0435 worker-\u0430: FAST, SOFT, JUDGE \u0438 HEALTH<\/h3>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 data plane \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0435 RouterOS script, \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u0440\u043e\u043b\u044c\u044e.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/496\/862\/057\/496862057cb9cd90b9e2a7b1fcadff5b.png\" alt=\"\u041b\u043e\u0433\u0438\u043a\u0430 Susanin\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/496\/862\/057\/496862057cb9cd90b9e2a7b1fcadff5b.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/496\/862\/057\/496862057cb9cd90b9e2a7b1fcadff5b.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041b\u043e\u0433\u0438\u043a\u0430 Susanin<\/figcaption><\/div>\n<\/figure>\n<p><strong>FAST<\/strong> \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0438 \u043b\u043e\u0432\u0438\u0442 \u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u0441\u0438\u043c\u043f\u0442\u043e\u043c\u044b. \u0415\u0441\u043b\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, TCP SYN \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e reply, destination \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 <code>auto_awg_test_tcp<\/code>, \u0442\u0435\u043a\u0443\u0449\u0430\u044f conntrack-\u0437\u0430\u043f\u0438\u0441\u044c \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f, \u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0443\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c routing mark \u0432 VPN. \u0414\u043b\u044f UDP\/QUIC \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 test-\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u0412 \u043b\u043e\u0433\u0430\u0445 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code>AUTO-AWG: FAST TCP-SYN 203.0.113.10:443AUTO-AWG: FAST TCP-CLOSE 203.0.113.11:443AUTO-AWG: FAST QUIC 203.0.113.12:443<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>SOFT<\/strong> \u043d\u0443\u0436\u0435\u043d \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432\u0441\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043a\u0430\u043a \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 SYN-ACK. \u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c <code>established<\/code>, \u043d\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u0432\u0438\u0441\u043d\u0443\u0442\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 TCP stall \u0438 late stall \u0441 debounce \u0447\u0435\u0440\u0435\u0437 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 <code>watch<\/code>. \u041b\u043e\u0433\u0438\u043a\u0430 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u043e\u0434\u0438\u043d \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 snapshot conntrack:<\/p>\n<pre><code>AUTO-AWG: SOFT TCP-STALL 203.0.113.20:443AUTO-AWG: SOFT TCP-LATE-STALL 203.0.113.21:443<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>JUDGE<\/strong> \u2014 \u043a\u043b\u044e\u0447\u0435\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b. FAST \u0438 SOFT \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e: \u00abDIRECT \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u00bb. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u043e\u0432\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 VPN, \u0438 JUDGE \u0443\u0436\u0435 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442 \u0435\u0451 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u0415\u0441\u043b\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 reply \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f, destination \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d\u043d\u044b\u0439 cache \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043d\u0430 \u0448\u0435\u0441\u0442\u044c \u0447\u0430\u0441\u043e\u0432:<\/p>\n<pre><code>AUTO-AWG: CONFIRMED 203.0.113.30 via tcp:443AUTO-AWG: CONFIRMED 203.0.113.30 via udp:443<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 VPN \u0442\u043e\u0436\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c, destination \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 cooldown \u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f DIRECT. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c Susanin \u043d\u0435 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e IP \u00ab\u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u00bb; \u043e\u043d \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0443\u0437\u043a\u0438\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u043e\u043f\u0440\u043e\u0441: <strong>\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043b\u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043b\u0443\u0447\u0448\u0435 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441<\/strong>.<\/p>\n<p>TCP \u0438 UDP \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043e\u0431\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u041e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 IP \u043c\u043e\u0436\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e TCP\/443 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u043d\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c VPN \u0434\u043b\u044f QUIC\/UDP 443, \u0438\u043b\u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 <code>watch\/test\/ok\/cooldown<\/code> \u0441\u043f\u0438\u0441\u043a\u0438 \u0434\u043b\u044f TCP \u0438 UDP. \u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u043c\u0435\u044e\u0442 TTL, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0438\u0441\u0447\u0435\u0437\u0430\u044e\u0442 \u0438 \u043f\u0435\u0440\u0435\u0443\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f. \u042d\u0442\u043e \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: \u044f \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0447\u043d\u0443\u044e IP-\u0431\u0430\u0437\u0443 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0430\u0440\u043e\u0439.<\/p>\n<p><strong>HEALTH<\/strong> \u0440\u0435\u0448\u0430\u0435\u0442 \u0434\u0440\u0443\u0433\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443: \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0443\u043c\u0435\u0440 \u0441\u0430\u043c VPN. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c learned destinations \u0432 \u043c\u0451\u0440\u0442\u0432\u0443\u044e routing table, Susanin \u0441\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0441\u0442 outage. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u043b\u0435 \u0434\u0432\u0443\u0445 health miss managed mangle \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f:<\/p>\n<pre><code>AUTO-AWG: tunnel DOWN after 2 health misses, fallback to DIRECT<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e fail-open: \u043f\u043e\u0442\u0435\u0440\u044f VPN \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u0442\u0435\u0440\u044e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430. \u041a\u043e\u0433\u0434\u0430 tunnel \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f, HEALTH \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 adaptive routing \u043e\u0431\u0440\u0430\u0442\u043d\u043e:<\/p>\n<pre><code>AUTO-AWG: tunnel UP, recovery TCP=... UDP=...<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u0430 \u043b\u043e\u0433\u0438\u043a\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0430\u0441\u044c \u043f\u043e\u0441\u043b\u0435 reboot. RouterOS \u0443\u0441\u043f\u0435\u0432\u0430\u043b \u043f\u043e\u0434\u043d\u044f\u0442\u044c\u0441\u044f \u0440\u0430\u043d\u044c\u0448\u0435 VPN-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430, HEALTH \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0438\u0434\u0435\u043b tunnel DOWN \u0438 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b \u0442\u0440\u0430\u0444\u0438\u043a DIRECT, \u0430 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f VPN \u0441\u0430\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b recovery. \u041c\u043d\u0435 \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 boot-\u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438: \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0442\u0443\u043d\u043d\u0435\u043b\u044f, \u0430 \u043d\u0435 \u043d\u0430 \u0442\u0430\u0439\u043c\u0435\u0440.<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 data plane \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 RouterOS<\/h3>\n<p>\u041f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432\u0441\u0451 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440: \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0447\u0438\u0442\u0430\u0442\u044c conntrack \u0447\u0435\u0440\u0435\u0437 API, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 C \u0438 \u0441\u043d\u043e\u0432\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c state \u0432 RouterOS. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0445\u0443\u0436\u0435.<\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u043b\u0441\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0439 \u043f\u0443\u0442\u044c <code>RouterOS conntrack \u2192 API \u2192 container \u2192 decision \u2192 API \u2192 RouterOS firewall<\/code>. \u042d\u0442\u043e \u043b\u0438\u0448\u043d\u0438\u0435 round-trip, \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0440\u0435\u0430\u043a\u0446\u0438\u0438 \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c forwarding logic \u043e\u0442 controller.<\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c RouterOS \u0443\u0436\u0435 \u0443\u043c\u0435\u0435\u0442 connection tracking, scripts, schedulers, address-list timeout, mangle, routing-mark \u0438 FIB. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0441\u0442\u0430\u043b\u0430 \u0434\u0432\u0443\u0445\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u043e\u0439.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/10b\/051\/cda\/10b051cdad3d12d6da1b67770ed90964.png\" alt=\"\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 Susanin\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/10b\/051\/cda\/10b051cdad3d12d6da1b67770ed90964.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/10b\/051\/cda\/10b051cdad3d12d6da1b67770ed90964.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 Susanin<\/figcaption><\/div>\n<\/figure>\n<p>Data plane \u0436\u0438\u0432\u0451\u0442 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 RouterOS \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0431\u0435\u0437 API. C11-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u2014 \u044d\u0442\u043e control plane: \u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442 discovery, setup, \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 scripts, \u0432\u0430\u043b\u0438\u0434\u0438\u0440\u0443\u0435\u0442 \u0438\u0445, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 fresh install, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 status \u0438 \u0443\u043c\u0435\u0435\u0442 structural reconciliation \u0438 stage\/promote\/rollback \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439.<\/p>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u0447\u0435\u0440\u0435\u0437 Susanin container \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442. \u0415\u0441\u043b\u0438 controller \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, RouterOS data plane \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u044d\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u043e: controller \u044f \u0437\u0430\u043c\u0435\u043d\u044f\u043b \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437, \u0430 \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u043e\u0433\u043b\u0430 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0436\u0438\u0442\u044c.<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 C11<\/h3>\n<p>C \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e \u0441\u0430\u043c\u043e\u0439 \u0438\u0434\u0435\u0438. \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 Go, Rust \u0438\u043b\u0438 Python. \u042f \u0432\u044b\u0431\u0440\u0430\u043b C11 \u0438\u0437-\u0437\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e runtime footprint, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u044f \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u043c. \u041f\u043b\u044e\u0441 \u044d\u0442\u043e \u0431\u044b\u043b \u043f\u043e\u0432\u043e\u0434 \u0441\u0430\u043c\u043e\u043c\u0443 \u0433\u043b\u0443\u0431\u0436\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 C.<\/p>\n<p>\u0421\u0430\u043c\u0430\u044f \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0434\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043d\u0435 \u0432 \u044d\u0432\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u0445, \u0430 \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 RouterOS scripting, RouterOS API \u0438 container runtime. \u0412 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0435\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 RouterOS API client \u043d\u0430 C, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f discovery, inventory, read-back, temporary validation objects, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 status. \u0418 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043c \u043d\u0430\u0448\u0451\u043b\u0441\u044f \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0431\u0430\u0433\u043e\u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<h3>Credentialless bootstrap<\/h3>\n<p>\u0420\u0430\u043d\u043d\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 Susanin \u0431\u044b\u043b\u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u043c API client \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 \u0432\u0440\u043e\u0434\u0435:<\/p>\n<pre><code>ROUTER_HOST=...ROUTER_USER=...ROUTER_PASSWORD=...<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438 \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0431\u044b\u043b \u043f\u043b\u043e\u0445\u0438\u043c. \u0415\u0441\u043b\u0438 \u0446\u0435\u043b\u044c \u2014 \u00ab\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430, \u0432\u044b\u0431\u0440\u0430\u0442\u044c VPN \u0438 \u0433\u043e\u0442\u043e\u0432\u043e\u00bb, \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c API user, \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c, \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0438 \u0437\u0430\u0442\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u044c credentials \u0432 env. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0440\u0430\u043d\u043d\u0438\u0445 \u0441\u0445\u0435\u043c \u0441\u0442\u0430\u0440\u044b\u0439 credential \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0432 RouterOS log, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0443\u0431\u0440\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 credentials \u0438\u0437 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/602\/3ad\/09a\/6023ad09a4b4fe19b342a264f5e9de50.png\" alt=\"Credentialless bootstrap\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/602\/3ad\/09a\/6023ad09a4b4fe19b342a264f5e9de50.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/602\/3ad\/09a\/6023ad09a4b4fe19b342a264f5e9de50.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>Credentialless bootstrap<\/figcaption><\/div>\n<\/figure>\n<p><code>install.rsc<\/code> \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \/30 \u0441\u0435\u0442\u044c: RouterOS \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 <code>172.31.254.1\/30<\/code>, \u0430 container \u2014 <code>172.31.254.2\/30<\/code>. \u0417\u0430\u0442\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 admin-owned worker \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 secret \u0434\u043b\u0438\u043d\u043e\u0439 48 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043f\u0438\u0448\u0435\u0442 \u0435\u0433\u043e \u0432 RouterOS file, \u0447\u0438\u0442\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440, \u0434\u043b\u0438\u043d\u0443 \u0438 \u0442\u043e\u0447\u043d\u043e\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435. \u0422\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 <code>susanin-agent<\/code>, \u0430 secret \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 container \u043a\u0430\u043a <code>\/run\/secrets\/routeros_password<\/code>.<\/p>\n<p>\u0414\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0439 \u0430\u0433\u0435\u043d\u0442 \u0438\u043c\u0435\u0435\u0442 <code>read,write,test,api<\/code> \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d \u0430\u0434\u0440\u0435\u0441\u043e\u043c <code>172.31.254.2\/32<\/code>. Secret \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 container env \u0438\u043b\u0438 argv. \u0421\u0435\u0439\u0447\u0430\u0441 controller \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 RouterOS API TCP\/8728 \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0439 \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \/30 \u0441\u0435\u0442\u0438 \u0441 \u0443\u0437\u043a\u0438\u043c firewall rule; API-SSL \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0431\u0443\u0434\u0443\u0449\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 hardening.<\/p>\n<h3>\u0427\u0435\u0442\u044b\u0440\u0435 \u0433\u0440\u0430\u0431\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u0438\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0447\u0435\u043c \u0441\u0430\u043c\u0430 \u0438\u0434\u0435\u044f<\/h3>\n<h4>Secret-\u0444\u0430\u0439\u043b \u0432\u043d\u0443\u0442\u0440\u0438 \/import<\/h4>\n<p>\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 \u0438\u0437 terminal \u0438\u043b\u0438 <code>\/system script<\/code> \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b 48-\u0431\u0430\u0439\u0442\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0435\u0433\u043e \u043e\u0431\u0440\u0430\u0442\u043d\u043e:<\/p>\n<pre><code>generated-len=48file-size=48read-len=48equal=true<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u043e \u0442\u0430 \u0436\u0435 \u043b\u043e\u0433\u0438\u043a\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u043b\u0438\u043d\u043d\u043e\u0433\u043e <code>\/import<\/code> \u0438\u043d\u043e\u0433\u0434\u0430 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0430 0-byte file. \u0412\u043c\u0435\u0441\u0442\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0431\u043e\u0440\u044c\u0431\u044b \u0441 import runtime bootstrap \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0435\u043d: <code>\/import<\/code> \u0442\u0435\u043f\u0435\u0440\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u0442 temporary worker, \u0430 \u0441\u0430\u043c worker \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 secret generation, write \u0438 read-back verification \u0443\u0436\u0435 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 RouterOS script. \u0415\u0441\u043b\u0438 verification \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442, \u043f\u0430\u0440\u043e\u043b\u044c machine account \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f.<\/p>\n<h4>\u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0430\u044f \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0430 container<\/h4>\n<p><code>\/container add file=...<\/code> \u043d\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043e\u0431\u0440\u0430\u0437 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432. \u0412\u043e \u0432\u0440\u0435\u043c\u044f extraction \u0443 container \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u0435 <code>tag<\/code>, <code>os<\/code> \u0438 <code>arch<\/code>, \u0445\u043e\u0442\u044f <code>root-dir<\/code> \u0443\u0436\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d. \u041e\u0434\u043d\u0430 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f worker \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u043b\u0430 \u0442\u0430\u043a\u043e\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u0430\u043a \u0441\u0442\u0430\u0440\u044b\u0439 container, \u0443\u0434\u0430\u043b\u044f\u043b\u0430 \u0435\u0433\u043e \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0430 \u0432\u0441\u0451 \u0437\u0430\u043d\u043e\u0432\u043e. \u041f\u043e\u043b\u0443\u0447\u0430\u043b\u0441\u044f \u0446\u0438\u043a\u043b <code>add \u2192 extracting \u2192 tag empty \u2192 remove \u2192 add<\/code>.<\/p>\n<p>\u0424\u0438\u043a\u0441 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c: in-progress target \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e versioned <code>root-dir<\/code>, \u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 <code>tag<\/code> \u0438 <code>arch<\/code> \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f extraction. \u0414\u043b\u044f v0.11.3 \u043e\u0436\u0438\u0434\u0430\u044e\u0442\u0441\u044f <code>root-dir=\/susanin-controller-v0113<\/code>, <code>tag=0.11.3<\/code>, <code>arch=arm64<\/code>.<\/p>\n<h4>\u0412\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 RouterOS API<\/h4>\n<p>\u041d\u0430 \u043e\u0434\u043d\u043e\u043c clean backup \u0441\u0435\u0440\u0432\u0438\u0441 API \u0431\u044b\u043b \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d. Bootstrap \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c <code>disabled<\/code> \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0438 \u0443\u0441\u043b\u043e\u0432\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441, \u043d\u043e \u0432 import context \u044d\u0442\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043d\u0435 \u0442\u0430\u043a, \u043a\u0430\u043a \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c. \u0421\u0435\u0442\u044c container\u2194RouterOS \u0431\u044b\u043b\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0436\u0438\u0432\u0430, \u0430 Susanin \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u043f\u0438\u0441\u0430\u043b <code>Cannot connect to RouterOS API at 172.31.254.1:8728<\/code>.<\/p>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 bootstrap \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 idempotent:<\/p>\n<pre><code>\/ip service enable [find where name=\"api\"]<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0435\u0440\u0432\u0438\u0441 \u0443\u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0451\u043d, \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u043b\u043e\u0445\u043e\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442.<\/p>\n<h4>!empty \u2014 \u043d\u0435 \u043a\u043e\u043d\u0435\u0446 \u043e\u0442\u0432\u0435\u0442\u0430 RouterOS API<\/h4>\n<p>\u0410 \u044d\u0442\u043e \u0431\u044b\u043b \u0443\u0436\u0435 \u043c\u043e\u0439 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 C-\u0431\u0430\u0433. \u041d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c \u0440\u043e\u0443\u0442\u0435\u0440\u0435 inventory-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0447\u0430\u0441\u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0442, \u0438 RouterOS API \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0440\u043d\u0443\u0442\u044c:<\/p>\n<pre><code>!empty!done<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u043b\u0438\u0435\u043d\u0442 \u043e\u0448\u0438\u0431\u043e\u0447\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u043b <code>!empty<\/code> \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 <code>!done<\/code> \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0441\u044f \u0432 TCP stream \u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u043b\u0441\u044f \u0437\u0430 \u043a\u043e\u043d\u0435\u0446 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430. \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0443\u0441\u0442\u044b\u0445 lookup API session \u0440\u0430\u0441\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0430\u0441\u044c.<\/p>\n<p>\u0418\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e standalone <code>susanin render<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430 \u0441\u0432\u0435\u0436\u0435\u0439 session, \u0430 <code>install --dry-run<\/code> \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 <code>0\/16<\/code> \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u0441\u043e\u043e\u0431\u0449\u0430\u043b, \u0447\u0442\u043e \u0432 <code>LAN<\/code> \u043d\u0435\u0442 usable interfaces, \u0445\u043e\u0442\u044f <code>discover<\/code> \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0432\u0438\u0434\u0435\u043b <code>bridge-LAN<\/code> \u0438 <code>192.168.1.1\/24<\/code>.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/7ea\/a9a\/104\/7eaa9a10425725ba0276f6dc3a035d77.png\" alt=\"RouterOS API framing\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/7ea\/a9a\/104\/7eaa9a10425725ba0276f6dc3a035d77.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/7ea\/a9a\/104\/7eaa9a10425725ba0276f6dc3a035d77.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>RouterOS API framing<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0444\u0438\u043a\u0441\u0430 \u0441\u043c\u044b\u0441\u043b \u0441\u0442\u0430\u043b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c: <code>!empty<\/code> \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043f\u0443\u0441\u0442\u043e\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043d\u043e command stream \u0432\u0441\u0435\u0433\u0434\u0430 \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e <code>!done<\/code>. \u0422\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e clean dry-run \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0447\u0430\u043b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c <code>READY FOR FRESH INSTALL<\/code>.<\/p>\n<h3>Fresh install \u043a\u0430\u043a \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f<\/h3>\n<p>Installer \u044f \u0441\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u0441\u0442\u0438\u043b\u0435 \u00ab\u0443\u0441\u043f\u0435\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0443 \u2014 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0439\u0442\u0435\u0441\u044c \u0441\u0430\u043c\u0438\u00bb.<\/p>\n<p>\u041d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c \u0440\u043e\u0443\u0442\u0435\u0440\u0435 Susanin \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u0432\u0438\u0434\u0435\u0442\u044c <code>0\/16<\/code> managed objects. \u0417\u0430\u0442\u0435\u043c \u043e\u043d \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442 desired source, \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 RouterOS script objects \u0438 \u0434\u0430\u0451\u0442 \u0441\u0430\u043c\u043e\u043c\u0443 RouterOS \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c syntax. Validators \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f production scripts, \u0438\u0445 source \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e fingerprints. Mangle \u0438 schedulers \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c\u0438, inventory \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f commit \u2014 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 data plane.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0434\u043e commit, Susanin \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0437\u0434\u0430\u043b \u0432 \u044d\u0442\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438.<\/p>\n<p>\u0415\u0441\u0442\u044c \u0442\u0440\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f. <code>0\/16<\/code> \u2014 \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d fresh install. <code>16\/16<\/code> \u2014 \u043f\u043e\u043b\u043d\u0430\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430, \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f. \u0427\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u0440\u043e\u0434\u0435 <code>7\/16<\/code> \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f blocker: controller \u043d\u0435 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0443\u0433\u0430\u0434\u0430\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0445\u043e\u0447\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c.<\/p>\n<p>\u041f\u0435\u0440\u0435\u0434 production commit generated scripts \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432\u0430\u043b\u0438\u0434\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0441\u0430\u043c\u0438\u043c RouterOS parser. \u0414\u043b\u044f \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 v0.11.3 fingerprints \u0431\u044b\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438:<\/p>\n<pre><code>auto-awg-health   3356 bytes  24fc884bbe4473dcauto-awg-fast     4780 bytes  17f96c5f8c6b94deauto-awg-detect   7387 bytes  af897abaf3841a18auto-awg-judge    5965 bytes  737624f7c52ad08a<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>\u0421\u0430\u043c\u044b\u0439 \u0432\u0430\u0436\u043d\u044b\u0439 \u0442\u0435\u0441\u0442: \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u0432 \u0441\u0442\u0430\u0440\u044b\u0439 backup<\/h3>\n<p>\u041a\u043e\u0433\u0434\u0430 v0.11.3 \u0443\u0436\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043f\u043e\u0432\u0435\u0440\u0445 \u043c\u043e\u0435\u0439 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0441\u044f \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441: \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0438 fresh install \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0438\u043b\u0438 \u044f \u0432\u0441\u0451 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e data plane?<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u044f \u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f \u043a \u0441\u0442\u0430\u0440\u043e\u043c\u0443 backup \u0438\u0437 \u044d\u043f\u043e\u0445\u0438 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432. \u0412 \u043d\u0451\u043c \u0431\u044b\u043b\u043e 1185 DNS static \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0441 <code>address-list=to_awg<\/code>, 74 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0441\u0430\u043c\u043e\u043c <code>to_awg<\/code> \u0438 \u0441\u0435\u043c\u044c \u0441\u0442\u0430\u0440\u044b\u0445 AWG mangle rules. Susanin \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e: scripts, schedulers \u0438 <code>AUTO-AWG<\/code> mangle \u0431\u044b\u043b\u0438 \u0440\u0430\u0432\u043d\u044b \u043d\u0443\u043b\u044e.<\/p>\n<p>\u042f \u0443\u0434\u0430\u043b\u0438\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0440\u044b\u0439 selective-routing \u0441\u043b\u043e\u0439, \u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0440\u0430\u0431\u043e\u0447\u0438\u0439 VPN, \u0435\u0433\u043e routing table \u0438 default route. \u041f\u043e\u0441\u043b\u0435 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u0447\u0435\u0441\u0442\u043d\u044b\u043c:<\/p>\n<pre><code>scripts=0schedulers=0managed-mangle=0susanin-safety=0<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u043d\u0430 MikroTik \u0431\u044b\u043b\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e <code>install.rsc<\/code> \u0438 <code>susanin.tar<\/code>. <code>install --dry-run<\/code> \u0443\u0432\u0438\u0434\u0435\u043b <code>0\/16<\/code> \u0438 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0438\u043b \u0442\u043e, \u0447\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c: \u0447\u0435\u0442\u044b\u0440\u0435 generated scripts, \u0447\u0435\u0442\u044b\u0440\u0435 schedulers, \u0432\u043e\u0441\u0435\u043c\u044c managed mangle rules \u0438 \u0442\u0440\u0438 safety bypass rules. \u041f\u043e\u0441\u043b\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0431\u043e\u0440\u0430 VPN \u0432 <code>setup<\/code> \u043f\u0440\u043e\u0448\u043b\u0438 validation, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438 commit.<\/p>\n<p>\u0424\u0438\u043d\u0430\u043b \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0442\u0430\u043a:<\/p>\n<pre><code>Fresh install result: SUCCESS  scripts=4 schedulers=4 mangle=8 safety=3  tunnel NAT=EXISTING  data-plane started<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/79b\/b02\/1ca\/79bb021cacf9a87b94cb21d16c12549e.png\" alt=\"\u0420\u0435\u0430\u043b\u044c\u043d\u044b\u0439 setup\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/79b\/b02\/1ca\/79bb021cacf9a87b94cb21d16c12549e.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/79b\/b02\/1ca\/79bb021cacf9a87b94cb21d16c12549e.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0420\u0435\u0430\u043b\u044c\u043d\u044b\u0439 setup<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 <code>status<\/code> \u043f\u043e\u043a\u0430\u0437\u0430\u043b <code>scripts=4\/4 schedulers=4\/4 mangle=8<\/code>, \u0430 <code>apply --dry-run<\/code> \u0434\u0430\u043b:<\/p>\n<pre><code>KEEP=16 CREATE=0 UPDATE=0 BLOCKERS=0Result: IN SYNC structurally.<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/42a\/a77\/e19\/42aa77e19c536a57feb6a772d72174f2.png\" alt=\"\u0420\u0435\u0430\u043b\u044c\u043d\u044b\u0439 status\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/\/post_images\/42a\/a77\/e19\/42aa77e19c536a57feb6a772d72174f2.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/42a\/a77\/e19\/42aa77e19c536a57feb6a772d72174f2.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0420\u0435\u0430\u043b\u044c\u043d\u044b\u0439 status<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b MikroTik. Controller \u0441\u043d\u043e\u0432\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u043d\u044f\u043b\u0441\u044f, schedulers \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043b\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0442\u044c <code>RUN-COUNT<\/code>, \u0430 dynamic cache \u043d\u0430\u0447\u0430\u043b \u043e\u0431\u0443\u0447\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u043d\u043e\u0432\u043e. \u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430 \u044f \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0445\u043e\u0442\u044f \u0431\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c \u043b\u044e\u0434\u044f\u043c.<\/p>\n<h3>\u041a\u0430\u043a \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c Susanin<\/h3>\n<p>\u041d\u0438\u0436\u0435 \u2014 \u043f\u043e\u043b\u043d\u0430\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f \u0447\u0430\u0441\u0442\u044c, \u043d\u043e \u043e\u043d\u0430 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b.<\/p>\n<p>\u0422\u0435\u043a\u0443\u0449\u0438\u0439 pilot release \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c: <a href=\"https:\/\/github.com\/Fiark\/susanin\/releases\/tag\/v0.11.3\" rel=\"noopener nofollow\"><strong>https:\/\/github.com\/Fiark\/susanin\/releases\/tag\/v0.11.3<\/strong><\/a>. \u0421\u0435\u0439\u0447\u0430\u0441 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u2014 ARM64 MikroTik \u0438 RouterOS 7.23.x; \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u043d\u0430 7.23.3. \u041d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d package <code>container<\/code>, \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d container device-mode, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c interface-list <code>LAN<\/code> \u0441 IPv4-\u0441\u0435\u0442\u044c\u044e \u0438 \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c route-based VPN\/tunnel \u0441 IPv4 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435. Susanin \u0441\u0430\u043c VPN \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u0442.<\/p>\n<p>\u041f\u0435\u0440\u0435\u0434 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 backup:<\/p>\n<pre><code>\/system backup save name=before-susanin\/export file=before-susanin<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443, package\/container mode, LAN \u0438 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 tunnel:<\/p>\n<pre><code>\/system resource print\/system package print where name=\"container\"\/system device-mode print\/interface list member print detail where list=\"LAN\"\/ip address print detail\/interface print detail\/routing table print\/ip route print detail<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418\u0437 Assets release \u043d\u0443\u0436\u043d\u044b \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430:<\/p>\n<pre><code>susanin.tarinstall.rsc<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0438\u0445 \u0432 MikroTik Files \u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0433\u043e\u043d\u0438\u0442\u0435 parser dry-run:<\/p>\n<pre><code>\/import file-name=install.rsc verbose=yes dry-run<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 \u043a\u043e\u043d\u0446\u0435 \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f:<\/p>\n<pre><code>No syntax errors found in the import file<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f bootstrap:<\/p>\n<pre><code>\/import file-name=install.rsc verbose=yes<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u043e \u0432\u0440\u0435\u043c\u044f extraction container \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0444\u043b\u0430\u0433 <code>E<\/code>. \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043d\u0443\u0436\u0435\u043d <code>R<\/code>:<\/p>\n<pre><code>\/container print detail where name=\"susanin-controller\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f v0.11.3 \u043e\u0436\u0438\u0434\u0430\u044e\u0442\u0441\u044f <code>tag=\"0.11.3\"<\/code> \u0438 <code>arch=\"arm64\"<\/code>.<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 controller \u0437\u0430\u043f\u0443\u0449\u0435\u043d, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f setup:<\/p>\n<pre><code>\/container\/shell susanin-controller \\    cmd=\"\/usr\/local\/bin\/susanin setup\" \\    no-sh \\    timeout=300<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>Susanin \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 route-based tunnel interfaces \u0438 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043e\u0434\u0438\u043d. \u0415\u0441\u043b\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f routing table \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e egress \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, controller \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0435\u0451 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438; \u0435\u0441\u043b\u0438 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043d\u0435\u0442, fresh installer \u0443\u043c\u0435\u0435\u0442 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e FIB table\/default route.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c:<\/p>\n<pre><code>\/container\/shell susanin-controller \\    cmd=\"\/usr\/local\/bin\/susanin status\" \\    no-sh \\    timeout=60<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0438 \u0437\u0430\u0442\u0435\u043c:<\/p>\n<pre><code>\/container\/shell susanin-controller \\    cmd=\"\/usr\/local\/bin\/susanin apply --dry-run\" \\    no-sh \\    timeout=60<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435:<\/p>\n<pre><code>Summary: scripts=4\/4 schedulers=4\/4 mangle=8Installation state: detectedKEEP=16 CREATE=0 UPDATE=0 BLOCKERS=0Result: IN SYNC structurally.<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>\u041a\u0430\u043a \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0442\u043e \u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442<\/h3>\n<p>Black box routing \u043c\u043d\u0435 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u043d\u044b \u043f\u0440\u044f\u043c\u043e \u0432 RouterOS log:<\/p>\n<pre><code>\/log print follow-only where message~\"AUTO-AWG:\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043c \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f FAST\/SOFT-\u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f <code>CONFIRMED<\/code> \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b <code>tunnel DOWN<\/code> \/ <code>tunnel UP<\/code>. Learned cache \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0447\u0435\u0440\u0435\u0437:<\/p>\n<pre><code>\/ip firewall address-list print where list~\"auto_awg_\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 schedulers \u0438 mangle:<\/p>\n<pre><code>\/system scheduler print where name~\"auto-awg-\"\/ip firewall mangle print where comment~\"^AUTO-AWG:|^SUSANIN:\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f control plane \u043f\u043e\u043b\u0435\u0437\u043d\u044b:<\/p>\n<pre><code>\/container print detail where name=\"susanin-controller\"\/ip service print detail where name=\"api\"\/log print where message~\"SUSANIN:\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u0430\u043c controller \u0442\u0430\u043a\u0436\u0435 \u0443\u043c\u0435\u0435\u0442 <code>discover<\/code>, <code>render<\/code>, <code>status<\/code> \u0438 <code>install --dry-run<\/code>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 setup \u043d\u0435 \u0432\u0438\u0434\u0438\u0442 LAN \u0438\u043b\u0438 tunnel, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c:<\/p>\n<pre><code>\/container\/shell susanin-controller \\    cmd=\"\/usr\/local\/bin\/susanin discover\" \\    no-sh \\    timeout=60<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e scripts:<\/p>\n<pre><code>\/container\/shell susanin-controller \\    cmd=\"\/usr\/local\/bin\/susanin render\" \\    no-sh \\    timeout=60<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>\u0427\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435<\/h3>\n<p>Control plane \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <code>bridge-susanin<\/code>, <code>veth-susanin<\/code>, \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0441\u0435\u0442\u044c <code>172.31.254.0\/30<\/code>, restricted account <code>susanin-agent<\/code>, \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 <code>susanin-secrets<\/code> \u0438 <code>susanin-data<\/code>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u0430\u043c <code>susanin-controller<\/code>.<\/p>\n<p>Data plane \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 scripts (<code>auto-awg-health<\/code>, <code>auto-awg-fast<\/code>, <code>auto-awg-detect<\/code>, <code>auto-awg-judge<\/code>), \u0447\u0435\u0442\u044b\u0440\u0451\u0445 schedulers, \u0432\u043e\u0441\u044c\u043c\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 managed mangle rules, \u0442\u0440\u0451\u0445 safety bypass rules \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 <code>auto_awg_*<\/code> address lists.<\/p>\n<p>\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 namespace <code>AUTO-AWG<\/code> \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e. \u041f\u0440\u043e\u0435\u043a\u0442 \u0432\u044b\u0440\u043e\u0441 \u0438\u0437 \u043c\u043e\u0435\u0439 \u0441\u0442\u0430\u0440\u043e\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0445\u0435\u043c\u044b, \u0438 \u0434\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u044f \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c installer, namespace \u0438 migration. \u041f\u043e\u0437\u0436\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043a \u0447\u0438\u0441\u0442\u043e\u043c\u0443 <code>SUSANIN<\/code>, \u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e data plane.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u043b\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e tunnel \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 masquerade, installer \u0441\u0442\u0430\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442. \u041d\u0430 \u043c\u043e\u0451\u043c clean install \u043e\u043d \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b <code>tunnel NAT=EXISTING<\/code>.<\/p>\n<h3>\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>\u041f\u043e\u043a\u0430 pilot-\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 controller \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e: \u0441\u0434\u0435\u043b\u0430\u0442\u044c backup, \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c <code>susanin.tar<\/code> \u0438 <code>install.rsc<\/code>, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c dry-run \u0438\u043c\u043f\u043e\u0440\u0442\u0430, \u0437\u0430\u0442\u0435\u043c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 import, \u0434\u043e\u0436\u0434\u0430\u0442\u044c\u0441\u044f <code>R<\/code> \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c <code>status<\/code>\/<code>apply --dry-run<\/code>. Data plane \u0436\u0438\u0432\u0451\u0442 \u0432 RouterOS \u0438 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043c\u0435\u043d\u044b controller.<\/p>\n<p>\u0412 release \u0442\u0430\u043a\u0436\u0435 \u043b\u0435\u0436\u0430\u0442 \u0434\u0432\u0430 uninstall script. <code>uninstall.rsc<\/code> \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f Susanin controller \u0438 managed data plane. <code>uninstall-controller.rsc<\/code> \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e control plane \u0438 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 RouterOS data plane \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e:<\/p>\n<pre><code>\/import file-name=uninstall.rsc<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0438\u043b\u0438:<\/p>\n<pre><code>\/import file-name=uninstall-controller.rsc<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>Security model<\/h3>\n<p>\u0414\u043b\u044f pilot-\u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e \u043f\u043b\u043e\u0445\u0438\u0445 \u0432\u0435\u0449\u0435\u0439 \u0441 credentials. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u0432\u0432\u043e\u0434\u0438\u0442 RouterOS API password. Long-lived <code>susanin-agent<\/code> \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d \u043f\u0440\u0430\u0432\u0430\u043c\u0438 \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u043c source IP, \u0430 secret \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 <code>susanin-secrets\/routeros_password<\/code> \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a <code>\/run\/secrets\/routeros_password<\/code>.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e bootstrap \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 elevated helpers \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u0441\u0447\u0435\u0437\u043d\u0443\u0442\u044c. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c:<\/p>\n<pre><code>\/system scheduler print where name~\"susanin-bootstrap-\"\/system script print where name~\"susanin-bootstrap-\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0431\u0430 \u0432\u044b\u0432\u043e\u0434\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u043c\u0438.<\/p>\n<p>\u0412 GitHub \u0435\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 <code>SECURITY.md<\/code>, \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b private vulnerability reporting \u0438 secret scanning. \u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 issue \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c RouterOS <code>.backup<\/code>, <code>show-sensitive<\/code>, private\/preshared keys, VPN credentials \u0438\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 secret-\u0444\u0430\u0439\u043b\u0430.<\/p>\n<h3>\u0427\u0442\u043e \u0443\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e \u0438 \u0447\u0442\u043e \u0435\u0449\u0451 \u043d\u0435\u0442<\/h3>\n<p>\u041d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c ARM64 MikroTik \u0441 RouterOS 7.23.3 \u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b credentialless bootstrap, \u0437\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u0438 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u043c API, exact secret read-back verification, container extraction\/start, cleanup temporary helpers, LAN \u0438 tunnel discovery, routing table auto-detection, RouterOS-side source validation, clean install <code>0\/16 \u2192 16\/16<\/code>, TCP\/UDP learning, fail-open DIRECT, VPN recovery, reboot \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u0443\u044e structural reconciliation.<\/p>\n<p>\u041d\u043e \u044d\u0442\u043e \u0432\u0441\u0451 \u0435\u0449\u0451 <strong>\u043d\u0435 production-ready \u043f\u0440\u043e\u0434\u0443\u043a\u0442<\/strong>. \u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u0434\u0440\u0443\u0433\u0438\u0435 ARM64-\u043c\u043e\u0434\u0435\u043b\u0438, \u0440\u0430\u0437\u043d\u044b\u0435 RouterOS 7.x, multi-WAN, multi-VRF, \u0441\u043b\u043e\u0436\u043d\u044b\u0439 existing policy routing, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 VPN, \u0431\u043e\u043b\u044c\u0448\u0438\u0435 LAN, \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 uptime \u043c\u0435\u0441\u044f\u0446\u0430\u043c\u0438 \u0438 IPv6. \u041d\u0435 \u043d\u0430\u0431\u0440\u0430\u043d\u0430 \u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 false-positive\/false-negative \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u0445.<\/p>\n<p>\u0421\u0430\u043c\u0438 heuristics \u0442\u043e\u0436\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435. TCP stall \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0430 \u043d\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430. TEST + JUDGE \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u044e\u0442 \u0440\u0438\u0441\u043a \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043d\u043e \u043d\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u044d\u0432\u0440\u0438\u0441\u0442\u0438\u043a\u0443 \u0432 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e.<\/p>\n<h3>\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435<\/h3>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u043c\u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0435\u0449\u0451 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0436\u0438\u0432\u0451\u0442 \u043b\u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043c\u043e\u0435\u0433\u043e \u0440\u043e\u0443\u0442\u0435\u0440\u0430. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b \u0442\u0435\u0441\u0442\u044b \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 ARM64 MikroTik \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 RouterOS 7.23.x.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0443\u0436\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u0434\u0443\u043c\u0430\u0442\u044c \u043e configurable thresholds, API-SSL, \u0431\u043e\u043b\u0435\u0435 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e\u043c multi-LAN, IPv6, \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 telemetry-free \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0438 migration \u0441 \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e <code>AUTO-AWG<\/code> namespace.<\/p>\n<p>GitHub \u043f\u0440\u043e\u0435\u043a\u0442\u0430: <a href=\"https:\/\/github.com\/Fiark\/susanin\" rel=\"noopener nofollow\"><strong>https:\/\/github.com\/Fiark\/susanin<\/strong><\/a><br \/> Issues: <a href=\"https:\/\/github.com\/Fiark\/susanin\/issues\" rel=\"noopener nofollow\"><strong>https:\/\/github.com\/Fiark\/susanin\/issues<\/strong><\/a><\/p>\n<h3>\u0418\u0442\u043e\u0433<\/h3>\n<p>\u0412\u0441\u0451 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0441 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0431\u044b\u0442\u043e\u0432\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b: \u043c\u043d\u0435 \u043d\u0430\u0434\u043e\u0435\u043b\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0434\u043e\u043c\u0435\u043d \u0438\u043b\u0438 IP \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a.<\/p>\n<p>\u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u0440\u043e\u0441 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442: <strong>\u043f\u0443\u0441\u0442\u044c \u0440\u043e\u0443\u0442\u0435\u0440 \u0441\u0430\u043c \u0437\u0430\u043c\u0435\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043f\u0443\u0442\u044c \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u043c, \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0443<\/strong>.<\/p>\n<p>RouterOS \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u043c\u0435\u0441\u0442\u043e\u043c \u0434\u043b\u044f data plane, C-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u2014 \u0443\u0434\u043e\u0431\u043d\u044b\u043c control plane, \u0430 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043d\u0435 \u0432 \u0441\u0430\u043c\u043e\u0439 \u0438\u0434\u0435\u0435 adaptive routing, \u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0435\u0451 \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 MikroTik, \u043f\u0435\u0440\u0435\u0436\u0438\u0442\u044c reboot \u0438 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 VPN, \u043d\u0435 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438 \u043d\u0435 \u0440\u0430\u0441\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c RouterOS API stream.<\/p>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong>\u0421\u0443\u0441\u0430\u043d\u0438\u043d<\/strong>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u043d\u0435\u0433\u043e \u043d\u0435\u0442 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0433\u043e\u0442\u043e\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u043b\u0435\u0441\u0430. \u041e\u043d \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u043b\u0435\u0434\u0430\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043d\u0446\u043e\u0432 \u043d\u0430\u0439\u0442\u0438 \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0434\u043e\u0440\u043e\u0433\u0443.<\/p>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e <a href=\"https:\/\/github.com\/timbrs\/amneziawg-mikrotik-c\" rel=\"noopener nofollow\"><strong>timbrs\/amneziawg-mikrotik-c<\/strong><\/a> \u0438 \u0435\u0433\u043e \u0430\u0432\u0442\u043e\u0440\u0443. \u0411\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u044f, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0435\u0449\u0451 \u0434\u043e\u043b\u0433\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u043b \u0431\u044b \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0434\u043e\u043c\u0435\u043d \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a.<\/p>\n<p>\u0418 \u0434\u0430: ChatGPT \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u043c\u043d\u043e\u0433\u043e. \u042f \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0441\u043a\u0440\u044b\u0432\u0430\u044e. \u0414\u043b\u044f \u043c\u0435\u043d\u044f \u0437\u0434\u0435\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u043d\u0435 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u044f \u043c\u043e\u0433\u0443 \u043e\u0434\u0438\u043d \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 C, \u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439, \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u043c\u044b\u0439 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c\u044b\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u2014 \u0438 \u0447\u0435\u0441\u0442\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0438.<\/p>\n<hr\/>\n<p><strong>Disclaimer.<\/strong> \u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043f\u043e\u0441\u0432\u044f\u0449\u0451\u043d \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e\u0433\u043e \u0437\u0430\u043a\u043e\u043d\u043e\u0434\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b \u0432\u0430\u0448\u0438\u0445 \u0441\u0435\u0442\u0435\u0439\/\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432. \u041f\u0440\u043e\u0435\u043a\u0442 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439; \u043f\u0435\u0440\u0435\u0434 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0434\u0435\u043b\u0430\u0439\u0442\u0435 backup.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1076620\/\">https:\/\/habr.com\/ru\/articles\/1076620\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>TL;DR. \u042f \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u0438\u043b\u043e\u0442\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043b\u044f MikroTik RouterOS. \u041e\u043d\u0430 \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u00ab\u043a\u0430\u043a\u0438\u0435 \u0441\u0430\u0439\u0442\u044b \u043d\u0430\u0434\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 VPN\u00bb. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e RouterOS \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 connection tracking, \u0437\u0430\u043c\u0435\u0447\u0430\u0435\u0442 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u043d\u044b\u0435 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0442\u043e\u0442 \u0436\u0435 destination \u0447\u0435\u0440\u0435\u0437 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 route-based VPN\/tunnel \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442, \u043f\u043e\u043c\u043e\u0433 \u043b\u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0443\u0442\u044c. TCP \u0438 UDP \u043e\u0431\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u0430 \u043f\u0440\u0438 \u043f\u0430\u0434\u0435\u043d\u0438\u0438 VPN \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 fail-open DIRECT. \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0443\u0436\u043d\u044b susanin.tar \u0438 install.rsc, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e VPN-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.\u041f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u043a\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u0438\u043b\u043e\u0442\u043d\u044b\u0439. \u041f\u0443\u0431\u043b\u0438\u0447\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u2014 ARM64, \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u2014 RouterOS 7.23.3. \u041d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c MikroTik \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b clean install 0\/16 \u2192 16\/16, reboot, fail-open\/recovery, credentialless bootstrap \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u0430\u044f structural reconciliation. \u041f\u0435\u0440\u0435\u0434 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u0435\u043b\u0430\u0439\u0442\u0435 backup.\u0421\u0443\u0441\u0430\u043d\u0438\u043d\u0421\u0440\u0430\u0437\u0443 \u0434\u0432\u0435 \u0447\u0435\u0441\u0442\u043d\u044b\u0435 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0438. \u042f \u043d\u0435 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u0430 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0436\u0435\u043d\u0435\u0440 \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442 \u043f\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u0412 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438, firewall, conntrack, VPN \u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0435 \u044f \u0447\u0443\u0432\u0441\u0442\u0432\u0443\u044e \u0441\u0435\u0431\u044f \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0443\u0432\u0435\u0440\u0435\u043d\u043d\u0435\u0435, \u0447\u0435\u043c \u0432 production-C. \u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 Susanin \u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b ChatGPT: \u0434\u043b\u044f C-\u043a\u043e\u0434\u0430, \u0440\u0435\u0432\u044c\u044e, \u0440\u0430\u0437\u0431\u043e\u0440\u0430 RouterOS API, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0433\u0438\u043f\u043e\u0442\u0435\u0437 \u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u041d\u0435 \u0445\u043e\u0447\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0438\u0434, \u0447\u0442\u043e \u0432\u0441\u0451 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u043e\u0434\u0438\u043d\u043e\u0447\u043a\u0443 \u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e \u043f\u0430\u043c\u044f\u0442\u0438.\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0445\u0435\u043c\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u044b\u043b\u0430 \u043d\u0435 \u00ab\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u043a\u043e\u0434 \u0438 \u0432\u044b\u043b\u043e\u0436\u0438\u043b\u00bb. \u041f\u043e\u0447\u0442\u0438 \u043a\u0430\u0436\u0434\u0430\u044f \u0437\u0430\u043c\u0435\u0442\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u0430 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 MikroTik: \u0441\u0431\u043e\u0440\u043a\u0430, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430, \u043e\u0448\u0438\u0431\u043a\u0430, \u0430\u043d\u0430\u043b\u0438\u0437 \u043b\u043e\u0433\u043e\u0432 \u0438 RouterOS state, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0438\u043d\u043e\u0433\u0434\u0430 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0440\u043e\u0433\u043e backup \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u0439 clean install. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0431\u044b\u043b\u0438 \u043e\u0431\u044b\u0447\u043d\u044b\u043c\u0438 \u043c\u043e\u0438\u043c\u0438 \u0431\u0430\u0433\u0430\u043c\u0438, \u0434\u0440\u0443\u0433\u0438\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044f\u043c\u0438 RouterOS. \u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 C-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u043c, RouterOS scripting, API \u0438 container runtime \u0432 \u0438\u0442\u043e\u0433\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0441\u0430\u043c\u043e\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0438\u0434\u0435\u0438.\u0412\u0442\u043e\u0440\u0430\u044f \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0430 \u2014 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u0435 \u0432 \u0432\u0430\u043a\u0443\u0443\u043c\u0435. \u041e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u044b\u043c \u0442\u043e\u043b\u0447\u043a\u043e\u043c \u0441\u0442\u0430\u043b timbrs\/amneziawg-mikrotik-c \u0438 \u0441\u0442\u0430\u0442\u044c\u044f \u0435\u0433\u043e \u0430\u0432\u0442\u043e\u0440\u0430 \u00ab\u041d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e: AmneziaWG \u0432 Mikrotik\u00bb. \u041c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u0430\u043c\u0430 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u0430\u044f \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f: \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e MikroTik \u0443\u0436\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u043e, \u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0439 \u0441\u043b\u043e\u0439. \u0412 amneziawg-mikrotik-c \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e WireGuard-\u043b\u043e\u0433\u0438\u043a\u0443 \u0432 RouterOS. \u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u2014 \u043c\u043d\u0435 \u043d\u0430\u0434\u043e\u0435\u043b\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0432\u0435\u0441\u0442\u0438 selective routing \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0435 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 IP-\u0441\u043f\u0438\u0441\u043a\u0438.\u041f\u043e\u0447\u0435\u043c\u0443 \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u00ab\u0421\u0443\u0441\u0430\u043d\u0438\u043d\u00bb\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0447\u0442\u0438 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e\u0435. \u0414\u043b\u044f selective routing \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043b\u0435\u0441 \u0438\u0437 CDN, \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 DNS-\u043e\u0442\u0432\u0435\u0442\u043e\u0432, \u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0445\u0441\u044f IP, TCP, UDP, QUIC, \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u0442\u043a\u0430\u0437\u043e\u0432 \u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043f\u0443\u0442\u0435\u0439. \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u0430\u043c\u0438 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u044d\u0442\u043e\u0433\u043e \u043b\u0435\u0441\u0430: \u044d\u0442\u043e\u0442 \u0434\u043e\u043c\u0435\u043d \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0432 VPN, \u044d\u0442\u043e\u0442 IP \u0437\u0430\u043d\u043e\u0441\u0438\u043c \u0432 address-list, \u044d\u0442\u0443 \u043f\u043e\u0434\u0441\u0435\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c.Susanin \u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442. \u0423 \u043d\u0435\u0433\u043e \u043d\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u044b. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043b\u0438\u0435\u043d\u0442 \u0438\u0434\u0451\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u043c DIRECT-\u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u043c. \u0415\u0441\u043b\u0438 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0440\u043e\u0443\u0442\u0435\u0440 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0436\u0438\u0432\u0443\u0449\u0443\u044e \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0443 \u0438 \u0434\u0430\u0451\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u043f\u0440\u043e\u0439\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 VPN. \u0415\u0441\u043b\u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u043c\u043e\u0433, \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u0441\u044f. \u0415\u0441\u043b\u0438 \u043d\u0435 \u043f\u043e\u043c\u043e\u0433 \u2014 destination \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f DIRECT.\u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c: \u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0439\u0442\u0438 \u043d\u0435 \u0442\u0443\u0434\u0430, \u043d\u043e \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u0437 \u043b\u0435\u0441\u0430 \u043f\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u043b\u0435\u0434\u0430\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439, \u0430 \u043d\u0435 \u043f\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0430\u0442\u043b\u0430\u0441\u0443.\u041f\u043e\u0447\u0435\u043c\u0443 \u043c\u0435\u043d\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0438 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043a\u0438\u041c\u043e\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u043e\u0431\u044b\u0447\u043d\u043e\u0439: DNS static \u0441 address-list=to_awg, \u0437\u0430\u0442\u0435\u043c mangle \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f routing table \u0447\u0435\u0440\u0435\u0437 AmneziaWG. \u041e\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430, \u043f\u043e\u043a\u0430 \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u044b\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c. \u041f\u043e\u0442\u043e\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0430\u0447\u0430\u043b \u0436\u0438\u0442\u044c \u0441\u0432\u043e\u0435\u0439 \u0436\u0438\u0437\u043d\u044c\u044e.\u041d\u0430 \u043e\u0434\u043d\u043e\u043c \u0441\u0442\u0430\u0440\u043e\u043c backup \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c 1185 DNS static \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043f\u043b\u044e\u0441 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 IP \u0432 to_awg, \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0443\u0441\u043f\u0435\u0432\u0430\u043b\u0430 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 DNS. \u0421\u0430\u043c\u043e \u0447\u0438\u0441\u043b\u043e 1185 \u0434\u043b\u044f MikroTik \u043d\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u0442\u0430\u0441\u0442\u0440\u043e\u0444\u043e\u0439. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c: \u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0430\u043b\u0430.\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0441\u0435\u0440\u0432\u0438\u0441 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e CDN-\u0443\u0437\u043b\u0430, \u0437\u0430\u0432\u0442\u0440\u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0433\u043e. \u041e\u0434\u0438\u043d hostname \u0432\u0435\u0434\u0451\u0442 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0442\u0435\u0439, \u043e\u0434\u0438\u043d IP \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u0430 QUIC\/UDP 443 \u0438 TCP\/443 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c destination \u043c\u043e\u0433\u0443\u0442 \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443. \u0418\u043d\u043e\u0433\u0434\u0430 \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0432\u0435\u0441\u044c \u0441\u0435\u0440\u0432\u0438\u0441, \u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0438\u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u0443\u0442\u044c. \u0418\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f, \u0430 IP \u0435\u0449\u0451 \u043c\u0435\u0441\u044f\u0446\u0430\u043c\u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043d\u0438\u043a\u0442\u043e \u0435\u0433\u043e \u043d\u0435 \u0443\u0434\u0430\u043b\u0438\u043b.\u0412 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0442\u0430\u043a: \u044f \u043f\u044b\u0442\u0430\u044e\u0441\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0443\u0433\u0430\u0434\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f.\u0421\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 \u0438 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434\u041e\u0442\u0441\u044e\u0434\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c Susanin:DIRECT \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442    \u2192 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044cDIRECT \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u044b\u043c    \u2192 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0442\u043e\u0442 \u0436\u0435 destination \u0447\u0435\u0440\u0435\u0437 VPNVPN \u043f\u043e\u043c\u043e\u0433    \u2192 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c VPN \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430VPN \u043d\u0435 \u043f\u043e\u043c\u043e\u0433    \u2192 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c DIRECT\u0417\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u0442 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u00ab\u043a\u0430\u043a\u043e\u0439 \u044d\u0442\u043e \u0441\u0430\u0439\u0442\u00bb. Susanin \u043d\u0435 \u0447\u0438\u0442\u0430\u0435\u0442 TLS SNI, \u043d\u0435 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u044b\u0432\u0430\u0435\u0442 HTTPS, \u043d\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 payload \u0438 \u043d\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u044e\u044e \u0431\u0430\u0437\u0443 \u0430\u0434\u0440\u0435\u0441\u043e\u0432. \u0415\u043c\u0443 \u0432\u0430\u0436\u043d\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f: \u0431\u044b\u043b \u043b\u0438 reply, \u043a\u0430\u043a \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f TCP state, \u0435\u0441\u0442\u044c \u043b\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043a \u0438 \u043f\u043e\u043c\u043e\u0433 \u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442.\u042d\u0442\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u0430\u044f \u0438 \u0441\u043b\u0430\u0431\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0430. \u0421\u0438\u043b\u044c\u043d\u0430\u044f \u2014 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u0421\u043b\u0430\u0431\u0430\u044f \u2014 \u043b\u044e\u0431\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u0432\u0440\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435: \u0437\u0430\u0432\u0438\u0441\u0448\u0438\u0439 TCP \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0430 \u043d\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u0435\u0442\u0435\u043a\u0442\u043e\u0440\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e; \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u043e\u0439.\u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432 RouterOS connection tracking\u0414\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0438\u043b\u043e\u0442\u0430 \u044f \u0441\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0439 DPI \u0438\u043b\u0438 \u00abAI \u043f\u043e \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u00bb. \u0412 RouterOS \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \/ip firewall connection, \u0433\u0434\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b source\/destination, protocol, TCP state, packet\/byte counters, reply counters, seen-reply, rates \u0438 connection marks. \u042d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043a\u0430\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u0441\u0438\u043c\u043f\u0442\u043e\u043c\u044b.\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043b\u0438\u0435\u043d\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 TCP SYN, \u043d\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0435\u0442. \u0418\u043b\u0438 TCP \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0448\u0451\u043b \u0432 established, \u043e\u0434\u043d\u0430\u043a\u043e \u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u043f\u043e\u0442\u043e\u043a \u043f\u043e\u0447\u0442\u0438 \u043f\u0443\u0441\u0442. \u0414\u043b\u044f QUIC \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u0437\u043d\u0430\u043a UDP\/443 \u0431\u0435\u0437 reply. \u0415\u0441\u0442\u044c \u0438 \u0431\u043e\u043b\u0435\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b\u0435 late-stall \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0446\u0438\u043a\u043b\u043e\u0432 \u043f\u043e\u0434\u0440\u044f\u0434, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c destination \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432 \u0442\u0435\u0441\u0442.\u0412\u0430\u0436\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u0438 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0443. \u0421\u0430\u043c \u0444\u0430\u043a\u0442 SYN \u0431\u0435\u0437 reply \u043d\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u00ab\u043d\u0430\u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c IP \u0432 VPN\u00bb.\u0427\u0435\u0442\u044b\u0440\u0435 worker-\u0430: FAST, SOFT, JUDGE \u0438 HEALTH\u0412 \u0438\u0442\u043e\u0433\u0435 data plane \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0435 RouterOS script, \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u0440\u043e\u043b\u044c\u044e.\u041b\u043e\u0433\u0438\u043a\u0430 SusaninFAST \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0438 \u043b\u043e\u0432\u0438\u0442 \u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u0441\u0438\u043c\u043f\u0442\u043e\u043c\u044b. \u0415\u0441\u043b\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, TCP SYN \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e reply, destination \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 auto_awg_test_tcp, \u0442\u0435\u043a\u0443\u0449\u0430\u044f conntrack-\u0437\u0430\u043f\u0438\u0441\u044c \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f, \u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0443\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c routing mark \u0432 VPN. \u0414\u043b\u044f UDP\/QUIC \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 test-\u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u0412 \u043b\u043e\u0433\u0430\u0445 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:AUTO-AWG: FAST TCP-SYN 203.0.113.10:443AUTO-AWG: FAST TCP-CLOSE 203.0.113.11:443AUTO-AWG: FAST QUIC 203.0.113.12:443SOFT \u043d\u0443\u0436\u0435\u043d \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432\u0441\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043a\u0430\u043a \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 SYN-ACK. \u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c established, \u043d\u043e \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u0432\u0438\u0441\u043d\u0443\u0442\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 TCP stall \u0438 late stall \u0441 debounce \u0447\u0435\u0440\u0435\u0437 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 watch. \u041b\u043e\u0433\u0438\u043a\u0430 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u043e\u0434\u0438\u043d \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 snapshot conntrack:AUTO-AWG: SOFT TCP-STALL 203.0.113.20:443AUTO-AWG: SOFT TCP-LATE-STALL 203.0.113.21:443JUDGE \u2014 \u043a\u043b\u044e\u0447\u0435\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b. FAST \u0438 SOFT \u0433\u043e\u0432\u043e\u0440\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e: \u00abDIRECT \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u00bb. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u043e\u0432\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 VPN, \u0438 JUDGE \u0443\u0436\u0435 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442 \u0435\u0451 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u0415\u0441\u043b\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 reply \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f, destination \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d\u043d\u044b\u0439 cache \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043d\u0430 \u0448\u0435\u0441\u0442\u044c \u0447\u0430\u0441\u043e\u0432:AUTO-AWG: CONFIRMED 203.0.113.30 via tcp:443AUTO-AWG: CONFIRMED 203.0.113.30 via udp:443\u0415\u0441\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 VPN \u0442\u043e\u0436\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c, destination \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 cooldown \u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f DIRECT. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c Susanin \u043d\u0435 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e IP \u00ab\u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u00bb; \u043e\u043d \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0443\u0437\u043a\u0438\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u043e\u043f\u0440\u043e\u0441: \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043b\u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043b\u0443\u0447\u0448\u0435 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441.TCP \u0438 UDP \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043e\u0431\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u041e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 IP \u043c\u043e\u0436\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e TCP\/443 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u043d\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c VPN \u0434\u043b\u044f QUIC\/UDP 443, \u0438\u043b\u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 watch\/test\/ok\/cooldown \u0441\u043f\u0438\u0441\u043a\u0438 \u0434\u043b\u044f TCP \u0438 UDP. \u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u043c\u0435\u044e\u0442 TTL, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0438\u0441\u0447\u0435\u0437\u0430\u044e\u0442 \u0438 \u043f\u0435\u0440\u0435\u0443\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f. \u042d\u0442\u043e \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: \u044f \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0447\u043d\u0443\u044e IP-\u0431\u0430\u0437\u0443 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0430\u0440\u043e\u0439.HEALTH \u0440\u0435\u0448\u0430\u0435\u0442 \u0434\u0440\u0443\u0433\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443: \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0443\u043c\u0435\u0440 \u0441\u0430\u043c VPN. \u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c learned destinations \u0432 \u043c\u0451\u0440\u0442\u0432\u0443\u044e routing table, Susanin \u0441\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0441\u0442 outage. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u043b\u0435 \u0434\u0432\u0443\u0445 health miss managed mangle \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f:AUTO-AWG: tunnel DOWN after 2 health misses, fallback to DIRECT\u042d\u0442\u043e fail-open: \u043f\u043e\u0442\u0435\u0440\u044f VPN \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u0442\u0435\u0440\u044e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430. \u041a\u043e\u0433\u0434\u0430 tunnel \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f, HEALTH \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 adaptive routing \u043e\u0431\u0440\u0430\u0442\u043d\u043e:AUTO-AWG: tunnel UP, recovery TCP=&#8230; UDP=&#8230;\u042d\u0442\u0430 \u043b\u043e\u0433\u0438\u043a\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0430\u0441\u044c \u043f\u043e\u0441\u043b\u0435 reboot. RouterOS \u0443\u0441\u043f\u0435\u0432\u0430\u043b \u043f\u043e\u0434\u043d\u044f\u0442\u044c\u0441\u044f \u0440\u0430\u043d\u044c\u0448\u0435 VPN-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430, HEALTH \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0438\u0434\u0435\u043b tunnel DOWN \u0438 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b \u0442\u0440\u0430\u0444\u0438\u043a DIRECT, \u0430 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f VPN \u0441\u0430\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b recovery. \u041c\u043d\u0435 \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 boot-\u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438: \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0442\u0443\u043d\u043d\u0435\u043b\u044f, \u0430 \u043d\u0435 \u043d\u0430 \u0442\u0430\u0439\u043c\u0435\u0440.\u041f\u043e\u0447\u0435\u043c\u0443 data plane \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 RouterOS\u041f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432\u0441\u0451 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440: \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0447\u0438\u0442\u0430\u0442\u044c conntrack \u0447\u0435\u0440\u0435\u0437 API, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 C \u0438 \u0441\u043d\u043e\u0432\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c state \u0432 RouterOS. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0445\u0443\u0436\u0435.\u041f\u043e\u043b\u0443\u0447\u0430\u043b\u0441\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0439 \u043f\u0443\u0442\u044c RouterOS conntrack \u2192 API \u2192 container \u2192 decision \u2192 API \u2192 RouterOS firewall. \u042d\u0442\u043e \u043b\u0438\u0448\u043d\u0438\u0435 round-trip, \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f, \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0440\u0435\u0430\u043a\u0446\u0438\u0438 \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c forwarding logic \u043e\u0442 controller.\u041f\u0440\u0438 \u044d\u0442\u043e\u043c RouterOS \u0443\u0436\u0435 \u0443\u043c\u0435\u0435\u0442 connection tracking, scripts, schedulers, address-list timeout, mangle, routing-mark \u0438 FIB. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0441\u0442\u0430\u043b\u0430 \u0434\u0432\u0443\u0445\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u043e\u0439.\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 SusaninData plane \u0436\u0438\u0432\u0451\u0442 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 RouterOS \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0431\u0435\u0437 API. C11-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u2014 \u044d\u0442\u043e control plane: \u043e\u043d \u0434\u0435\u043b\u0430\u0435\u0442 discovery, setup, \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 scripts, \u0432\u0430\u043b\u0438\u0434\u0438\u0440\u0443\u0435\u0442 \u0438\u0445, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 fresh install, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 status \u0438 \u0443\u043c\u0435\u0435\u0442 structural reconciliation \u0438 stage\/promote\/rollback \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439.\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u0447\u0435\u0440\u0435\u0437 Susanin container \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442. &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-492904","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/492904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=492904"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/492904\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=492904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=492904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=492904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}