{"id":389151,"date":"2024-06-29T08:24:42","date_gmt":"2024-06-29T08:24:42","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=389151"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=389151","title":{"rendered":"<span>\u0421\u0430\u043c \u0441\u0435\u0431\u0435 \u0420\u041a\u041d \u0438\u043b\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0441 MikroTik (\u0447.2)<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/583868\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/il\/8t\/iy\/il8tiyzcdimd3tgzql_ahpavyxg.png\" data-src=\"https:\/\/habrastorage.org\/webt\/il\/8t\/iy\/il8tiyzcdimd3tgzql_ahpavyxg.png\"\/><\/div>\n<p><\/a><br \/>  \u0412\u0442\u043e\u0440\u0430\u044f \u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0432 \u0446\u0438\u043a\u043b\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u043d\u0430 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0438 MikroTik. <a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/583866\/\">\u0420\u0430\u043d\u0435\u0435 <\/a>\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f DNS, \u0440\u0430\u0431\u043e\u0442\u0430 Firewall Filter \u0438 Ip Kid-control. \u0412 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c Firewall Mangle, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043e\u0431\u0449\u0438\u0435 \u0437\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0441\u0442\u0430\u0442\u0435\u0439 \u0432\u044b\u0432\u043e\u0434\u044b, \u043a\u0430\u0441\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 RouterOS \u043f\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2><font color=\"#3AC1EF\">\u258d 1. Firewall Mangle<\/font><\/h2>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0435 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f. <a href=\"https:\/\/wiki.mikrotik.com\/wiki\/Manual:IP\/Firewall\/Mangle\">Firewall Mangle<\/a> \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0438\u0437\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u0443\u0440\u0441\u0435 MikroTik Certified Traffic Control Engineer (MTCTCE), \u0442\u0435\u043c\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0435\u043d\u043d\u043e\u0441\u0442\u0438. \u0420\u0430\u0437\u043c\u0435\u0442\u0438\u043c \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0447\u0435\u0440\u0435\u0437 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u0442\u0440\u0430\u0444\u0438\u043a:<\/p>\n<pre><code class=\"bash\">\/ip firewall mangle add action=mark-connection chain=prerouting comment=\"WAN=>LAN connections\" connection-nat-state=\"\" in-interface=WAN new-connection-mark=\"WAN=>LAN connections\" passthrough=yes add action=mark-packet chain=prerouting comment=\"WAN=>LAN packets\" connection-mark=\"WAN=>LAN connections\" new-packet-mark=\"WAN=>LAN packets\" passthrough=yes add action=mark-connection chain=forward comment=\"LAN=>WAN connections\" connection-mark=no-mark in-interface=bridge_home new-connection-mark=\"LAN=>WAN connections\" out-interface=WAN passthrough=yes add action=mark-packet chain=forward comment=\"LAN=>WAN packets\" connection-mark=\"LAN=>WAN connections\" new-packet-mark=\"LAN=>WAN packets\" passthrough=yes add action=mark-packet chain=forward comment=\"LAN=>WAN packets Children\" new-packet-mark=\"LAN=>WAN packets Children\" packet-mark=\"LAN=>WAN packets\" passthrough=yes src-address-list=children add action=mark-packet chain=postrouting comment=\"WAN=>LAN connections Children\" dst-address-list=children new-packet-mark=\"WAN=>LAN packets Children\" packet-mark=\"WAN=>LAN packets\" passthrough=yes <\/code><\/pre>\n<p>  \u0412 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u043e\u043d\u0438 \u043f\u043b\u043e\u0445\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u043c \u0438\u0445 \u043f\u043e \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0443. \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0442\u0440\u0430\u0444\u0438\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0440\u0430\u0437\u043c\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 (WAN => LAN) \u0438 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 (LAN => WAN).<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/un\/mq\/md\/unmqmdx_t6t4y6pdwamfzrsdick.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/un\/mq\/md\/unmqmdx_t6t4y6pdwamfzrsdick.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0442\u0430\u043a \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u0432\u0435\u0434\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0442\u0440\u0430\u0444\u0438\u043a, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u2013 \u044d\u0442\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439, \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. TCP \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u0442\u0438\u0432\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 UDP \u043f\u0430\u043a\u0435\u0442\u044b \u043a \u043d\u0430\u043c \u0438\u0434\u0443\u0442 \u0432 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u043d\u0430\u0448\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<p>  \u0418\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0442\u0440\u0430\u0444\u0438\u043a. \u0421\u0440\u0430\u0437\u0443 \u0431\u0443\u0434\u0435\u043c \u0432\u044b\u0434\u0435\u043b\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0442\u0441\u043a\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f. \u0412\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043c \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0435 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438: DNS, HTTPS, <a href=\"https:\/\/ru.wikipedia.org\/wiki\/QUIC\">QUIC<\/a> \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f. DNS \u0431\u0443\u0434\u0435\u043c \u043e\u0442\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0438 prerouting, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043c\u0435\u0447\u0430\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u0437\u0430\u0442\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u044b \u0432 \u044d\u0442\u0438\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0445:<\/p>\n<pre><code class=\"bash\">add action=mark-connection chain=prerouting comment=\"LAN=>WAN connections DNS Children\" connection-mark=no-mark dst-port=53 in-interface=bridge_home new-connection-mark=\"LAN=>WAN connections DNS Children\" passthrough=yes protocol=udp src-address-list=children add action=mark-packet chain=prerouting comment=\"LAN=>WAN packets DNS Children\" connection-mark=\"LAN=>WAN connections DNS Children\" new-packet-mark=\"LAN=>WAN packets DNS Children\" passthrough=yes <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0432 prerouting, \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0441\u0445\u0435\u043c\u0435 \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 MikroTik. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0438\u0441\u0443\u043d\u043a\u043e\u043c \u043e\u0442 \u044d\u0442\u043e\u0439 <a href=\"https:\/\/xn-----xlcfvffioc4g.xn--p1ai\">\u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438<\/a>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/mt\/jf\/gv\/mtjfgvmc-n-oqfjhrrftg7vb25u.png\" data-src=\"https:\/\/habrastorage.org\/webt\/mt\/jf\/gv\/mtjfgvmc-n-oqfjhrrftg7vb25u.png\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u043c DNS \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c (<i>\/ip dhcp-server network add address=10.0.0.0\/24 dns-server=10.0.0.1 gateway=10.0.0.1 netmask=24<\/i>) \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0432\u0430\u0448 \u0440\u043e\u0443\u0442\u0435\u0440, \u0442\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u043f\u043e\u0439\u0434\u0443\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u043a \u043d\u0435\u043c\u0443, \u0442. \u0435. \u0432 Input Interface. \u0414\u0430\u043b\u0435\u0435 \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0446\u0435\u043f\u043e\u0447\u043a\u043e\u0439 Forward. \u041f\u043e\u043c\u0435\u0447\u0430\u0435\u043c \u0432\u0441\u0435 \u0434\u0435\u0442\u0441\u043a\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f. \u0421\u0440\u0435\u0434\u0438 \u043d\u0438\u0445 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f HTTPS \u0438 QUIC:<\/p>\n<pre><code class=\"bash\">add action=mark-connection chain=forward comment=\"LAN=>WAN connections Children\" connection-mark=no-mark in-interface=bridge_home new-connection-mark=\"LAN=>WAN connections Children\" out-interface=WAN passthrough=yes src-address-list=children add action=mark-connection chain=forward comment=\"LAN=>WAN connections HTTPS Children\" connection-mark=\"LAN=>WAN connections Children\" dst-port=443 new-connection-mark=\"LAN=>WAN connections HTTPS Children\"  passthrough=yes protocol=tcp add action=mark-connection chain=forward comment=\"LAN=>WAN connections QUIC Children\" connection-mark=\"LAN=>WAN connections Children\" dst-port=443 new-connection-mark=\"LAN=>WAN connections QUIC Children\" passthrough=yes protocol=udp <\/code><\/pre>\n<p>  \u041e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u043f\u043e\u043c\u0435\u0447\u0430\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u044b \u0432 HTTPS \u0438 QUIC \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0445, \u0442\u0430\u043a \u043a\u0430\u043a \u043a \u043d\u0438\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438:<\/p>\n<pre><code class=\"bash\">add action=mark-packet chain=forward comment=\"LAN=>WAN packets Children HTTPS+QUIC\" connection-mark=\"LAN=>WAN connections HTTPS Children\" new-packet-mark=\"LAN=>WAN packets Children HTTPS+QUIC\" passthrough=yes add action=mark-packet chain=forward comment=\"LAN=>WAN packets Children HTTPS+QUIC\" connection-mark=\"LAN=>WAN connections QUIC Children\" new-packet-mark=\"LAN=>WAN packets Children HTTPS+QUIC\" passthrough=yes <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u043f\u0435\u0440\u0435\u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432. \u0414\u043b\u044f \u0447\u0435\u0433\u043e \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0434\u0430\u043b\u0435\u0435. \u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0438\u043c\u0435\u0435\u043c \u0432\u0441\u0435 \u0434\u0435\u0442\u0441\u043a\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u044b (HTTPS, QUIC, !HTTPS \u0438 !QUIC), \u0438\u0434\u0443\u0449\u0438\u0435 \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435 Forward:<\/p>\n<pre><code class=\"bash\">add action=mark-packet chain=forward comment=\"LAN=>WAN packets Children ALL\" connection-mark=\"LAN=>WAN connections Children\" new-packet-mark=\"LAN=>WAN packets Children ALL\" passthrough=yes add action=mark-packet chain=forward comment=\"LAN=>WAN packets Children ALL\" new-packet-mark=\"LAN=>WAN packets Children ALL\" packet-mark=\"LAN=>WAN packets Children HTTPS+QUIC\" passthrough=yes <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0441\u0430\u043c\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0435\u0440\u043a\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u0438\u0445 \u0440\u0443\u0447\u043d\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0432 Wireshark (\u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0440\u0438\u0435\u043c \u0442\u0440\u0430\u0444\u0438\u043a\u0430, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e <a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/576352\">\u0440\u0430\u043d\u0435\u0435<\/a>):<\/p>\n<pre><code class=\"bash\">add action=sniff-tzsp chain=forward comment=Sniffer_for_Test disabled=yes packet-mark=\"LAN=>WAN packets Children\"  sniff-target=192.168.1.1 sniff-target-port=37008<\/code><\/pre>\n<p>  \u0422\u0440\u0430\u0444\u0438\u043a \u0440\u0430\u0437\u043c\u0435\u0447\u0435\u043d, \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u043c \u0441\u044e\u0434\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438. \u0412 Firewall Mangle \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 Advanced \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0435 \u043d\u0430\u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438: <i>Content<\/i> \u0438 <i>TLS Hosts<\/i>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/qt\/db\/38\/qtdb38m6mwbxspsck83i-416yy4.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/qt\/db\/38\/qtdb38m6mwbxspsck83i-416yy4.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 Content \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u0434\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0432\u043e \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0447\u0435\u0440\u0435\u0437 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u043f\u0430\u043a\u0435\u0442\u0430\u0445. \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u044d\u0442\u043e \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0434\u043b\u044f HTTP \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u043f\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c. \u0414\u043b\u044f HTTPS \u0438 QUIC \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0441\u0430\u0439\u0442\u043e\u0432, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u043b\u044c\u0437\u044f \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0432\u0441\u043b\u0443\u0445:<\/p>\n<pre><code class=\"bash\">openssl s_client -servername xvideos.com:443 -tlsextdebug -connect xvideos.com:443  CONNECTED(00000003) TLS server extension \"server name\" (id=0), len=0 TLS server extension \"renegotiation info\" (id=65281), len=1 0000 - 00                                                . TLS server extension \"EC point formats\" (id=11), len=4 0000 - 03 00 01 02                                       .... TLS server extension \"session ticket\" (id=35), len=0 depth=2 C = US, ST = New Jersey, L = Jersey City, O = The USERTRUST Network, CN = USERTrust RSA Certification Authority verify return:1 depth=1 C = GB, ST = Greater Manchester, L = Salford, O = Sectigo Limited, CN = Sectigo RSA Domain Validation Secure Server CA verify return:1 depth=0 CN = *.xvideos.com verify return:1 Certificate chain  0 s:CN = *.xvideos.com    i:C = GB, ST = Greater Manchester, L = Salford, O = Sectigo Limited, CN = Sectigo RSA Domain Validation Secure Server CA  1 s:C = GB, ST = Greater Manchester, L = Salford, O = Sectigo Limited, CN = Sectigo RSA Domain Validation Secure Server CA    i:C = US, ST = New Jersey, L = Jersey City, O = The USERTRUST Network, CN = USERTrust RSA Certification Authority  2 s:C = US, ST = New Jersey, L = Jersey City, O = The USERTRUST Network, CN = USERTrust RSA Certification Authority    i:C = GB, ST = Greater Manchester, L = Salford, O = Comodo CA Limited, CN = AAA Certificate Services Server certificate -----BEGIN CERTIFICATE----- MIIFtzCCBJ+gAwIBAgIQCP+nsUrbzwj8B5SCxl4RzjANBgkqhkiG9w0BAQsFADCB \u2026\u2026. kvUG3hiNVNNEK4n1a8M3a32muX6G9vm17N6j -----END CERTIFICATE----- subject=CN = *.xvideos.com issuer=C = GB, ST = Greater Manchester, L = Salford, O = Sectigo Limited, CN = Sectigo RSA Domain Validation Secure Server CA <\/code><\/pre>\n<p>  \u0412\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0435\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0432 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c\u043e\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0438. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430, \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0442\u0438\u043f\u043e\u0432 \u0440\u0430\u0437\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432: DNS \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u043f\u0435\u0440\u0435\u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432\u043a\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u0430\u044f \u0440\u0430\u043d\u0435\u0435 \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435 Forward:<\/p>\n<pre><code class=\"bash\">add action=mark-packet chain=prerouting comment=\"Children Filter Content \\\"xvideo\\\"\" content=xvideo new-packet-mark=\"Children Filter\" packet-mark=\"LAN=>WAN packets DNS Children\" passthrough=no add action=mark-packet chain=prerouting comment=\"Children Filter Content \\\"porn\\\"\" content=porn new-packet-mark=\"Children Filter\" packet-mark=\"LAN=>WAN packets DNS Children\" passthrough=no add action=mark-packet chain=prerouting comment=\"Children Filter Content \\\"drug\\\"\" content=drug new-packet-mark=\"Children Filter\" packet-mark=\"LAN=>WAN packets DNS Children\" passthrough=no  add action=mark-packet chain=forward comment=\"Children Filter content \\\"porn\\\"\" content=porn new-packet-mark=\"Children Filter\" packet-mark=\"LAN=>WAN packets Children ALL\" passthrough=no add action=mark-packet chain=forward comment=\"Children Filter Content \\\"drug\\\"\" content=drug new-packet-mark=\"Children Filter\" packet-mark=\"LAN=>WAN packets Children ALL\" passthrough=no <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0442\u0430\u043a\u043e\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0441\u0438\u043b\u044c\u043d\u043e \u0433\u0440\u0443\u0437\u0438\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0440\u043e\u0443\u0442\u0435\u0440\u0430. \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u043f\u0440\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e \u0438\u0437 \u043f\u0440\u0430\u0432\u0438\u043b \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0437\u0430\u043f\u0440\u0435\u0442 \u043d\u0430 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u0442\u0440\u0430\u0444\u0438\u043a\u0430, \u0447\u0442\u043e \u0440\u0430\u0437\u0433\u0440\u0443\u0437\u0438\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 (<i>passthrough=no<\/i>).<\/p>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 TLS Hosts \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u0434\u0430\u0442\u044c SNI \u0438\u043b\u0438 Server Name Indication \u2013 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0448\u0438\u0440\u043e\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 TLS. \u0421\u043c\u044b\u0441\u043b SNI \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 web \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438, \u0442\u043e \u043d\u0430 \u043e\u0434\u043d\u043e\u043c IP \u0430\u0434\u0440\u0435\u0441\u0435 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u043d\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0430\u0439\u0442\u043e\u0432, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0445 \u043f\u043e HTTPS. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e HTTPS \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e IP \u0430\u0434\u0440\u0435\u0441\u0430. \u0415\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0430\u0439\u0442, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u044b\u043b\u0430 \u0431\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u043f\u043e \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u043c\u0443 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044e, \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u0431\u0435\u043b\u044b\u0439 IP. \u0412 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u043c \u043c\u0438\u0440\u0435, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0445\u043e\u0441\u0442\u0438\u0442\u0441\u044f \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0430\u0439\u0442\u043e\u0432.<br \/>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c SNI \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435:<\/p>\n<pre><code class=\"bash\">openssl s_client -servername xvideos.com:443 -tlsextdebug -connect xvideos.com:443 | grep 'TLS'  TLS server extension \"server name\" (id=0), len=0 TLS server extension \"renegotiation info\" (id=65281), len=1 TLS server extension \"EC point formats\" (id=11), len=4 TLS server extension \"session ticket\" (id=35), len=0\u2026 <\/code><\/pre>\n<p>  \u041d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432 \u0432\u044b\u0432\u043e\u0434\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 <i>TLS server extension \u00abserver name\u00bb (id=0), len=0<\/i> \u0431\u0443\u0434\u0435\u0442 \u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c, \u0447\u0442\u043e SNI \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f, \u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 \u043e\u0434\u043d\u0438\u043c IP \u0430\u0434\u0440\u0435\u0441\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0430\u0439\u0442\u043e\u0432. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u0447\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 TLS Hosts:<\/p>\n<pre><code class=\"bash\">add action=mark-packet chain=forward comment=\"Children Filter SNI \\\"habr.com\\\"\" new-packet-mark=\"Children Filter\" packet-mark=\"LAN=>WAN packets Children HTTPS+QUIC\" passthrough=no protocol=tcp tls-host=habr.com add action=mark-packet chain=forward comment=\"Children Filter SNI \\\"xvideo\\\"\" content=xvideo new-packet-mark=\"Children Filter\" packet-mark=\"LAN=>WAN packets Children HTTPS+QUIC\" passthrough=no <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0440\u0435\u0442\u0438\u043c \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432\u043a\u0443 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 (<i>passthrough=no<\/i>) \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u044d\u0442\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c\u0438 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c Content. <a href=\"https:\/\/xakep.ru\/2020\/08\/10\/great-firewall\">\u0413\u043e\u0432\u043e\u0440\u044f\u0442<\/a>, \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u0435\u043b\u0438\u043a\u0438\u0439 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0439 firewall, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u043d \u0443\u043c\u0435\u0435\u0442 \u043b\u0435\u0437\u0442\u044c \u0435\u0449\u0435 \u0433\u043b\u0443\u0431\u0436\u0435. \u0416\u0430\u043b\u043a\u043e \u043f\u043e\u043a\u0430 \u043d\u0435\u0442 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n<p>  \u0412\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 Mangle Extra \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442, \u0443\u0432\u044b\u2026<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/er\/f3\/ni\/erf3niisfsvmoh4xfueg20bdb1m.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/er\/f3\/ni\/erf3niisfsvmoh4xfueg20bdb1m.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0431\u0435\u0440\u0435\u043c \u0432\u0441\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 Mangle \u0432\u043e\u0435\u0434\u0438\u043d\u043e \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0445\u0435\u043c\u0435:<\/p>\n<pre><code class=\"bash\">LAN=>WAN connections DNS Children LAN=>WAN packets DNS Children Children Filter  LAN=>WAN connections Children LAN=>WAN connections HTTPS Children LAN=>WAN connections QUIC Children LAN=>WAN packets Children HTTPS+QUIC Children Filter  LAN=>WAN packets Children ALL Children Filter <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/hk\/5a\/3d\/hk5a3dju8vaa2v4thmrbyandvc4.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/hk\/5a\/3d\/hk5a3dju8vaa2v4thmrbyandvc4.jpeg\" data-blurred=\"true\"\/><br \/>  \u041f\u0430\u043a\u0435\u0442\u044b, \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0435 \u043a\u0430\u043a Children Filter, \u0431\u0443\u0434\u0435\u043c \u0434\u0440\u043e\u043f\u0430\u0442\u044c \u0432 Firewall Filter. \u0418\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0438\u0436\u0435, \u0432\u0437\u044f\u0442\u0430\u044f \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u0443 <a href=\"https:\/\/xn-----xlcfvffioc4g.xn--p1ai\">\u044d\u0442\u0438\u0445 \u0440\u0435\u0431\u044f\u0442<\/a>, \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442 \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043c, \u0430 \u043d\u0435 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/ur\/ri\/mk\/urrimkobythznybtf8oyucgp67g.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/ur\/ri\/mk\/urrimkobythznybtf8oyucgp67g.jpeg\" data-blurred=\"true\"\/><\/p>\n<p>  \u0411\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0430\u043c\u044b\u043c \u043f\u0435\u0440\u0432\u044b\u043c \u0432 \u0446\u0435\u043f\u043e\u0447\u043a\u0435 Forward, \u0438\u043d\u0430\u0447\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u043f\u043e\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438, \u043f\u0435\u0440\u0435\u0441\u043a\u043e\u0447\u0430\u0442 \u0447\u0435\u0440\u0435\u0437 Firewall:<\/p>\n<pre><code class=\"bash\">\/ip firewall filter add action=accept chain=input comment=\"Accept established,related\" connection-state=established,related add action=drop chain=input comment=\"Drop invalid\" connection-state=invalid add action=drop chain=forward comment=\"Drop Children Filter\" packet-mark=\"Children Filter\" add action=accept chain=forward comment=\"Accept established,related\" connection-state=established,related add action=drop chain=forward comment=\"Drop invalid\" connection-state=invalid add action=drop chain=forward comment=Drop_sites_by_address_list dst-address-list=Block_site_by_dns_name <\/code><\/pre>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0431\u0438\u0432\u0430\u0442\u044c\u0441\u044f, \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0440\u0435\u0431\u0435\u043d\u043a\u0430 \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u0438\u0437 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430.<\/p>\n<p>  \u0423\u043f\u043e\u043c\u044f\u043d\u0443 \u0435\u0449\u0435 \u043f\u0440\u043e <a href=\"https:\/\/wiki.mikrotik.com\/wiki\/Manual:IP\/Firewall\/L7\">\/ip firewall layer7-protocol<\/a>. \u0414\u0430\u043d\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0432 \u043f\u0435\u0440\u0432\u044b\u0445 2 KB \u0442\u0440\u0430\u0444\u0438\u043a\u0430 (\u0438\u043b\u0438 10 \u043f\u0435\u0440\u0432\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u0430\u0445) \u043f\u043e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c \u0432 ICMP, TCP \u0438 UDP \u043f\u043e\u0442\u043e\u043a\u0430\u0445. \u041d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u043d\u043e \u0432\u0441\u0435 \u0442\u0430\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0440\u043e\u0443\u0442\u0435\u0440\u0430.<\/p>\n<h2><font color=\"#3AC1EF\">\u258d 2. \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/font><\/h2>\n<p>  RouterOS \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u043f\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f. \u0412 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044b: \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 DNS \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u043c, Firewall Filter, Firewall Mangle \u0438 Kid-Control. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0442 MikroTik \u0438 \u043d\u0435 \u043d\u0435\u0441\u0435\u0442 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. \u0427\u0442\u043e \u0436\u0435 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c: \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 DNS, Firewall Filter \u0438\u043b\u0438 Firewall Mangle?<\/p>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430 DNS \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 \u043d\u0435\u0438\u0437\u0431\u0435\u0436\u043d\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043a\u0430\u043a \u043d\u0430 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445, \u0442\u0430\u043a \u0438 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u0438 \u0434\u0430\u0436\u0435 \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u041d\u0435\u043b\u044c\u0437\u044f \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u043f\u0440\u044f\u043c\u043e-\u0442\u0430\u043a\u0438 \u0431\u044b\u043b \u043c\u0438\u043d\u0443\u0441, \u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c. \u0427\u0442\u043e\u0431\u044b \u0432\u044b, \u043a\u0430\u043a \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c, \u043d\u0435 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0432 DNS \u043e\u0442\u0432\u0435\u0442, \u043d\u043e \u0434\u043e \u043d\u0435\u0433\u043e \u0434\u0435\u043b\u043e \u043c\u043e\u0436\u0435\u0442 \u0434\u0430\u0436\u0435 \u043d\u0435 \u0434\u043e\u0439\u0442\u0438. \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0440\u0435\u0431\u0435\u043d\u043a\u0430 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u0442 IP \u0430\u0434\u0440\u0435\u0441 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u0438\u0437 \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430. \u0410 \u0432\u043e\u0442 \u0442\u043e, \u0447\u0442\u043e \u0440\u0430\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u0437\u0434\u043d\u043e <a href=\"https:\/\/ru.wikipedia.org\/wiki\/DNSSEC\">\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439<\/a> <a href=\"https:\/\/ru.wikipedia.org\/wiki\/DNS_%D0%BF%D0%BE%D0%B2%D0%B5%D1%80%D1%85_HTTPS\">DNS<\/a> \u043f\u0440\u043e\u0447\u043d\u043e \u0432\u043e\u0439\u0434\u0435\u0442 \u0432 \u043d\u0430\u0448\u0443 \u0436\u0438\u0437\u043d\u044c, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u0443\u0436\u0435 \u0441\u0435\u0439\u0447\u0430\u0441. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 DNS \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438\u043b\u0438 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432, \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e, \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f. \u0414\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438, \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0432\u0441\u044e \u044d\u0442\u0443 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432 \u0438\u0441\u043f\u0440\u0430\u0432\u043d\u043e\u043c \u0438 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438, \u0447\u0442\u043e, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043b\u044f\u0436\u0435\u0442 \u043d\u0430 \u0432\u0430\u0448\u0438 \u0441\u0438\u0441\u0430\u0434\u043c\u0438\u043d\u0441\u043a\u0438\u0435 \u043f\u043b\u0435\u0447\u0438.<\/p>\n<p>  \u0414\u0440\u043e\u043f\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b \u043f\u043e IP \u0430\u0434\u0440\u0435\u0441\u0443 \u0432 Firewall Filter \u2013 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u043e\u043f\u043e\u0440\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u043d\u0433 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043c\u0435\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u043e. \u041e\u0434\u043d\u0430\u043a\u043e \u043f\u043e\u043b\u0435 TLS Hosts \u0432 Firewall Mangle \u0438\u043c\u0435\u0435\u0442 \u043f\u0435\u0440\u0435\u0434 \u043d\u0438\u043c \u0441\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u044b. \u0412\u0435\u0434\u044c \u0437\u0430\u0431\u0438\u0432\u0430\u0442\u044c \u0438\u0445 \u0432\u0441\u0435 \u0432 address-list \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f. \u0410 \u0435\u0441\u043b\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c IP \u0430\u0434\u0440\u0435\u0441\u0435 \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u0439\u0442\u043e\u0432, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0430\u0441\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0432 \u043f\u0435\u0440\u0438\u043e\u0434 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0420\u043e\u0441\u043a\u043e\u043c\u043d\u0430\u0434\u0437\u043e\u0440\u0430, \u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u0438\u0437 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u043d\u0435 \u0432\u044b\u0439\u0434\u0435\u0442. \u0413\u0440\u0430\u043c\u043e\u0442\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0442\u0438\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u0432 Firewall Mangle \u2013 \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043d\u0430\u0432\u044b\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u0448\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a, \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0437\u0430\u0446\u0438\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0438 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u043c\u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445.<\/p>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 Content \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c, \u043e\u0434\u043d\u0430\u043a\u043e \u043f\u0440\u043e\u0433\u043e\u043d \u0442\u043e\u043b\u0441\u0442\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u044b\u0439 MikroTik \u043f\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0443 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432 \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0440\u043e\u0443\u0442\u0435\u0440\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043c\u0435\u0440\u043e\u0439 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043a\u0430.<\/p>\n<p>  \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u043f\u043e\u0434\u0445\u043e\u0434\u044b \u043a \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u043c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 VPN, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442 \u043f\u0435\u0440\u0435\u043f\u0440\u044b\u0433\u043d\u0443\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a, \u0441\u0447\u0438\u0442\u0430\u044e, \u044d\u0442\u043e \u043d\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c\u0443 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e.<\/p>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0445\u043e\u0440\u043e\u0448\u0438 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0430\u043c\u0438. \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c, \u0430 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435 \u0441\u0440\u0430\u0437\u0443. \u0418 \u043f\u043e\u0442\u043e\u043b\u0449\u0435 \u0438 \u043f\u043e\u0431\u043e\u043b\u044c\u0448\u0435. \u0415\u0441\u043b\u0438 \u0432\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0437\u0430 \u0442\u0440\u0430\u0444\u0438\u043a\u043e\u043c \u0440\u0435\u0431\u0435\u043d\u043a\u0430. \u041d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u043d\u0435 \u0442\u0435\u043c\u0430 \u043d\u0430\u0448\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>  <a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/583866\/\"><b><font color=\"#3AC1EF\">\u0427\u0430\u0441\u0442\u044c 1<\/font><\/b><\/a><br \/>  <a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/583868\/\"><b><font color=\"#3AC1EF\">\u0427\u0430\u0441\u0442\u044c 2<\/font><\/b><\/a> (\u0432\u044b \u0442\u0443\u0442)<\/p>\n<p>  <a href=\"http:\/\/ruvds.com\/ru-rub?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=olegtsss%0A&amp;utm_content=mikrotik_safes_children_(chast_2)\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ou\/g5\/kh\/oug5kh6sjydt9llengsiebnp40w.png\" data-src=\"https:\/\/habrastorage.org\/webt\/ou\/g5\/kh\/oug5kh6sjydt9llengsiebnp40w.png\"\/><\/a><\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/583868\/\"> https:\/\/habr.com\/ru\/articles\/583868\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/583868\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/il\/8t\/iy\/il8tiyzcdimd3tgzql_ahpavyxg.png\" data-src=\"https:\/\/habrastorage.org\/webt\/il\/8t\/iy\/il8tiyzcdimd3tgzql_ahpavyxg.png\"\/><\/div>\n<p><\/a><br \/>  \u0412\u0442\u043e\u0440\u0430\u044f \u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u0432 \u0446\u0438\u043a\u043b\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u043d\u0430 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0438 MikroTik. <a href=\"https:\/\/habr.com\/ru\/company\/ruvds\/blog\/583866\/\">\u0420\u0430\u043d\u0435\u0435 <\/a>\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f DNS, \u0440\u0430\u0431\u043e\u0442\u0430 Firewall Filter \u0438 Ip Kid-control. \u0412 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c Firewall Mangle, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043e\u0431\u0449\u0438\u0435 \u0437\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0441\u0442\u0430\u0442\u0435\u0439 \u0432\u044b\u0432\u043e\u0434\u044b, \u043a\u0430\u0441\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 RouterOS \u043f\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-389151","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/389151","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=389151"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/389151\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=389151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=389151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=389151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}