{"id":360668,"date":"2024-05-21T00:57:45","date_gmt":"2024-05-21T00:57:45","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=360668"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=360668","title":{"rendered":"<span>\u0422\u043e\u0447\u0435\u0447\u043d\u0430\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Mikrotik: BGP \u0438 Address lists + Mangle. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0434\u043e\u043c\u0435\u043d\u044b<\/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-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<ul>\n<li>\n<p>\u041a\u0430\u043a \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0437 500 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u043d\u0430 mikrotik, \u0447\u0442\u043e\u0431 \u043e\u043d \u0438\u0445 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043b \u0432 IP-\u0430\u0434\u0440\u0435\u0441\u0430?<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c Mikrotik \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442\u044c \u0434\u043e\u043c\u0435\u043d\u044b \u043f\u043e wildcard?<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u043f\u043e\u0434\u043d\u044f\u0442\u044c Shadowsocks\\VLESS \u043d\u0430 ROS?<\/p>\n<\/li>\n<\/ul>\n<p><s>\u041d\u0438\u043a\u0430\u043a<\/s><\/p>\n<p>\u042f \u0437\u0430\u0434\u0430\u043b\u0441\u044f \u044d\u0442\u0438\u043c\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c\u0438, \u0434\u043e\u0441\u0442\u0430\u043b hAP ac lite \u0438\u0437 \u0448\u043a\u0430\u0444\u0430 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b, \u043d\u0430 \u0447\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 ROS 7 \u0432 \u043a\u043e\u043d\u0446\u0435 2023 \u0433\u043e\u0434\u0430. \u041f\u043e\u0442\u0435\u0441\u0442\u0438\u043b \u0432\u0441\u0435\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0437\u0430\u043f\u0438\u0445\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432 address-lists.<\/p>\n<p><strong>UPD 13.12.2023<\/strong> \u0421\u0442\u0430\u043b\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u0432 DNS static \u0438 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0440\u0435\u0437\u043e\u043b\u0432\u0435\u043d\u043d\u044b\u0445 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0432 address list. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c wildcard. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c &#171;\u0421\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432 DNS static, wildcard&#187;.<\/p>\n<h2>\u0412\u0438\u0434\u0435\u043e\u0432\u0435\u0440\u0441\u0438\u044f<\/h2>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/65ed4cd0d1b5b66d8d98fd40\" data-style=\"\" id=\"65ed4cd0d1b5b66d8d98fd40\" width=\"\"><\/div>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 WireGuard \u0432 ROS 7<\/h2>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0442\u0443\u043d\u043d\u0435\u043b\u044c, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0442\u0440\u0430\u0444\u0438\u043a \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u041f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0442\u0443\u043d\u043d\u0435\u043b\u0435\u0439 \u0432 ROS \u043c\u043d\u043e\u0433\u043e \u043c\u0430\u043d\u0443\u0430\u043b\u043e\u0432. \u042f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 WG, \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e \u043d\u0435\u043c\u0443 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0430\u043d \u043d\u0435\u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0439\u0442\u0438. \u0425\u043e\u0442\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u0442\u0443\u0442 \u043d\u0435\u0442.<\/p>\n<p>\u0412 address \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441 \u0441 \u043f\u043e\u0434\u0441\u0435\u0442\u044c\u044e (\u043f\u0440\u0438\u043c\u0435\u0440 10.7.0.2\/24), \u0432 network \u043f\u043e\u0434\u0441\u0435\u0442\u044c (\u043f\u0440\u0438\u043c\u0435\u0440 10.7.0.0).<\/p>\n<pre><code>\/interface wireguard add listen-port=51820 mtu=1420 name=wg0 private-key=\"$PRIVATE\" \/interface wireguard peers add allowed-address=0.0.0.0\/0 comment=wireguard endpoint-address=$HOST endpoint-port=51820 interface=wg0 persistent-keepalive=25s \\     preshared-key=\"$PRESHARED\" public-key=\"$PUBLIC\" \/ip address add address=$IP interface=wg0 network=$NETWORK \/ip firewall nat add action=masquerade chain=srcnat out-interface=wg0 <\/code><\/pre>\n<p>\u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 persistent-keepalive, \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u0442\u0443\u043d\u043d\u0435\u043b\u044c \u043d\u0435 \u043f\u043e\u0434\u043d\u0438\u043c\u0435\u0442\u0441\u044f.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0442\u0440\u0430\u0444\u0438\u043a \u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/p>\n<pre><code>\/ping habr.com interface wg0 <\/code><\/pre>\n<p>\u0415\u0449\u0451 \u043c\u043e\u0436\u043d\u043e \u0433\u043b\u044f\u043d\u0443\u0442\u044c, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f Rx \u0438 Tx \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u0432 <strong>WireGuard &#8212; Peers<\/strong><\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/3o\/zv\/na\/3ozvnaa5rjx9mgwiuifunyhpahe.png\" data-src=\"https:\/\/habrastorage.org\/webt\/3o\/zv\/na\/3ozvnaa5rjx9mgwiuifunyhpahe.png\"\/><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0438 \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e.<\/p>\n<p>\u041a\u0430\u043a\u0438\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0434\u0435\u043d\u044c \u0434\u043b\u044f RouterOS?<\/p>\n<h2>BGP. \u041a\u043b\u0430\u0441\u0441\u0438\u043a\u0430 \u0434\u043b\u044f Mikrotik<\/h2>\n<p>\u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0443\u0441\u043b\u0443\u0433\u0443 \u0430\u043d\u043e\u043d\u0441\u0430 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438 \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/antifilter.download\/\" rel=\"noopener noreferrer nofollow\">https:\/\/antifilter.download\/<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/antifilter.network\/\" rel=\"noopener noreferrer nofollow\">https:\/\/antifilter.network\/<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u043d\u0438 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u044e\u0442, \u0447\u0442\u043e\u0431 \u0432\u044b \u043c\u043e\u0433\u043b\u0438 \u0438\u0445 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435. \u041d\u043e \u0434\u043b\u044f \u0443\u0447\u0435\u0431\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439 \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 \u0442\u0443\u043d\u043d\u0435\u043b\u044c.<\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u043e\u0437\u043d\u0438\u043a \u0432 2018, \u0432\u0442\u043e\u0440\u043e\u0439 \u0432 2019 \u0433\u043e\u0434\u0443. \u0421\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0438 antifilter.network \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0437\u0430\u043f\u0430\u0440\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441 \u043d\u0435\u0439\u043c\u0438\u043d\u0433\u043e\u043c, \u043d\u043e \u0437\u0430\u043f\u0430\u0440\u0438\u043b\u0438\u0441\u044c \u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0441\u0435\u0440\u0432\u0438\u0441\u0430.<\/p>\n<p>\u041e\u0431\u0430 \u0438\u043c\u0435\u044e\u0442 \u0441\u043f\u0438\u0441\u043a\u0438:<\/p>\n<ul>\n<li>\n<p>\u0412\u0441\u0435 IP-\u0430\u0434\u0440\u0435\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0434\u043e \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c<\/p>\n<\/li>\n<li>\n<p>\u0418\u0445 \u0441\u0443\u043c\u043c\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0411\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u043f\u043e\u0434\u0441\u0435\u0442\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u0427\u0435\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f?<\/p>\n<ul>\n<li>\n<p>\u0423 antifilter.download \u0435\u0441\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a community. \u041e\u043d \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0438\u0437 \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u043d\u0433\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430<\/p>\n<\/li>\n<li>\n<p>\u0423 antifilter.network \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043a\u043e\u043b\u044c\u043d\u0430\u044f \u0444\u0438\u0447\u0430 \u043f\u043e \u0432\u044b\u0431\u043e\u0440\u0443 \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u043d\u0435 \u043f\u0440\u0438\u0431\u0435\u0433\u0430\u044f \u043a \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432 \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435<\/p>\n<\/li>\n<li>\n<p>\u0423 antifilter.network \u0435\u0441\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0441 \u0441\u0443\u043c\u043c\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043e\u0442 \/32 \u0434\u043e \/23 \u043c\u0430\u0441\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>antifilter.network \u0438\u043c\u0435\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<p>\u0423 \u043e\u0431\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0435\u0441\u0442\u044c \u0447\u0430\u0442\u044b, \u0433\u0434\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u043e\u043f\u0440\u043e\u0441.<\/p>\n<h3>Antifilter.download<\/h3>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 subent+ipsum+community \u043e\u0442 antifilter.download. \u042d\u0442\u0438 \u0441\u043f\u0438\u0441\u043a\u0438 \u043e\u0442\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044e <a class=\"mention\" href=\"\/users\/talifan\">@talifan<\/a> \u0437\u0430 <a href=\"https:\/\/habr.com\/ru\/articles\/549282\/#comment_24184087\" rel=\"noopener noreferrer nofollow\">\u043a\u043e\u043d\u0444\u0438\u0433<\/a> \u0434\u043b\u044f ROS 7.<\/p>\n<p>\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435:<\/p>\n<ul>\n<li>\n<p>YOUR_AS &#8212; \u0432\u0430\u0448\u0430 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u0430\u044f AS. \u0427\u0438\u0441\u043b\u043e \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 64512-65543, \u043a\u0440\u043e\u043c\u0435 65432<\/p>\n<\/li>\n<li>\n<p>IP &#8212; \u0432\u0430\u0448 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 IP-\u0430\u0434\u0440\u0435\u0441 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u0442\u044c\u0441\u044f \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>INTERFACE &#8212; \u0438\u043c\u044f VPN \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a<\/p>\n<\/li>\n<\/ul>\n<pre><code>\/routing bgp template add as=$YOUR_AS disabled=no hold-time=4m input.filter=bgp_in .ignore-as-path-len=yes keepalive-time=1m multihop=yes name=antifilter routing-table=main \/routing bgp connection add disabled=no hold-time=4m input.filter=bgp_in .ignore-as-path-len=yes keepalive-time=1m local.role=ebgp multihop=yes name=antifilter_bgp remote.address=45.154.73.71\/32 .as=65432 router-id=$IP routing-table=main templates=antifilter \/routing filter rule add chain=bgp_in disabled=no rule=\"set gw $INTERFACE; accept;\" <\/code><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u043f\u0440\u0438\u0448\u043b\u0438, \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<pre><code>\/routing\/bgp\/session print <\/code><\/pre>\n<p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f prefix-count \u0438 messages \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043d\u0435 \u0440\u0430\u0432\u043d\u044b \u043d\u0443\u043b\u044e.<\/p>\n<p>\u041b\u0438\u0431\u043e \u0447\u0435\u0440\u0435\u0437 winbox\\\u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. <strong>Routing &#8212; BGP &#8212; Sessions<\/strong>, \u0443 \u043f\u043e\u0434\u043d\u044f\u0442\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 \u0440\u0430\u0437\u0434\u0435\u043b Stats. <\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/t9\/ez\/o9\/t9ezo9hdupzsc2yxa7iigbsyww0.png\" data-src=\"https:\/\/habrastorage.org\/webt\/t9\/ez\/o9\/t9ezo9hdupzsc2yxa7iigbsyww0.png\"\/><\/figure>\n<p>\u0414\u0435\u043b\u0430\u0439\u0442\u0435 \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0443 \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0434\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0442\u0443\u043d\u043d\u0435\u043b\u044c.<\/p>\n<blockquote>\n<p>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0434 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0430\u0431\u0437\u0430\u0446\u0435\u043c. \u0423 antifilter.download \u0435\u0441\u0442\u044c community \u0441\u043f\u0438\u0441\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u0430\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438. \u0422\u0430\u043a\u0436\u0435 \u0432 BGP \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u0438\u0435 community, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u0441\u044f \u0434\u043b\u044f \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0447\u0430\u0441\u0442\u0438 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432. \u0412 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432. \u041d\u0435 \u0437\u0430\u043f\u0443\u0442\u0430\u0439\u0442\u0435\u0441\u044c.<\/p>\n<\/blockquote>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u0442\u0434\u0430\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 subnet, ipsum \u0438 community \u0441\u043f\u0438\u0441\u043a\u0438.<\/p>\n<p>\u0427\u0442\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u0438\u0441\u043e\u043a community, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c filter rule:<\/p>\n<pre><code>\/routing filter rule add chain=bgp_in disabled=no rule=\"set gw wg0; if (bgp-communities includes 65432:500) {accept} else {reject}\" <\/code><\/pre>\n<p>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 BGP community \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <strong>\u0427\u0430\u0412\u043e &#8212; &#171;\u041a\u0430\u043a\u0438\u0435 \u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 BGP-\u0444\u0438\u0434\u0435?&#187;<\/strong>.<\/p>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043b\u0435\u0442\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b, \u043d\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u044b \u0431\u0443\u0434\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e community.<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0432 <strong>ip &#8212; route<\/strong><\/p>\n<pre><code>\/ip\/route print <\/code><\/pre>\n<ul>\n<li>\n<p>Dab &#8212; active, \u0442\u0435, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>DbI &#8212; inactive, \u0442\u0435, \u0447\u0442\u043e \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0438 \u0434\u043b\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u0448 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 BGP, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0447\u0435\u0440\u0435\u0437 VPN \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c.<\/p>\n<pre><code>\/ip route add dst-address=45.154.73.71\/32 gateway=$INTERFACE <\/code><\/pre>\n<p>\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0432\u0437\u044f\u0442\u0430 \u0438\u0437 <a href=\"https:\/\/habr.com\/ru\/articles\/549282\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a><a class=\"mention\" href=\"\/users\/Furriest\">@Furriest<\/a>, \u0430\u0432\u0442\u043e\u0440\u0430 antifilter.download.<\/p>\n<h3>Antifilter.network<\/h3>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432 \u0441 antifilter.network \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0430.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <a href=\"https:\/\/antifilter.network\/bgp\" rel=\"noopener noreferrer nofollow\">https:\/\/antifilter.network\/bgp<\/a>.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u0439 \u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u0441\u043f\u0438\u0441\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u044b, \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u0435 reCAPTCHA \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442\u0435 <strong>\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c<\/strong>. \u0422\u0435\u043f\u0435\u0440\u044c \u043a \u0432\u0430\u0448\u0435\u043c\u0443 IP-\u0430\u0434\u0440\u0435\u0441\u0443 \u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0442\u0430\u043c AS \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u0430 \u043e\u0442\u0434\u0430\u0447\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432. \u0425\u0438\u0442\u0440\u043e \u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u043a\u043e\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e.<\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0442\u0430\u043a\u0430\u044f \u0436\u0435, \u043a\u0430\u043a \u0434\u043b\u044f antifilter.download, \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e Remote Address, Remote AS \u0438 \u0432\u0430\u0448\u0435\u0439 AS. \u0410 router-id \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u042d\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0441 \u0438\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b BGP. \u0424\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e community \u0442\u0443\u0442 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441 <code>accept;<\/code>.<\/p>\n<p>\u0421 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 BGP \u0441\u0435\u0441\u0441\u0438\u0435\u0439 \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435, \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 <strong>\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c<\/strong> \u0443\u0436\u0435 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u0440\u0438\u043b\u0435\u0442\u0430\u044e\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b.<\/p>\n<p>\u0414\u0435\u043b\u0430\u0439\u0442\u0435 \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0443 \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0434\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0442\u0443\u043d\u043d\u0435\u043b\u044c.<\/p>\n<h3>\u041a\u0430\u043a \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0440\u043e\u0443\u0442\u0438\u043d\u0433 \u043f\u0440\u0438 mangle+address-list?<\/h3>\n<p><strong>Routing &#8212; BGP &#8212; Connection<\/strong>, \u043a\u043d\u043e\u043f\u043a\u0430 Disable \u0443 \u043f\u043e\u0434\u043d\u044f\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0435\u043a\u0448\u0435\u043d\u0430<\/p>\n<h3>\u041c\u043e\u0439 \u043e\u043f\u044b\u0442 \u0441 BGP \u0438 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438<\/h3>\n<p>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 &#8212; \u044d\u0442\u043e \u0441\u0443\u043c\u043c\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u044f. \u041e\u043d\u0430 \u043d\u0443\u0436\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u043e\u0442\u0435\u043d \u0442\u044b\u0441\u044f\u0447 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0432 Routes. \u041d\u043e \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432 \u0442\u0443\u043d\u043d\u0435\u043b\u044c \u0442\u0430\u043a\u0436\u0435 \u0443\u043b\u0435\u0442\u0430\u044e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b. \u0418 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439. \u0420\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0434\u0432\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u0438 \u0447\u0442\u043e \u0441 \u044d\u0442\u0438\u043c \u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u0440\u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0435 \u0443 \u0441\u0435\u0431\u044f \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u044d\u0442\u0438\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432, \u0432\u044b \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442\u0435 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0435\u0440\u0432\u044b\u0439. \u0421\u0430\u0439\u0442 habr.com<\/h4>\n<p>\u0423 \u043c\u0435\u043d\u044f <a href=\"http:\/\/habr.com\" rel=\"noopener noreferrer nofollow\">habr.com<\/a> \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442\u0441\u044f \u0432 <code>178.248.237.68<\/code>. \u042d\u0442\u043e\u0442 IP-\u0430\u0434\u0440\u0435\u0441 \u0438\u0437 \u043f\u043e\u0434\u0441\u0435\u0442\u0438 <code>178.248.236.0\/23<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e \u0432\u0441\u0435\u0445 \u0442\u0440\u0451\u0445 \u0441\u043f\u0438\u0441\u043a\u0430\u0445 \u0441 \u0441\u0443\u043c\u043c\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0443\u043d\u043d\u0435\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f WG, \u0441\u0430\u0439\u0442 \u0438\u0434\u0451\u0442 \u0447\u0435\u0440\u0435\u0437 \u0442\u0443\u043d\u043d\u0435\u043b\u044c \u0438 \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f. \u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043e\u0442\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u0443, tcpdump \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e IP-\u0430\u0434\u0440\u0435\u0441 <code>178.248.237.68<\/code> \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u043d\u0435\u043c\u0443 \u043e\u0442\u0434\u0430\u0451\u0442 \u043f\u0430\u0440\u0443 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043f\u043e HTTPS \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443.<\/p>\n<p>\u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u0430 \u043f\u043e\u0434\u0441\u0435\u0442\u044c \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Qrator Labs, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 DDOS-\u0437\u0430\u0449\u0438\u0442\u0443. \u0427\u0442\u043e-\u0442\u043e \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0438\u0437 \u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <a href=\"https:\/\/olegon.ru\/showthread.php?t=38451\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/a> \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043b <a class=\"mention\" href=\"\/users\/olegon-ru\">@olegon-ru<\/a>.<\/p>\n<p>\u0414\u0435\u043b\u043e \u0432 MSS \u0443 WireGuard. \u041f\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c:<\/p>\n<pre><code>\/ip firewall mangle add action=change-mss chain=forward new-mss=1380 out-interface=$INTERFACE protocol=tcp tcp-flags=syn tcp-mss=1381-65535 <\/code><\/pre>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u0425\u0430\u0431\u0440 \u0447\u0435\u0440\u0435\u0437 \u0442\u0443\u043d\u043d\u0435\u043b\u044c, \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u043e\u043c\u0430\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0425\u0430\u0431\u0440\u0443 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u0442\u043e\u0440\u043e\u0439. \u0421\u0430\u0439\u0442 leroymerlin.ru<\/h4>\n<p>\u0411\u0435\u0437 \u043f\u0440\u0430\u0432\u043a\u0438 MSS \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0442\u0430\u043a\u0430\u044f \u0436\u0435. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u041b\u0435\u0440\u0443\u0430 \u043b\u0435\u0436\u0438\u0442 \u0442\u043e\u0436\u0435 \u0437\u0430 Qrator Labs. \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0430\u0432\u043a\u0438 MSS \u0441\u0430\u0439\u0442 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438 \u0432\u0435\u0449\u0430\u0435\u0442:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/po\/k4\/zm\/pok4zmwpbydhjg66eqruxpjwau4.png\" data-src=\"https:\/\/habrastorage.org\/webt\/po\/k4\/zm\/pok4zmwpbydhjg66eqruxpjwau4.png\"\/><\/figure>\n<p>\u0422\u0443\u0442 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e: \u043d\u0430\u0434\u043e \u0432\u044b\u043a\u0438\u043d\u0443\u0442\u044c \u044d\u0442\u0443 \u043f\u043e\u0434\u0441\u0435\u0442\u044c \u0438\u0437 \u0440\u043e\u0443\u0442\u0430.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430 \u0434\u043b\u044f BGP. \u041f\u0440\u0430\u0432\u0438\u043c <strong>routes &#8212; filter &#8212; rule<\/strong> \u0434\u043b\u044f BGP \u043c\u0435\u043d\u044f\u0435\u043c \u043f\u043e\u043b\u0435 rule:<\/p>\n<pre><code>set gw wg0; if (dst in 178.248.232.0\/22) {reject} else {accept} <\/code><\/pre>\n<p>\u0414\u043b\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 OR. \u0422\u0443\u0442 \u0432\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0434\u0441\u0435\u0442\u044c \u043a\u0430\u043a \u0440\u0430\u0437 \u0442\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0425\u0430\u0431\u0440:<\/p>\n<pre><code>set gw wg0; if (dst in 178.248.236.0\/23 || dst in 178.248.232.0\/22) {reject} else {accept} <\/code><\/pre>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/bq\/ky\/ie\/bqkyieeyeeg0csmew1ensefiqgg.png\" data-src=\"https:\/\/habrastorage.org\/webt\/bq\/ky\/ie\/bqkyieeyeeg0csmew1ensefiqgg.png\"\/><\/figure>\n<p>\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0442\u0435\u0441\u0442\u043e\u0432 \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0430\u043c \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0414\u0426. \u0421\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u0432\u044b\u0448\u0435, \u0431\u044b\u043b\u0430 \u0441 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c \u0435\u0432\u0440\u043e\u043f\u0435\u0439\u0441\u043a\u0438\u043c \u0414\u0426. \u0410 \u043a\u043e\u0433\u0434\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b, \u0432\u0438\u0434\u0438\u043c\u043e, \u0441\u0432\u0435\u0436\u0438\u0439 \u0438 &#171;\u043d\u0435 \u0437\u0430\u043f\u0430\u043b\u0435\u043d\u043d\u044b\u0439&#187; \u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0438\u0439 IP-\u0430\u0434\u0440\u0435\u0441, \u0442\u043e \u043e\u0431\u0430 \u0441\u0430\u0439\u0442\u0430 \u043e\u0442\u043a\u0440\u044b\u043b\u0438\u0441\u044c \u0447\u0435\u0440\u0435\u0437 VPN \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0421\u0430\u0439\u0442 \u041b\u0435\u0440\u0443\u0430 \u043d\u0435 \u0441\u043c\u0443\u0442\u0438\u043b \u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0438\u0439 IP-\u0430\u0434\u0440\u0435\u0441, \u0430 \u0434\u043b\u044f \u0425\u0430\u0431\u0440\u0430 \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0441\u044f \u043a\u043e\u0441\u0442\u044b\u043b\u044c \u0441 \u043f\u0440\u0430\u0432\u043a\u043e\u0439 MSS \u0434\u043b\u044f WG.<\/p>\n<h4>\u041c\u043e\u0436\u0435\u0442, \u0431\u0435\u0437 \u0441\u0443\u043c\u043c\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u043e\u0433\u0434\u0430?<\/h4>\n<p>\u041d\u0430 \u043e\u0431\u043e\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u0445 \u0440\u044f\u0434\u043e\u043c \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u0430\u043c\u0438 ip.lst \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e &#171;\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e&#187;. \u0420\u0430\u0434\u0438 \u0442\u0435\u0441\u0442\u0430 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u043c\u0443\u0447\u0430\u0442\u044c \u043c\u043e\u0439 hAP lite ac. \u041e\u0442 130548 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430 \u0432 routes \u0435\u043c\u0443 \u0441\u0442\u0430\u043b\u043e \u043f\u043b\u043e\u0445\u043e.<\/p>\n<h2>\u0412\u044b\u043a\u0430\u0447\u043a\u0430 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438 \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439 \u0432 Address List<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0432\u044b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 BGP, \u0442\u043e \u0441\u043f\u0438\u0441\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0432 Address Lists. \u041d\u043e \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043f\u0438\u0441\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e BGP, \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u043e BGP. \u041f\u043e BGP \u043e\u043d\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432 routes. \u0410 \u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u043b\u0430\u0434\u0451\u0442 \u0438\u0445 \u0432 address-lists. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e address-list + mangle \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u0447\u0435\u043c routes.<\/p>\n<p>\u041d\u043e \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0442\u043e\u0436\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439, \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u0442\u043e\u0436\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c. \u0422\u0443\u0442 \u043b\u043e\u0433\u0438\u043a\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f: \u0435\u0441\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u0432\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0434\u0451\u0442 \u043a IP-\u0430\u0434\u0440\u0435\u0441\u0430\u043c \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u043c\u044b \u043c\u0430\u0440\u043a\u0438\u0440\u0443\u0435\u043c \u0438 \u0432\u0435\u0441\u044c \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0442\u0443\u043d\u043d\u0435\u043b\u044c.<\/p>\n<p>\u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430, \u0441\u043f\u0438\u0441\u043a\u0438 \u0431\u0443\u0434\u0435\u043c \u0431\u0440\u0430\u0442\u044c \u0443 antifilter.network.<\/p>\n<p>\u0414\u043b\u044f \u0432\u044b\u043a\u0430\u0447\u043a\u0438 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u043d\u0443\u0436\u0435\u043d \u0441\u043a\u0440\u0438\u043f\u0442. \u041d\u0430 <a href=\"https:\/\/forum.mikrotik.com\/viewtopic.php?p=935938#p935938\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0444\u043e\u0440\u0443\u043c\u0435 Mikrotik<\/a> \u0433\u0443\u0440\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0434\u043b\u044f ROS \u0443\u0436\u0435 4 \u0433\u043e\u0434\u0430 \u0432\u044b\u043b\u0438\u0437\u044b\u0432\u0430\u044e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432. \u0415\u0433\u043e \u0438 \u0432\u043e\u0437\u044c\u043c\u0451\u043c.<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u0438\u043f\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c.<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>{ \/ip firewall address-list :local update do={  :put \"Starting import of address-list: $listname\"  :if ($nolog = null) do={:log warning \"Starting import of address-list: $listname\"}    :local displayed true  :local maxretry 3  :local retrywaitingtime 120s  :local retryflag true  :for retry from=1 to=$maxretry step=1 do={   :if (retryflag) do={ :set $retryflag false; :set $sounter 0   :if (retry > 1) do={    :put \"Source file changed. Retring after a $retrywaitingtime wait...\"    :if ($nolog = null) do={:log warning \"Source file changed. Retring after a $retrywaitingtime wait...\"}    :delay $retrywaitingtime  }      :local fetchResult [\/tool fetch url=$url keep-result=no as-value]   :local filesize ($fetchResult->\"total\")   :local downsize ($fetchResult->\"downloaded\")    :if ($filesize = 0 &amp;&amp; $downsize > 0) do={ :set $filesize $downsize}    :local start 0   :local maxsize 64000;        # reqeusted chunk size   :local end ($maxsize - 1);# because start is zero the maxsize has to be reduced by one   :local partnumber ($filesize \/ ($maxsize \/ 1024)); # how many chunk are maxsize   :local remainder ($filesize % ($maxsize \/ 1024)); # the last partly chunk    :if ($remainder > 0)    do={ :set $partnumber ($partnumber + 1) }; # total number of chunks   :if ($heirule != null) do={:put \"Using as extra filtering: $heirule\"} else={:set $heirule \".\"}  # remove the current list completely if \"erase\" is not present (default setting)   :if ($noerase = null) do={      :if ($timeout = null) do={:set $timeout 00:00:00; :do {:foreach i in=[\/ip firewall address-list find list=$listname] do={\/ip firewall address-list set list=(\"backup\".$listname) $i }} on-error={} } else={    :do {:foreach i in=[\/ip firewall address-list find list=$listname dynamic] do={\/ip firewall address-list set list=(\"backup\".$listname) $i }} on-error={} };                    :put (\"Conditional deleting all\".$dynamic.\" entries in address-list: $listname\")    :if ($nolog = null) do={:log warning (\"Conditional deleting all\".$dynamic.\" entries in address-list: $listname\")}   } else={:put \"Entries not conditional deleted in address-list: $listname\"}; # ENDIF ERASE  :for x from=1 to=$partnumber step=1 do={    # get filesize to be compared to the orignal one and if changed then retry    :local comparesize ([\/tool fetch url=$url keep-result=no as-value]->\"total\")    :if ($comparesize = 0 &amp;&amp; $downsize > 0) do={ :set $comparesize $downsize}        # fetching the chunks from the webserver when the size of the source file has not changed    # empty array when the source file changed. No processing is done till the next complete retry    :if ($comparesize = $filesize) do={:set $data ([:tool fetch url=$url http-header-field=\"Range: bytes=$start-$end\" output=user as-value]->\"data\")} else={:set $data [:toarray \"\"]; :set $retryflag true}      #:if ($ownposix = null) do={   # determining the used delimiter in the list, when not provided in the config    # this only run once and so the impact on the import time is low     :local ipv4Posix  \"^[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}\"     :local ipv4rangePosix \"^[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}\\\\.[0-9]{1,3}\/[0-9]{1,2}\"     :local domainPosix  \"^.+\\\\.[a-z.]{2,7}\"     :local sdata $data;    # removes any lines at the top of the file that could interfere with finding the correct posix. Setting remarksign is needed     :while ([:pick $sdata 0 1] = $remarksign) do={ :set $sdata [:pick $sdata ([:find $sdata \"\\n\"]+1) [:len $sdata]] }         :while ([:len $sdata]!=0 &amp;&amp; $delimiter = null) do={ # The check on length of $sdata is for if no delimiter is found.           :local sline [:pick $sdata 0 [:find $sdata \"\\n\"]]; :local slen [:len $sline];        # set posix depending of type of data used in the list        :if ($sline ~ $ipv4Posix)    do={:set $posix $ipv4Posix;     :set $iden \"List identified as a IPv4 list\"}        :if ($sline ~ $ipv4rangePosix)do={:set $posix $ipv4rangePosix; :set $iden \"List identified as a IPv4 with ranges list\"}        :if ($sline ~ $domainPosix)    do={:set $posix $domainPosix; :set $iden \"List identified as a domain list\"}        :if ($sline ~ $posix) do={:put $iden}       :if ($sline ~ $posix) do={ # only explore the line if there is a match at the start of the line.       :do {:if ([:pick $sline 0 ($slen-$send)] ~ ($posix.\"\\$\") || $send > $slen) do={         :set $delimiter [:pick $sline ($slen-$send) ($slen-($send-1))]; :set $result true} else={:set $send ($send+1)}                :if ($result) do={ :set  $extra [:pick $sline ($slen-$send) ($slen-($send-1))]               :if ( $extra = \" \" )   do={ :set $delimiter [:pick $sline ($slen-$send) ($slen-($send-2))] }               :if ( $extra = \"  \" )  do={ :set $delimiter [:pick $sline ($slen-$send) ($slen-($send-3))] }               :if ( $extra = \"   \" ) do={ :set $delimiter [:pick $sline ($slen-$send) ($slen-($send-4))] }              }; # EndIf result       } while (!$result); # EndDoWhile     }; #IF sline posix :set $sdata [:pick $sdata ([:find $sdata \"\\n\"]+1) [:len $sdata]]; # cut off the already searched lines :if ($delimiter != null) do={:local sdata [:toarray \"\"]} ; #Clearing sdata array ending the WhileDo loop     }; #WHILE END $sdata     :local sdata [:toarray \"\"]    :if ([:len $delimiter] = 0) do={ :set $delimiter \"\\n\"; :set $delimiterShow \"New Line\" } else={ :set $delimiterShow $delimiter }; # when empty use NewLine 20220529    #} else={:put \"User defind Posix: $ownposix\"; :set $posix $ownposix } ; # ENDIF ownposix = null    :if ($delimiter != null &amp;&amp; $displayed ) do={:set $displayed false; :put \"Using config provided delimiter: \\\"$delimiterShow\\\"\"}    :if ($posix = null) do={:set $posix \".\"}; # Use a match all posix if nothing is defined or found     :if (!retryflag) do={:put \"Reading Part: $x $start - $end\"}       :if ($timeout = null) do={:local timeout 00:00:00}; # if no timeout is defined make it a static entry.        # Only remove the first line only if you are not at the start of list     :while ( [:pick $data 0 1] = $remarksign) do={ :set $data [:pick $data ([:find $data \"\\n\"]+1) [:len $data]] }; # removes the invalid line (Spamhaus)         :if ($start > 0) do={:set $data [:pick $data ([:find $data \"\\n\"]+1) [:len $data]]}      :while ([:len $data]!=0) do={        :local line [:pick $data 0 [:find $data \"\\n\"]]; # create only once and checked twice as local variable        :if ( $line ~ $posix &amp;&amp; $line~heirule) do={             :do {add list=$listname address=[:pick $data 0 [:find $data $delimiter]] comment=$comment timeout=$timeout; :set $counter ($counter + 1)} on-error={}; # on error avoids any panics                }; # if IP address &amp;&amp; extra filter if present       :set $data [:pick $data ([:find $data \"\\n\"]+1) [:len $data]]; # removes the just added IP from the data array       # Cut of the end of the chunks by removing the last lines...very dirty but it works       :if ([:len $data] &lt; 256) do={:set $data [:toarray \"\"]}          }; # while    :set $start (($start-512) + $maxsize); # shifts the subquential start back by 512     :set $end (($end-512) + $maxsize); # shift the subquential ends back by 512 to keep the    }; # if retryflag  }; #do for x   }; # for retry  :if ($counter &lt; 1) do={:set $resultline \"Import was NOT successfull! Check if the list $listname is still being maintained.\"} else={:set $resultline \"Completed reading $counter items into address-list $listname.\" }   :put $resultline  :if ($nolog = null) do={:log warning $resultline }  :if ($counter > 0) do={:do {\/ip firewall address-list remove [find where list=(\"backup\".$listname)]} on-error={} } else={  :do {:foreach i in=[\/ip firewall address-list find list=(\"backup\".$listname)] do={\/ip firewall address-list set list=$listname $i }} on-error={}  :put \"Restoring backup list: $listname\"   :if ($nolog = null) do={:log warning \"Restoring backup list: $listname\"}  }; # if counter restore on failure and remove on success }; # do $update url=https:\/\/antifilter.network\/download\/ipsmart.lst listname=vpn-ip timeout=1d nolog=1 $update url=https:\/\/antifilter.network\/download\/subnet.lst listname=vpn-subnet timeout=1d nolog=1 }  # To be used configline settings: # url=        https:\/\/name.of.the.list # listname=name of address-list  # Optinal settings # timeout=the time the entry should be active. If omited then static entries are created. # comment=puts this comment on every line in the choosen address-list (default: no comment) # heirule=this will select on a word on each line if to import or not (default: no heirule) # noerase=any value, then the current list is not erased (default: erase) # ownPosix=allow to enter a onw regEX posix to be used (not ative at this moment) # nolog=        any value, then don't write to the log (default: writing to log) <\/code><\/pre>\n<\/div>\n<\/details>\n<p>\u0411\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0438 ipsmart \u0438 subnet. \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0432\u043e\u0439 address-list. \u0415\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0438, \u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0438\u0445 \u0432 <code>$update url<\/code>.<\/p>\n<p>\u041f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u0435\u0433\u043e \u0432 <strong>System &#8212; Scripts &#8212; Add new<\/strong>. \u0421\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u0435 source.<br \/> Policy: read, write, test.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/sh\/mq\/lh\/shmqlhxowdeksdiffvvxbouybvm.png\" data-src=\"https:\/\/habrastorage.org\/webt\/sh\/mq\/lh\/shmqlhxowdeksdiffvvxbouybvm.png\"\/><\/figure>\n<p>\u0421\u0440\u0430\u0437\u0443 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c <strong>Run Script<\/strong>.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043c\u043e\u0436\u043d\u043e \u0432 <strong>Firewall &#8212; Address Lists<\/strong>.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043a\u0440\u043e\u043d <strong>System &#8212; Scheduler &#8212; Add new<\/strong>.<\/p>\n<ul>\n<li>\n<p>Policy \u0442\u0430\u043a\u0438\u0435 \u0436\u0435, \u043a\u0430\u043a \u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/p>\n<\/li>\n<li>\n<p>Interval &#8212; \u0440\u0430\u0437 \u0432\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u0430\u0437 \u0432 23 \u0447\u0430\u0441\u0430: 23:00:00.<\/p>\n<\/li>\n<li>\n<p>On Event &#8212; \u0438\u043c\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u0434\u0430\u043b\u0438 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code>\/system scheduler add interval=23h name=ScheduleGetLists on-event=GetLists policy=\\     read,write,test <\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0432 \u0442\u0443\u043d\u043d\u0435\u043b\u044c \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438 \u0434\u0432\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432. \u041d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e $INTERFACE \u0438\u043c\u044f \u0432\u0430\u0448\u0435\u0433\u043e VPN \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.<\/p>\n<pre><code>\/routing table add disabled=no fib name=vpn \/ip route add comment=vpn disabled=no distance=1 dst-address=0.0.0.0\/0 gateway=$INTERFACE pref-src=\"\" routing-table=vpn suppress-hw-offload=no \/ip firewall mangle add action=mark-routing chain=prerouting disabled=no dst-address-list=vpn-ip new-routing-mark=vpn passthrough=yes \/ip firewall mangle add action=mark-routing chain=prerouting disabled=no dst-address-list=vpn-subnet new-routing-mark=vpn passthrough=yes <\/code><\/pre>\n<p>\u0414\u0435\u043b\u0430\u0439\u0442\u0435 \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0443 \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0442\u0443\u043d\u043d\u0435\u043b\u044c.<\/p>\n<h3>\u041a\u0430\u043a \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u043f\u0440\u0438 mangle+address-list?<\/h3>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c mangle \u043f\u0440\u0430\u0432\u0438\u043b\u043e. <strong>ip &#8212; firewall &#8212; mangle<\/strong>, \u043a\u043d\u043e\u043f\u043a\u0430 Disable \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430.<\/p>\n<h2>\u0421\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432 Address lists<\/h2>\n<p>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u0430\u043c\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u043c\u0443. \u042f \u0434\u043e\u0441\u0442\u0430\u043b Mikrotik \u0438\u0437 \u0448\u043a\u0430\u0444\u0430 \u0438\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e. \u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432 ROS \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u043d\u0433 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u0445 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0432 \u0441\u043f\u0438\u0441\u043a\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0432 address-lists \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0434\u043e\u043c\u0435\u043d, \u043e\u043d \u0441\u0440\u0430\u0437\u0443 \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442\u0441\u044f \u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u043c \u0441\u043f\u0438\u0441\u043a\u0435. \u0417\u0432\u0443\u0447\u0438\u0442 \u043d\u0435\u043f\u043b\u043e\u0445\u043e, \u043d\u043e \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u043e\u0447\u043a\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c.<\/p>\n<p>\u042d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 5, 10, 20 \u0434\u043e\u043c\u0435\u043d\u0430\u0445, \u043d\u043e \u0435\u0441\u043b\u0438 \u0447\u0438\u0441\u043b\u043e \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u043f\u0435\u0440\u0435\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0437\u0430 \u0441\u043e\u0442\u043d\u044e, \u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u0440\u043c\u043e\u0437\u0430. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0431\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430 mangle, \u043d\u0443 \u0430 \u0441 \u043d\u0438\u043c \u0440\u043e\u0443\u0442\u0435\u0440\u0443 \u0442\u043e\u0447\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043b\u043e\u0445\u043e.<\/p>\n<p>\u0412\u043e\u0437\u044c\u043c\u0451\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0441 ~500 \u0434\u043e\u043c\u0435\u043d\u0430\u043c\u0438 \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e sed \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432 address-list.<\/p>\n<p>\u0427\u0438\u0441\u0442\u043e \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432, \u0432\u043e\u0437\u044c\u043c\u0451\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0441 ~500 \u0434\u043e\u043c\u0435\u043d\u0430\u043c\u0438 \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e sed \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432 address-list.<br \/> \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u044e, \u0432\u0430\u0448\u0435\u043c\u0443 \u0440\u043e\u0443\u0442\u0435\u0440\u0443, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0441\u0442\u0430\u043d\u0435\u0442 \u043f\u043b\u043e\u0445\u043e. \u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c, \u043d\u0435 \u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u044d\u0442\u043e \u043d\u0430 \u043f\u0440\u043e\u0434\u0435. \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u0439\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0438 \u0442\u0435\u0441\u0442\u043e\u0432.<\/p>\n<pre><code>wget -qO- https:\/\/raw.githubusercontent.com\/itdoginfo\/allow-domains\/main\/Russia\/inside-raw.lst | sed \"s\/.*\/add address=&amp; list=vpn-domains\/\" <\/code><\/pre>\n<p>\u041f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<pre><code>\/ip\/firewall\/address-list\/ <\/code><\/pre>\n<p>\u042f \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u044d\u0442\u043e \u043f\u0430\u0440\u0443 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0440\u0430\u0437 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f 500 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0431\u044b\u0432\u0430\u0435\u0442 \u0440\u0430\u0437\u043d\u044b\u043c. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b ROS \u0441 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438.<\/p>\n<p>\u0411\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u0432\u0441\u0451 \u0432\u0438\u0441\u043d\u0435\u0442, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c. \u0410 \u0431\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u0432\u0441\u0451 \u043e\u043a\u0435\u0439, \u043d\u043e \u0447\u0443\u0442\u044c \u043f\u043e\u0442\u044b\u043a\u0430\u0432, \u0437\u0430\u043c\u0435\u0447\u0430\u043b \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043b\u0430\u0433\u0438. \u0418 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0447\u0438\u0441\u0442\u043a\u0438 \u0441\u043f\u0438\u0441\u043a\u0430 \u0432\u0441\u0451 \u0432\u0441\u0442\u0430\u0451\u0442 \u043d\u0430 \u0441\u0432\u043e\u0438 \u043c\u0435\u0441\u0442\u0430.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432\u043e \u0432\u0441\u0435\u0445 \u0441\u043f\u0438\u0441\u043a\u0430\u0445<\/p>\n<pre><code>\/ip firewall address-list remove [find] <\/code><\/pre>\n<p>\u0418\u043b\u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u0441\u043f\u0438\u0441\u043a\u0435. \u041f\u0440\u0438\u043c\u0435\u0440 \u0441 vpn-domains<\/p>\n<pre><code>\/ip firewall address-list remove [find list~\"vpn-domains\"] <\/code><\/pre>\n<p>\u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0447\u0430\u0441\u0442\u043e \u0432\u044b\u0434\u0430\u0451\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 <code>no such item (4)<\/code>. \u0411\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437, \u0430 \u0431\u044b\u0432\u0430\u0435\u0442, \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0441\u0442\u0430\u0440\u0442 \u0440\u043e\u0443\u0442\u0435\u0440\u0430.<\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b: &#171;\u0443 \u043c\u0435\u043d\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u043e\u0443\u0442\u0435\u0440 \u043f\u043e\u0447\u0442\u0438 \u0441\u0430\u043c\u043e\u0439 \u043c\u043b\u0430\u0434\u0448\u0435\u0439 \u043c\u043e\u0434\u0435\u043b\u0438&#187;.<\/p>\n<p>\u041f\u043e \u043c\u043e\u0438\u043c \u043e\u043f\u044b\u0442\u0430\u043c \u044d\u0442\u043e \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u0438 \u0436\u0435\u043b\u0435\u0437\u0430. \u042f \u043f\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 c ROS, \u0434\u0430\u0432 \u0435\u0439 4 Ryzen 5 5600U \u044f\u0434\u0440\u0430 \u0438 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0417\u0430\u043a\u0438\u043d\u0443\u0432 \u0442\u0443\u0434\u0430 \u0442\u0435 \u0436\u0435 500 \u0434\u043e\u043c\u0435\u043d\u043e\u0432. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u044b\u043b \u0442\u0430\u043a\u043e\u0439 \u0436\u0435.<\/p>\n<p>\u041d\u043e \u044f \u0437\u0430\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u043d\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438\u0437 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432\u043b\u0438\u044f\u0435\u0442 DNS \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0440\u043e\u0443\u0442\u0435\u0440. \u041d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 DNS-\u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u0441\u043f\u0438\u0441\u043e\u043a \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0441\u043e \u0441\u043a\u0440\u0438\u043f\u043e\u043c, \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u0412\u0438\u0434\u0438\u043c\u043e, \u0442\u0443\u0442 \u0434\u0435\u043b\u043e \u0432 \u043b\u0438\u043c\u0438\u0442\u0430\u0445 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u044b. \u0418\u043b\u0438 \u043c\u043e\u0436\u0435\u0442 \u0434\u0435\u043b\u043e \u0432 \u043e\u0433\u0440\u0430\u0447\u0435\u043d\u0438\u0438 1\u041c\u0431\u0438\u0442\/\u0441 \u0434\u043b\u044f ROS Cloud \u0431\u0435\u0437 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438.<\/p>\n<p>\u041d\u043e \u043f\u043e\u043c\u0438\u043c\u043e \u043c\u043e\u0438\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432, \u043e\u0434\u0438\u043d \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043f\u043e\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u043e\u043f\u044b\u0442\u043e\u043c: hAP ac2 \u043f\u0440\u0438 \u0441\u043e\u0442\u043d\u0435 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0440\u043e\u0443\u0442\u0435\u0440 \u043d\u0430\u0433\u0440\u0435\u0432\u0430\u043b\u0441\u044f \u0438 \u0441\u0430\u043c \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u043b\u0441\u044f.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c, \u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e, \u0441\u0441\u044b\u043b\u043a\u0430 \u0432\u043d\u0430\u0447\u0430\u043b\u0435.<\/p>\n<p>\u041c\u043e\u0433\u0443 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a\u043e\u0432\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f. \u0412 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0439 \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432 \u0441\u043f\u0438\u0441\u043a\u0430\u0445.<\/p>\n<p>\u042f \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u0440\u043e \u044d\u0442\u043e \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043f\u0438\u0448\u0435\u0442. \u0412\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0443\u0432\u0438\u0434\u0435\u043b \u043d\u0438\u0433\u0434\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0439, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0441 \u043f\u0430\u0440\u043e\u0439 \u0441\u043e\u0442\u043d\u0435\u0439 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432 address-lists. \u041a \u044d\u0442\u043e\u043c\u0443 \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0439\u0442\u0438, \u0440\u0435\u0448\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441 \u0441\u0443\u043c\u043c\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u044d\u0442\u043e\u0433\u043e, \u0435\u0441\u0442\u044c \u0435\u0449\u0451 \u043f\u0430\u0440\u043e\u0447\u043a\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c:<\/p>\n<ul>\n<li>\n<p>\u041e\u043d \u0443\u043c\u0435\u0435\u0442 \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u044b, \u044d\u0442\u043e \u0441\u0442\u0430\u0432\u0438\u0442 \u0432 \u0432\u044b\u0433\u043e\u0434\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0444\u043e\u043d\u0435 \u0442\u043e\u0433\u043e \u0436\u0435 Dnsmasq (\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 <strong>\u0442\u043e\u043b\u044c\u043a\u043e<\/strong> \u043f\u043e wildcard). \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043e\u0433\u0434\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432 \u0441\u043f\u0438\u0441\u043a\u0430\u0445, \u0430 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d \u043d\u0443\u0436\u0435\u043d. \u041d\u043e, \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u044d\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u044b \u0440\u0435\u0441\u0443\u0440\u0441\u0430. \u0414\u043b\u044f \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c, \u0430 \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0438 \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u044d\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/p>\n<\/li>\n<li>\n<p>ROS \u0441\u0430\u043c\u0430 \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442 \u044d\u0442\u0438 \u0434\u043e\u043c\u0435\u043d\u044b. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043c\u044b \u0442\u0443\u0442 \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c wildcard \u0438 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, ROS \u043e\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 TTL DNS-\u0437\u0430\u043f\u0438\u0441\u0438. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 TTL 8 \u0447\u0430\u0441\u043e\u0432, \u0437\u0430\u043f\u0438\u0441\u044c \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0440\u0430\u0437 \u0432 8 \u0447\u0430\u0441\u043e\u0432, \u0430 \u0431\u044b\u0432\u0430\u0435\u0442, TTL \u0441\u0442\u0430\u0432\u044f\u0442 \u043e\u043a\u043e\u043b\u043e \u043d\u0443\u043b\u044f, \u0438 \u0440\u043e\u0443\u0442\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438. \u0418 \u044d\u0442\u043e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f.<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0430 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438 mangle \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u0447\u0443\u0434\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0431\u044b \u0431\u044b\u0441\u0442\u0440\u043e, \u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0443\u043f\u0438\u0440\u0430\u0435\u0448\u044c\u0441\u044f \u0432 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0432\u044b\u0448\u0435.<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432 Address list \u043f\u043b\u043e\u0445\u0430\u044f \u0437\u0430\u0442\u0435\u044f.<\/p>\n<h3>\u041a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u043d\u0433\u043e\u043c \u0432 ROS<\/h3>\n<p>\u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u0438\u0437 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u043d\u0433\u0430 ROS?<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 Address-lists \u0441\u0430\u043c\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043e\u043c\u0435\u043d\u044b. \u0421\u043a\u043e\u0440\u0435\u0435 \u0434\u0430\u0436\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u0430\u0445 \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439 \u0438\u043b\u0438 \u043e\u043d\u0438 \u0440\u0435\u0437\u043e\u043b\u0432\u044f\u0442\u0441\u044f \u0443 \u0432\u0430\u0441 \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443.<\/p>\n<p>\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0443 \u0441\u0442\u0430\u043d\u0435\u0442 \u043f\u043b\u043e\u0445\u043e.<\/p>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430 \u043f\u043e Address List, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d magle<\/p>\n<pre><code>\/ip firewall mangle add action=mark-routing chain=prerouting disabled=yes dst-address-list=vpn-domains new-routing-mark=vpn passthrough=yes <\/code><\/pre>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f BGP, \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0447\u0442\u043e \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0432\u043e\u0451 \u0438\u043c\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0432 $LIST:<\/p>\n<pre><code>\/routing table add disabled=no fib name=vpn \/ip route add comment=vpn disabled=no distance=1 dst-address=0.0.0.0\/0 gateway=$INTERFACE pref-src=\"\" routing-table=vpn suppress-hw-offload=no \/ip firewall mangle add action=mark-routing chain=prerouting disabled=no dst-address-list=$LIST new-routing-mark=vpn passthrough=yes <\/code><\/pre>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043b\u0443\u0447\u0448\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f Mikrotik, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u044f \u043f\u0440\u0438\u0448\u0451\u043b &#8212; \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c BGP + mangle \u043f\u043e \u0434\u043e\u043c\u0435\u043d\u0430\u043c.<\/p>\n<h3>\u041a\u043e\u0441\u0442\u044b\u043b\u0438<\/h3>\n<p>\u041a\u043e\u0441\u0442\u044b\u043b\u0438 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u044b \u043d\u0430 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 DNS-\u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 ROS, \u0430 \u043f\u043e\u0434\u043d\u044f\u0442\u044b\u0439 \u0433\u0434\u0435-\u0442\u043e \u0443 \u0441\u0435\u0431\u044f. \u041e\u043d, \u0442\u0435\u043c \u0438\u043b\u0438 \u0438\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u0432 Address-list \u0438\u043b\u0438 routes \u0447\u0435\u0440\u0435\u0437 BGP \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0443 \u0434\u043e\u043c\u0435\u043d\u043e\u0432.<\/p>\n<p>\u0412\u043e\u0442 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 BGP: <a href=\"https:\/\/habr.com\/ru\/articles\/467547\/\" rel=\"noopener noreferrer nofollow\">\u041e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0420\u041a\u041d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e DNSTap \u0438 BGP<\/a><\/p>\n<p>\u0427\u0442\u043e \u0435\u0449\u0451 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c?<\/p>\n<ul>\n<li>\n<p>OpenWrt \u043a\u0430\u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u0441 DNS \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0438 \u043a\u0430\u043a\u0438\u043c-\u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u0432\u043d\u0443\u0442\u0440\u0438<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c DNS \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 docker \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435, \u0435\u0441\u043b\u0438 \u0432\u0430\u0448 \u0440\u043e\u0443\u0442\u0435\u0440 \u0438\u043c\u0435\u0435\u0442 ARM \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u043e USB \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c zero PI \u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u044d\u0442\u043e \u043d\u0430 \u043d\u0451\u043c.<\/p>\n<\/li>\n<\/ul>\n<p>\u042f \u043d\u0438\u0447\u0435\u0433\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u043b. \u0415\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u0432\u044b, \u0434\u0430, \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e \u0432\u0430\u0448 \u043e\u043f\u044b\u0442.<\/p>\n<h2>\u0421\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432 DNS static, wildcard. \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0432 ROS 7.5<\/h2>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u042e\u0440\u0438\u044e \u0420\u044f\u043f\u043e\u043b\u043e\u0432\u0443 <a class=\"mention\" href=\"\/users\/xen85\">@xen85<\/a>, <a href=\"https:\/\/t.me\/itdogcomments\/1086\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u043b\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e<\/a> \u0435\u0449\u0451 \u043e\u0431 \u043e\u0434\u043d\u043e\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432 address-list. \u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0435\u043c\u0443 \u0437\u0430 \u044d\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435.<\/p>\n<p>\u0412 \u0432\u0435\u0440\u0441\u0438\u0438 7.5 <a href=\"https:\/\/mikrotik.com\/download\/changelogs\" rel=\"noopener noreferrer nofollow\">\u0431\u044b\u043b\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430<\/a> \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0444\u0438\u0447\u0430<\/p>\n<pre><code>*) dns - added \"address-list\" parameter for static DNS entries (CLI only); *) dns - added \"match-subdomain\" option for static entries (CLI only); <\/code><\/pre>\n<p>\u041d\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u0439\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 <code>CLI only<\/code>, \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u044d\u0442\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0438 \u0432 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0438 \u0432 winbox.<br \/> \u042d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e \u043f\u043e\u0434\u043e\u0431\u0438\u044e Dnsmasq+ipset.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u043e\u043c\u0435\u043d \u0432 \/ip\/dns\/static<\/p>\n<pre><code>\/ip dns static add name=terraform.io type=FWD forward-to=8.8.8.8 address-list=vpn-domains match-subdomain=yes <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u0434\u043e\u043c\u0435\u043d\u0430 \u0438 \u0435\u0433\u043e \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u043f\u0440\u0438 \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u043d\u0433\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0432 address-list vpn-domains.<br \/> \u0412 <strong>type<\/strong> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c FWD \u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043a \u043a\u0430\u043a\u043e\u043c\u0443 DNS-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>match-subdomain<\/strong> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u0441\u0443\u0431\u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430 \u0432 address-list.<\/p>\n<p>IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u0432 address-list \u0431\u0443\u0434\u0435\u0442 \u0436\u0438\u0442\u044c, \u043f\u043e\u043a\u0430 \u0436\u0438\u0432\u0451\u0442 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \/ip\/dns\/cache, \u0430 \u0442\u0430\u043c \u043e\u043d\u0430 \u0436\u0438\u0432\u0451\u0442, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0438\u0441\u0442\u0435\u0447\u0451\u0442 \u0435\u0451 TTL.<br \/> Mikrotik hAP ac lite \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0432\u044b\u0432\u0435\u0437 555 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432 static. \u041d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u043e\u0441\u044c.<\/p>\n<p>\u0422\u0443\u0442 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0447\u0442\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0434\u043e \u043a\u0443\u0434\u0430-\u0442\u043e \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c DNS \u0437\u0430\u043f\u0440\u043e\u0441. \u041d\u0435\u043b\u044c\u0437\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0432 address-list. \u0415\u0449\u0451 \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/wiki.mikrotik.com\/wiki\/Manual:IP\/DNS\" rel=\"noopener noreferrer nofollow\">\u0432\u043c\u0435\u0441\u0442\u0435 \u0441 DoH<\/a>:<\/p>\n<blockquote>\n<p>Currently DoH is not compatible with FWD type static entries, in order to utilize FWD entries, DoH must not be configured.<\/p>\n<\/blockquote>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0435\u0441\u043b\u0438 \u0432\u0430\u0448 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442\/\u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0435\u0442 DNS-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043c\u043e\u0436\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c DNS-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432 \u0442\u0443\u043d\u043d\u0435\u043b\u044c. \u041d\u0443\u0436\u0435\u043d \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u043e\u043b\u0432\u0435\u0440 \u043d\u0430 IP-\u0430\u0434\u0440\u0435\u0441\u0435 \u0433\u0435\u0439\u0442\u0430 VPN-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u043b\u0438 \u0432 \u0435\u0433\u043e \u043f\u043e\u0434\u0441\u0435\u0442\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 DNS-\u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0437\u0432\u0451\u0440\u043d\u0443\u0442 \u0440\u044f\u0434\u043e\u043c \u0441 \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u044d\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u0442, \u0434\u0430\u0439\u0442\u0435 \u0437\u043d\u0430\u0442\u044c, \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0432\u0430\u0448 \u043a\u043e\u0434 \u0441\u044e\u0434\u0430.<\/p>\n<p>\u0411\u0435\u0437 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a. \u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f:<\/p>\n<pre><code>wget -qO- https:\/\/raw.githubusercontent.com\/itdoginfo\/allow-domains\/main\/Russia\/inside-raw.lst | sed \"s\/.*\/\\\/ip dns static add name=&amp; type=FWD forward-to=8.8.8.8 address-list=vpn-domains match-subdomain=yes\/\" <\/code><\/pre>\n<p>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u044f:<\/p>\n<pre><code>wget -qO- https:\/\/raw.githubusercontent.com\/itdoginfo\/allow-domains\/main\/Russia\/inside-raw.lst | sed \"s\/.*\/\\\/ip dns static remove [\\\/ip dns static find name=&amp;]\/\" <\/code><\/pre>\n<p>\u041f\u043e\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u0432\u043e\u0439 DNS-\u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u043c\u0435\u0441\u0442\u043e 8.8.8.8.<\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u0437\u0430\u0440\u0435\u0437\u043e\u043b\u0432\u0435\u043d\u043d\u044b\u043c IP-\u0430\u0434\u0440\u0435\u0441\u0430\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u0442\u0443\u043d\u043d\u0435\u043b\u044c \u0442\u0430\u043a\u0436\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e mangle \u043f\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0432\u044b\u0448\u0435.<\/p>\n<p>\u0412 Dnsmasq \u0442\u0430\u043a\u0430\u044f \u0444\u0438\u0447\u0430 <a href=\"https:\/\/thekelleys.org.uk\/dnsmasq\/CHANGELOG\" rel=\"noopener noreferrer nofollow\">\u0431\u044b\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430<\/a> 10 \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u0432 \u0432\u0435\u0440\u0441\u0438\u0438 2.66. \u0411\u0443\u0434\u0435\u043c \u043d\u0430\u0434\u0435\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 ROS \u0441\u0434\u0435\u043b\u0430\u044e\u0442 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d type, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0440\u0435\u0437\u043e\u043b\u0432\u0435\u0440\u0443 \u0431\u0435\u0437 forwarding. \u0418 \u0442\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0432\u0441\u0435\u043c \u0445\u043e\u0440\u043e\u0448\u043e.<\/p>\n<h2>\u041f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0432\u043c\u0435\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 DNS \u0442\u0440\u0430\u0444\u0438\u043a<\/h2>\n<p>\u0412 ROS7 \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 DoH, \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 <strong>IP &#8212; DNS<\/strong>. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c DoH \u0441\u0435\u0440\u0432\u0435\u0440. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>https:\/\/1.1.1.1\/dns-query<\/code>.<\/p>\n<h2>\u0411\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 VPN-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 \u0438 Mikrotik<\/h2>\n<p>Mikrotik \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043c\u0431\u0430\u0439\u043d\u044b XRay \u0438 Sing-box. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0438\u0436\u0443 \u0434\u0432\u0430 \u0441 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u043e\u0439 \u043f\u0443\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f:<\/p>\n<ol>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044f, \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u0432\u0430\u0448\u0438\u0445 VPN-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043a\u0443\u0434\u0430-\u0442\u043e \u0442\u0430\u043c \u0438 \u0437\u0430\u0431\u044b\u0442\u044c \u043e \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0426\u0435\u043f\u043e\u0447\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432. \u041a\u0430\u043a \u043c\u044b \u0437\u043d\u0430\u0435\u043c, VPN-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u043d\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043f\u0430\u043a\u0435\u0442 \u0438\u0434\u0451\u0442 \u043a \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u043c\u0443 IP-\u0430\u0434\u0440\u0435\u0441\u0443, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c WG \u043d\u0430 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u0443\u0436\u0435 \u0441 \u043d\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u0434\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 \u043d\u0435\u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u043c IP-\u0430\u0434\u0440\u0435\u0441\u043e\u043c. \u041b\u0438\u0431\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u044f\u0434\u043e\u043c \u0441 Mikrotik, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430 \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u0432 \u0442\u0443\u043d\u043d\u0435\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u0430\u0441\u043a\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0434 HTTPS.<\/p>\n<\/li>\n<li>\n<p>\u041c\u043d\u0435 \u043a\u0442\u043e-\u0442\u043e \u043f\u0438\u0441\u0430\u043b \u043f\u0440\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 XRay\/Sing-box \u0432 docker \u043f\u0440\u044f\u043c \u043d\u0430 Mikrotik. \u041e\u043f\u044f\u0442\u044c \u0436\u0435, \u043d\u0443\u0436\u0435\u043d \u0440\u043e\u0443\u0442\u0435\u0440 \u0441 ARM \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c. \u0414\u043b\u044f \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u0438 \u043d\u0435\u043d\u0430\u0434\u0451\u0436\u043d\u043e, \u043d\u043e \u043c\u043e\u0436\u0435\u0442, \u044f \u043e\u0448\u0438\u0431\u0430\u044e\u0441\u044c.<\/p>\n<\/li>\n<\/ol>\n<p>\u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0435\u0441\u0442\u044c \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u0432\u0430\u043c \u044d\u0442\u043e \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c \u0433\u043e\u0434\u0443. \u0418\u043b\u0438 \u043f\u043e\u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u0445\u0432\u0430\u0442\u0438\u0442 SSTP.<\/p>\n<h2>\u0420\u0435\u043b\u0435\u0432\u0430\u043d\u0442\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b<\/h2>\n<ul>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/articles\/549282\/\" rel=\"noopener noreferrer nofollow\">\u0421\u0442\u0430\u0442\u044c\u044f \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 BGP \u043d\u0430 Mikrotik \u043e\u0442 \u0430\u0432\u0442\u043e\u0440\u0430 antifilter.download<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/articles\/743572\/\" rel=\"noopener noreferrer nofollow\">\u0421\u0442\u0430\u0442\u044c\u044f \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 BGP \u0434\u043b\u044f OpenWrt<\/a><\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<p>\u0425\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0438 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0438 Shadowsocks\/VLESS\/etc \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435? \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043d\u0430 <a href=\"https:\/\/habr.com\/ru\/articles\/767464\/\" rel=\"noopener noreferrer nofollow\">OpenWrt<\/a>.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043e\u043f\u044b\u0442 \u043f\u043e \u043b\u044e\u0431\u043e\u043c\u0443 \u0438\u0437 \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u0441\u0442\u0430\u0442\u044c\u0438 &#8212; \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u043e \u0441\u043f\u0438\u0441\u043a\u0438 \u0434\u043e\u043c\u0435\u043d\u043e\u0432.<\/p>\n<p>\u0412\u0441\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043d\u043e\u0432\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044e \u0432 <a href=\"https:\/\/t.me\/+soFXzmlolyxlYjEy\" rel=\"noopener noreferrer nofollow\">\u043c\u043e\u0451\u043c\u00a0\u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u043a\u0430\u043d\u0430\u043b\u0435<\/a>.<\/p>\n<\/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\/775110\/\"> https:\/\/habr.com\/ru\/articles\/775110\/<\/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-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<ul>\n<li>\n<p>\u041a\u0430\u043a \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0437 500 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u043d\u0430 mikrotik, \u0447\u0442\u043e\u0431 \u043e\u043d \u0438\u0445 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043b \u0432 IP-\u0430\u0434\u0440\u0435\u0441\u0430?<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c Mikrotik \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442\u044c \u0434\u043e\u043c\u0435\u043d\u044b \u043f\u043e wildcard?<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u043f\u043e\u0434\u043d\u044f\u0442\u044c Shadowsocks\\VLESS \u043d\u0430 ROS?<\/p>\n<\/li>\n<\/ul>\n<p><s>\u041d\u0438\u043a\u0430\u043a<\/s><\/p>\n<p>\u042f \u0437\u0430\u0434\u0430\u043b\u0441\u044f \u044d\u0442\u0438\u043c\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c\u0438, \u0434\u043e\u0441\u0442\u0430\u043b hAP ac lite \u0438\u0437 \u0448\u043a\u0430\u0444\u0430 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b, \u043d\u0430 \u0447\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430 ROS 7 \u0432 \u043a\u043e\u043d\u0446\u0435 2023 \u0433\u043e\u0434\u0430. \u041f\u043e\u0442\u0435\u0441\u0442\u0438\u043b \u0432\u0441\u0435\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0437\u0430\u043f\u0438\u0445\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432 address-lists.<\/p>\n<p><strong>UPD 13.12.2023<\/strong> \u0421\u0442\u0430\u043b\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u0432 DNS static \u0438 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u0440\u0435\u0437\u043e\u043b\u0432\u0435\u043d\u043d\u044b\u0445 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0432 address list. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c wildcard. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0434 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c &#171;\u0421\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0432 DNS static, wildcard&#187;.<\/p>\n<h2>\u0412\u0438\u0434\u0435\u043e\u0432\u0435\u0440\u0441\u0438\u044f<\/h2>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/65ed4cd0d1b5b66d8d98fd40\" data-style=\"\" id=\"65ed4cd0d1b5b66d8d98fd40\" width=\"\"><\/div>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 WireGuard \u0432 ROS 7<\/h2>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0442\u0443\u043d\u043d\u0435\u043b\u044c, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0442\u0440\u0430\u0444\u0438\u043a \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u041f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0442\u0443\u043d\u043d\u0435\u043b\u0435\u0439 \u0432 ROS \u043c\u043d\u043e\u0433\u043e \u043c\u0430\u043d\u0443\u0430\u043b\u043e\u0432. \u042f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 WG, \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u043e \u043d\u0435\u043c\u0443 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0430\u043d \u043d\u0435\u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0439\u0442\u0438. \u0425\u043e\u0442\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u0442\u0443\u0442 \u043d\u0435\u0442.<\/p>\n<p>\u0412 address \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441 \u0441 \u043f\u043e\u0434\u0441\u0435\u0442\u044c\u044e (\u043f\u0440\u0438\u043c\u0435\u0440 10.7.0.2\/24), \u0432 network \u043f\u043e\u0434\u0441\u0435\u0442\u044c (\u043f\u0440\u0438\u043c\u0435\u0440 10.7.0.0).<\/p>\n<pre><code>\/interface wireguard add listen-port=51820 mtu=1420 name=wg0 private-key=\"$PRIVATE\" \/interface wireguard peers add allowed-address=0.0.0.0\/0 comment=wireguard endpoint-address=$HOST endpoint-port=51820 interface=wg0 persistent-keepalive=25s \\     preshared-key=\"$PRESHARED\" public-key=\"$PUBLIC\" \/ip address add address=$IP interface=wg0 network=$NETWORK \/ip firewall nat add action=masquerade chain=srcnat out-interface=wg0 <\/code><\/pre>\n<p>\u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 persistent-keepalive, \u0431\u0435\u0437 \u043d\u0435\u0433\u043e \u0442\u0443\u043d\u043d\u0435\u043b\u044c \u043d\u0435 \u043f\u043e\u0434\u043d\u0438\u043c\u0435\u0442\u0441\u044f.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0442\u0440\u0430\u0444\u0438\u043a \u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/p>\n<pre><code>\/ping habr.com interface wg0 <\/code><\/pre>\n<p>\u0415\u0449\u0451 \u043c\u043e\u0436\u043d\u043e \u0433\u043b\u044f\u043d\u0443\u0442\u044c, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f Rx \u0438 Tx \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u0435 \u0432 <strong>WireGuard &#8212; Peers<\/strong><\/p>\n<figure class=\"\"><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0438 \u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e.<\/p>\n<p>\u041a\u0430\u043a\u0438\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0434\u0435\u043d\u044c \u0434\u043b\u044f RouterOS?<\/p>\n<h2>BGP. \u041a\u043b\u0430\u0441\u0441\u0438\u043a\u0430 \u0434\u043b\u044f Mikrotik<\/h2>\n<p>\u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0443\u0441\u043b\u0443\u0433\u0443 \u0430\u043d\u043e\u043d\u0441\u0430 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438 \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/antifilter.download\/\" rel=\"noopener noreferrer nofollow\">https:\/\/antifilter.download\/<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/antifilter.network\/\" rel=\"noopener noreferrer nofollow\">https:\/\/antifilter.network\/<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u041e\u043d\u0438 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u044e\u0442, \u0447\u0442\u043e\u0431 \u0432\u044b \u043c\u043e\u0433\u043b\u0438 \u0438\u0445 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435. \u041d\u043e \u0434\u043b\u044f \u0443\u0447\u0435\u0431\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439 \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 \u0442\u0443\u043d\u043d\u0435\u043b\u044c.<\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u043e\u0437\u043d\u0438\u043a \u0432 2018, \u0432\u0442\u043e\u0440\u043e\u0439 \u0432 2019 \u0433\u043e\u0434\u0443. \u0421\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0438 antifilter.network \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0437\u0430\u043f\u0430\u0440\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441 \u043d\u0435\u0439\u043c\u0438\u043d\u0433\u043e\u043c, \u043d\u043e \u0437\u0430\u043f\u0430\u0440\u0438\u043b\u0438\u0441\u044c \u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0441\u0435\u0440\u0432\u0438\u0441\u0430.<\/p>\n<p>\u041e\u0431\u0430 \u0438\u043c\u0435\u044e\u0442 \u0441\u043f\u0438\u0441\u043a\u0438:<\/p>\n<ul>\n<li>\n<p>\u0412\u0441\u0435 IP-\u0430\u0434\u0440\u0435\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0434\u043e \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c<\/p>\n<\/li>\n<li>\n<p>\u0418\u0445 \u0441\u0443\u043c\u043c\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0411\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u043f\u043e\u0434\u0441\u0435\u0442\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u0427\u0435\u043c \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f?<\/p>\n<ul>\n<li>\n<p>\u0423 antifilter.download \u0435\u0441\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a community. \u041e\u043d \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0438\u0437 \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u043d\u0433\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430<\/p>\n<\/li>\n<li>\n<p>\u0423 antifilter.network \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043a\u043e\u043b\u044c\u043d\u0430\u044f \u0444\u0438\u0447\u0430 \u043f\u043e \u0432\u044b\u0431\u043e\u0440\u0443 \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u043d\u0435 \u043f\u0440\u0438\u0431\u0435\u0433\u0430\u044f \u043a \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432 \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435<\/p>\n<\/li>\n<li>\n<p>\u0423 antifilter.network \u0435\u0441\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0441 \u0441\u0443\u043c\u043c\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u043e\u0442 \/32 \u0434\u043e \/23 \u043c\u0430\u0441\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>antifilter.network \u0438\u043c\u0435\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<p>\u0423 \u043e\u0431\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0435\u0441\u0442\u044c \u0447\u0430\u0442\u044b, \u0433\u0434\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u043e\u043f\u0440\u043e\u0441.<\/p>\n<h3>Antifilter.download<\/h3>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 subent+ipsum+community \u043e\u0442 antifilter.download. \u042d\u0442\u0438 \u0441\u043f\u0438\u0441\u043a\u0438 \u043e\u0442\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044e <a class=\"mention\" href=\"\/users\/talifan\">@talifan<\/a> \u0437\u0430 <a href=\"https:\/\/habr.com\/ru\/articles\/549282\/#comment_24184087\" rel=\"noopener noreferrer nofollow\">\u043a\u043e\u043d\u0444\u0438\u0433<\/a> \u0434\u043b\u044f ROS 7.<\/p>\n<p>\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435:<\/p>\n<ul>\n<li>\n<p>YOUR_AS &#8212; \u0432\u0430\u0448\u0430 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u0430\u044f AS. \u0427\u0438\u0441\u043b\u043e \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 64512-65543, \u043a\u0440\u043e\u043c\u0435 65432<\/p>\n<\/li>\n<li>\n<p>IP &#8212; \u0432\u0430\u0448 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 IP-\u0430\u0434\u0440\u0435\u0441 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u0442\u044c\u0441\u044f \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438<\/p>\n<\/li>\n<li>\n<p>INTERFACE &#8212; \u0438\u043c\u044f VPN \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a<\/p>\n<\/li>\n<\/ul>\n<pre><code>\/routing bgp template add as=$YOUR_AS disabled=no hold-time=4m input.filter=bgp_in .ignore-as-path-len=yes keepalive-time=1m multihop=yes name=antifilter routing-table=main \/routing bgp connection add disabled=no hold-time=4m input.filter=bgp_in .ignore-as-path-len=yes keepalive-time=1m local.role=ebgp multihop=yes name=antifilter_bgp remote.address=45.154.73.71\/32 .as=65432 router-id=$IP routing-table=main templates=antifilter \/routing filter rule add chain=bgp_in disabled=no rule=\"set gw $INTERFACE; accept;\" <\/code><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u043f\u0440\u0438\u0448\u043b\u0438, \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439<\/p>\n<pre><code>\/routing\/bgp\/session print <\/code><\/pre>\n<p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f prefix-count \u0438 messages \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043d\u0435 \u0440\u0430\u0432\u043d\u044b \u043d\u0443\u043b\u044e.<\/p>\n<p>\u041b\u0438\u0431\u043e \u0447\u0435\u0440\u0435\u0437 winbox\\\u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. <strong>Routing &#8212; BGP &#8212; Sessions<\/strong>, \u0443 \u043f\u043e\u0434\u043d\u044f\u0442\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 \u0440\u0430\u0437\u0434\u0435\u043b Stats. <\/p>\n<figure class=\"\"><\/figure>\n<p>\u0414\u0435\u043b\u0430\u0439\u0442\u0435 \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0443 \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0434\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0442\u0443\u043d\u043d\u0435\u043b\u044c.<\/p>\n<blockquote>\n<p>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0434 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0430\u0431\u0437\u0430\u0446\u0435\u043c. \u0423 antifilter.download \u0435\u0441\u0442\u044c community \u0441\u043f\u0438\u0441\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u0430\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438. \u0422\u0430\u043a\u0436\u0435 \u0432 BGP \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u0438\u0435 community, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u0441\u044f \u0434\u043b\u044f \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0447\u0430\u0441\u0442\u0438 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432. \u0412 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432. \u041d\u0435 \u0437\u0430\u043f\u0443\u0442\u0430\u0439\u0442\u0435\u0441\u044c.<\/p>\n<\/blockquote>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u0442\u0434\u0430\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 subnet, ipsum \u0438 community \u0441\u043f\u0438\u0441\u043a\u0438.<\/p>\n<p>\u0427\u0442\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u0438\u0441\u043e\u043a community, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c filter rule:<\/p>\n<pre><code>\/routing filter rule add chain=bgp_in disabled=no rule=\"set gw wg0; if (bgp-communities includes 65432:500) {accept} else {reject}\" <\/code><\/pre>\n<p>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 BGP community \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <strong>\u0427\u0430\u0412\u043e &#8212; &#171;\u041a\u0430\u043a\u0438\u0435 \u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 BGP-\u0444\u0438\u0434\u0435?&#187;<\/strong>.<\/p>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043b\u0435\u0442\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b, \u043d\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u044b \u0431\u0443\u0434\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e community.<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0432 <strong>ip &#8212; route<\/strong><\/p>\n<pre><code>\/ip\/route print <\/code><\/pre>\n<ul>\n<li>\n<p>Dab &#8212; active, \u0442\u0435, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>DbI &#8212; inactive, \u0442\u0435, \u0447\u0442\u043e \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0438 \u0434\u043b\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u0448 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 BGP, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0447\u0435\u0440\u0435\u0437 VPN \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c.<\/p>\n<pre><code>\/ip route add dst-address=45.154.73.71\/32 gateway=$INTERFACE <\/code><\/pre>\n<p>\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0432\u0437\u044f\u0442\u0430 \u0438\u0437 <a href=\"https:\/\/habr.com\/ru\/articles\/549282\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a><a class=\"mention\" href=\"\/users\/Furriest\">@Furriest<\/a>, \u0430\u0432\u0442\u043e\u0440\u0430 antifilter.download.<\/p>\n<h3>Antifilter.network<\/h3>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432 \u0441 antifilter.network \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0430.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <a href=\"https:\/\/antifilter.network\/bgp\" rel=\"noopener noreferrer nofollow\">https:\/\/antifilter.network\/bgp<\/a>.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u0439 \u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u0441\u043f\u0438\u0441\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u044b, \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u0435 reCAPTCHA \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442\u0435 <strong>\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c<\/strong>. \u0422\u0435\u043f\u0435\u0440\u044c \u043a \u0432\u0430\u0448\u0435\u043c\u0443 IP-\u0430\u0434\u0440\u0435\u0441\u0443 \u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0442\u0430\u043c AS \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u0430 \u043e\u0442\u0434\u0430\u0447\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432. \u0425\u0438\u0442\u0440\u043e \u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u043a\u043e\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e.<\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0442\u0430\u043a\u0430\u044f \u0436\u0435, \u043a\u0430\u043a \u0434\u043b\u044f antifilter.download, \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e Remote Address, Remote AS \u0438 \u0432\u0430\u0448\u0435\u0439 AS. \u0410 router-id \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u042d\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0441 \u0438\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b BGP. \u0424\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e community \u0442\u0443\u0442 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441 <code>accept;<\/code>.<\/p>\n<p>\u0421 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 BGP \u0441\u0435\u0441\u0441\u0438\u0435\u0439 \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435, \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 <strong>\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c<\/strong> \u0443\u0436\u0435 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u0440\u0438\u043b\u0435\u0442\u0430\u044e\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b.<\/p>\n<p>\u0414\u0435\u043b\u0430\u0439\u0442\u0435 \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0443 \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u0434\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430, \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0442\u0443\u043d\u043d\u0435\u043b\u044c.<\/p>\n<h3>\u041a\u0430\u043a \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0440\u043e\u0443\u0442\u0438\u043d\u0433 \u043f\u0440\u0438 mangle+address-list?<\/h3>\n<p><strong>Routing &#8212; BGP &#8212; Connection<\/strong>, \u043a\u043d\u043e\u043f\u043a\u0430 Disable \u0443 \u043f\u043e\u0434\u043d\u044f\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0435\u043a\u0448\u0435\u043d\u0430<\/p>\n<h3>\u041c\u043e\u0439 \u043e\u043f\u044b\u0442 \u0441 BGP \u0438 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438<\/h3>\n<p>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 &#8212; \u044d\u0442\u043e \u0441\u0443\u043c\u043c\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u044f. \u041e\u043d\u0430 \u043d\u0443\u0436\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u0441\u043e\u0442\u0435\u043d \u0442\u044b\u0441\u044f\u0447 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0432 Routes. \u041d\u043e \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432 \u0442\u0443\u043d\u043d\u0435\u043b\u044c \u0442\u0430\u043a\u0436\u0435 \u0443\u043b\u0435\u0442\u0430\u044e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b. \u0418 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439. \u0420\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0434\u0432\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u0438 \u0447\u0442\u043e \u0441 \u044d\u0442\u0438\u043c \u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u0440\u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0435 \u0443 \u0441\u0435\u0431\u044f \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u044d\u0442\u0438\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432, \u0432\u044b \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442\u0435 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0435\u0440\u0432\u044b\u0439. \u0421\u0430\u0439\u0442 habr.com<\/h4>\n<p>\u0423 \u043c\u0435\u043d\u044f <a href=\"http:\/\/habr.com\" rel=\"noopener noreferrer nofollow\">habr.com<\/a> \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442\u0441\u044f \u0432 <code>178.248.237.68<\/code>. \u042d\u0442\u043e\u0442 IP-\u0430\u0434\u0440\u0435\u0441 \u0438\u0437 \u043f\u043e\u0434\u0441\u0435\u0442\u0438 <code>178.248.236.0\/23<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e \u0432\u0441\u0435\u0445 \u0442\u0440\u0451\u0445 \u0441\u043f\u0438\u0441\u043a\u0430\u0445 \u0441 \u0441\u0443\u043c\u043c\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0443\u043d\u043d\u0435\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f WG, \u0441\u0430\u0439\u0442 \u0438\u0434\u0451\u0442 \u0447\u0435\u0440\u0435\u0437 \u0442\u0443\u043d\u043d\u0435\u043b\u044c \u0438 \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f. \u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043e\u0442\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u0443, tcpdump \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e IP-\u0430\u0434\u0440\u0435\u0441 <code>178.248.237.68<\/code> \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u043d\u0435\u043c\u0443 \u043e\u0442\u0434\u0430\u0451\u0442 \u043f\u0430\u0440\u0443 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043f\u043e HTTPS \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443.<\/p>\n<p>\u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u0430 \u043f\u043e\u0434\u0441\u0435\u0442\u044c \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Qrator Labs, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 DDOS-\u0437\u0430\u0449\u0438\u0442\u0443. \u0427\u0442\u043e-\u0442\u043e \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0438\u0437 \u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <a href=\"https:\/\/olegon.ru\/showthread.php?t=38451\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/a> \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043b <a class=\"mention\" href=\"\/users\/olegon-ru\">@olegon-ru<\/a>.<\/p>\n<p>\u0414\u0435\u043b\u043e \u0432 MSS \u0443 WireGuard. \u041f\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e\u043c:<\/p>\n<pre><code>\/ip firewall mangle add action=change-mss chain=forward new-mss=1380 out-interface=$INTERFACE protocol=tcp tcp-flags=syn tcp-mss=1381-65535 <\/code><\/pre>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u0425\u0430\u0431\u0440 \u0447\u0435\u0440\u0435\u0437 \u0442\u0443\u043d\u043d\u0435\u043b\u044c, \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u043e\u043c\u0430\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0425\u0430\u0431\u0440\u0443 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443.<\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u0442\u043e\u0440\u043e\u0439. \u0421\u0430\u0439\u0442 leroymerlin.ru<\/h4>\n<p>\u0411\u0435\u0437 \u043f\u0440\u0430\u0432\u043a\u0438 MSS \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0442\u0430\u043a\u0430\u044f \u0436\u0435. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u041b\u0435\u0440\u0443\u0430 \u043b\u0435\u0436\u0438\u0442 \u0442\u043e\u0436\u0435 \u0437\u0430 Qrator Labs. \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0430\u0432\u043a\u0438 MSS \u0441\u0430\u0439\u0442 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438 \u0432\u0435\u0449\u0430\u0435\u0442:<\/p>\n<figure class=\"\"><\/figure>\n<p>\u0422\u0443\u0442 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e: \u043d\u0430\u0434\u043e \u0432\u044b\u043a\u0438\u043d\u0443\u0442\u044c \u044d\u0442\u0443 \u043f\u043e\u0434\u0441\u0435\u0442\u044c \u0438\u0437 \u0440\u043e\u0443\u0442\u0430.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430 \u0434\u043b\u044f BGP. \u041f\u0440\u0430\u0432\u0438\u043c <strong>routes &#8212; filter &#8212; rule<\/strong> \u0434\u043b\u044f BGP \u043c\u0435\u043d\u044f\u0435\u043c \u043f\u043e\u043b\u0435 rule:<\/p>\n<pre><code>set gw wg0; if (dst in 178.248.232.0\/22) {reject} else {accept} <\/code><\/pre>\n<p>\u0414\u043b\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 OR. \u0422\u0443\u0442 \u0432\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0434\u0441\u0435\u0442\u044c \u043a\u0430\u043a \u0440\u0430\u0437 \u0442\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0425\u0430\u0431\u0440:<\/p>\n<pre><code>set gw wg0; if (dst in 178.248.236.0\/23 || dst in 178.248.232.0\/22) {reject} else {accept} <\/code><\/pre>\n<figure class=\"\"><\/figure>\n<p>\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0442\u0435\u0441\u0442\u043e\u0432 \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0430\u043c \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0414\u0426. \u0421\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u0432\u044b\u0448\u0435, \u0431\u044b\u043b\u0430 \u0441 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c \u0435\u0432\u0440\u043e\u043f\u0435\u0439\u0441\u043a\u0438\u043c \u0414\u0426. \u0410 \u043a\u043e\u0433\u0434\u0430 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b, \u0432\u0438\u0434\u0438\u043c\u043e, \u0441\u0432\u0435\u0436\u0438\u0439 \u0438 &#171;\u043d\u0435 \u0437\u0430\u043f\u0430\u043b\u0435\u043d\u043d\u044b\u0439&#187; \u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0438\u0439 IP-\u0430\u0434\u0440\u0435\u0441, \u0442\u043e \u043e\u0431\u0430 \u0441\u0430\u0439\u0442\u0430 \u043e\u0442\u043a\u0440\u044b\u043b\u0438\u0441\u044c \u0447\u0435\u0440\u0435\u0437 VPN \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0421\u0430\u0439\u0442 \u041b\u0435\u0440\u0443\u0430 \u043d\u0435 \u0441\u043c\u0443\u0442\u0438\u043b \u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0438\u0439 IP-\u0430\u0434\u0440\u0435\u0441, \u0430 \u0434\u043b\u044f \u0425\u0430\u0431\u0440\u0430 \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0441\u044f \u043a\u043e\u0441\u0442\u044b\u043b\u044c \u0441 \u043f\u0440\u0430\u0432\u043a\u043e\u0439 MSS \u0434\u043b\u044f WG.<\/p>\n<h4>\u041c\u043e\u0436\u0435\u0442, \u0431\u0435\u0437 \u0441\u0443\u043c\u043c\u0430\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u043e\u0433\u0434\u0430?<\/h4>\n<p>\u041d\u0430 \u043e\u0431\u043e\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u0445 \u0440\u044f\u0434\u043e\u043c \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u0430\u043c\u0438 ip.lst \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e &#171;\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e&#187;. \u0420\u0430\u0434\u0438 \u0442\u0435\u0441\u0442\u0430 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u043c\u0443\u0447\u0430\u0442\u044c \u043c\u043e\u0439 hAP lite ac. \u041e\u0442 130548 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430 \u0432 routes \u0435\u043c\u0443 \u0441\u0442\u0430\u043b\u043e \u043f\u043b\u043e\u0445\u043e.<\/p>\n<h2>\u0412\u044b\u043a\u0430\u0447\u043a\u0430 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0438 \u043f\u043e\u0434\u0441\u0435\u0442\u0435\u0439 \u0432 Address List<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0432\u044b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 BGP, \u0442\u043e \u0441\u043f\u0438\u0441\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0432 Address Lists. \u041d\u043e \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043f\u0438\u0441\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e BGP, \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u043e BGP. \u041f\u043e BGP \u043e\u043d\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432 routes. \u0410 \u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u043b\u0430\u0434\u0451\u0442 \u0438\u0445 \u0432 address-lists. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e address-list + mangle \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u0447\u0435\u043c routes.<\/p>\n<p>\u041d\u043e \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0442\u043e\u0436\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0439, \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u0442\u043e\u0436\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c. \u0422\u0443\u0442 \u043b\u043e\u0433\u0438\u043a\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f: \u0435\u0441\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u0432\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0434\u0451\u0442 \u043a IP-\u0430\u0434\u0440\u0435\u0441\u0430\u043c \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u043c\u044b \u043c\u0430\u0440\u043a\u0438\u0440\u0443\u0435\u043c \u0438 \u0432\u0435\u0441\u044c \u043c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0442\u0443\u043d\u043d\u0435\u043b\u044c.<\/p>\n<p>\u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430, \u0441\u043f\u0438\u0441\u043a\u0438 \u0431\u0443\u0434\u0435\u043c \u0431\u0440\u0430\u0442\u044c \u0443 antifilter.network.<\/p>\n<p>\u0414\u043b\u044f \u0432\u044b\u043a\u0430\u0447\u043a\u0438 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u043d\u0443\u0436\u0435\u043d \u0441\u043a\u0440\u0438\u043f\u0442. \u041d\u0430 <a href=\"https:\/\/forum.mikrotik.com\/viewtopic.php?p=935938#p935938\" rel=\"noopener noreferrer nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0444\u043e\u0440\u0443\u043c\u0435 Mikrotik<\/a> \u0433\u0443\u0440\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0434\u043b\u044f ROS \u0443\u0436\u0435 4 \u0433\u043e\u0434\u0430 \u0432\u044b\u043b\u0438\u0437\u044b\u0432\u0430\u044e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432. \u0415\u0433\u043e \u0438 \u0432\u043e\u0437\u044c\u043c\u0451\u043c.<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043a\u0440\u0438\u043f\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c.<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>{ \/ip firewall address-list :local update do={  :put \"Starting import of address-list: $listname\"  :if ($nolog = null) do={:log warning \"Starting import of address-list: $listname\"}    :local displayed true  :local maxretry 3  :local retrywaitingtime 120s  :local retryflag true  :for retry from=1 to=$maxretry step=1 do={   :if (retryflag) do={ :set $retryflag false; :set $sounter 0   :if (retry > 1) do={    :put \"Source file changed. Retring after a<\/code><\/pre>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-360668","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/360668","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=360668"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/360668\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=360668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=360668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=360668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}