{"id":1334,"date":"2024-04-18T17:12:19","date_gmt":"2024-04-18T14:12:19","guid":{"rendered":"https:\/\/cloud-life.site\/?p=1334"},"modified":"2024-04-18T17:29:32","modified_gmt":"2024-04-18T14:29:32","slug":"%d1%80%d0%b0%d0%b7%d0%b4%d0%b5%d0%bb%d1%8f%d0%b5%d0%bc-%d1%82%d1%80%d0%b0%d1%84%d0%b8%d0%ba-mikrotik","status":"publish","type":"post","link":"https:\/\/cloud-life.site\/?p=1334","title":{"rendered":"\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u0442\u0440\u0430\u0444\u0438\u043a MikroTik"},"content":{"rendered":"\n<p>\u041d\u0435 \u0437\u043d\u0430\u043b, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e. \u041e\u043d\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0433\u0434\u0430 \u044f \u0434\u0435\u043b\u0430\u043b <a href=\"https:\/\/cloud-life.site\/?p=1300\" data-type=\"link\" data-id=\"https:\/\/cloud-life.site\/?p=1300\">\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0443\u0433\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/a>. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u043d\u0430 facebook.com \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 VPN, \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u0441\u0430\u0439\u0442\u0430. \u0422\u0430\u043c \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u044b \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0435\u0442\u0438\\ip \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432 \u0420\u043e\u0441\u0441\u0438\u0438. \u041f\u043e\u0442\u043e\u043c\u0443 \u0438 \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u044b \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438 \u0441\u0442\u0430\u043b\u0430 \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f. \u0418\u0442\u0430\u043a, \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u0435\u0440\u0432\u044b\u0439.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u041e\u0442\u043f\u0440\u0430\u0432\u0438\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 VPN<\/h3>\n\n\n\n<p>\u041d\u0430\u043c \u043d\u0430\u0434\u043e \u0434\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e \u0433\u0443\u043b\u044f\u0442\u044c \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0448\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 (\u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439, \u0443\u0447\u0440\u0435\u0434\u0438\u0442\u0435\u043b\u0435\u0439)<\/p>\n\n\n\n<p>\u0427\u0442\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f? \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 ip \u0447\u0435\u0440\u0435\u0437 VPN<\/p>\n\n\n\n<p>\u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u0445 <strong>ip <\/strong>\u0432<strong> Address Lists<\/strong>. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0440\u043e\u0443\u0442\u0435\u0440\u0443 \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b&nbsp;<strong>ip-&gt;firewall-&gt;address list<\/strong>. \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430&nbsp;<strong>\u00ab+\u00bb,<\/strong>&nbsp;\u0447\u0442\u043e\u0431 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u0445 ip \u0432 \u0441\u043f\u0438\u0441\u043e\u043a.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"821\" height=\"541\" src=\"https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/add-ip-addlist.png\" alt=\"\" class=\"wp-image-1335\" srcset=\"https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/add-ip-addlist.png 821w, https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/add-ip-addlist-300x198.png 300w, https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/add-ip-addlist-768x506.png 768w\" sizes=\"auto, (max-width: 821px) 100vw, 821px\" \/><\/figure>\n\n\n\n<p>\u041f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u043c\u0443 \u0441\u043f\u0438\u0441\u043a\u0443, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435, \u0432 address \u043f\u0438\u0448\u0435\u043c ip \u043d\u0430\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0441\u0442\u0430\u043d\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0438\u043c\u0435\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0447\u0435\u0440\u0435\u0437 VPN, \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u041e\u041a<\/p>\n\n\n\n<p>\u0412 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">ip firewall address-list add address=10.20.2.22 list=VPN-route<\/code><\/pre>\n\n\n\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b&nbsp;<strong>Routing-&gt;Tables<\/strong>&nbsp;\u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430&nbsp;<strong>\u00ab+\u00bb<\/strong>, \u0434\u0430\u0435\u043c \u0438\u043c\u044f \u043d\u0430\u0448\u0435\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0438&nbsp;<strong>\u0441\u0442\u0430\u0432\u0438\u043c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 fib<\/strong><\/p>\n\n\n\n<p class=\"has-small-font-size\"><em>*\u0412 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u044d\u0442\u043e\u0442 \u043f\u0443\u043d\u043a\u0442 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432 \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 RouterOS \u044d\u0442\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0430\u0441\u044c \u0441\u0430\u043c\u0430, \u043d\u043e \u043c\u043d\u0435 \u043d\u0435 \u0434\u0430\u043b\u043e \u0442\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c (\u044f \u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u0438\u0437 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430, \u0442\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435, \u0432\u044b\u0434\u044b\u0432\u0430\u043b\u043e \u043e\u0448\u0438\u0431\u043a\u0443, \u043f\u043e\u043a\u0430 \u044f \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043b \u044d\u0442\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432\u0440\u0443\u0447\u043d\u0443\u044e)<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"632\" src=\"https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/routing-tables.png\" alt=\"\" class=\"wp-image-1310\" srcset=\"https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/routing-tables.png 750w, https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/routing-tables-300x253.png 300w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n\n\n\n<p>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u041e\u041a. \u0412 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">routing table add disabled=no fib name=VPN-out<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\">\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0448\u0430\u0433\u043e\u043c \u043f\u0440\u043e\u043f\u0438\u0448\u0435\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442. <em>\u0423 \u043c\u0435\u043d\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043d\u044f\u0442 VPN \u043d\u0430 ubuntu, \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d \u0431\u044b\u043b \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 clamav, (\u0435\u0433\u043e ip \u043f\u0443\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 10.20.1.2, \u043d\u0430 \u043d\u0435\u043c \u043d\u0430\u0434\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c nat \u043d\u043e \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f)<\/em>, \u0438 \u043c\u044b \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u043c \u0442\u0440\u0430\u0444\u0438\u043a \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442<\/h3>\n\n\n\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b <strong>IP-&gt;Routes<\/strong>, \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <strong>&#171;+&#187;<\/strong> , \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0430\u0434\u0440\u0435\u0441 \u043d\u0430\u0448\u0435\u0433\u043e VPN \u0438 <em>\u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0448\u0430\u0433\u0435<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"662\" src=\"https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/routes-1.png\" alt=\"\" class=\"wp-image-1312\" srcset=\"https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/routes-1.png 816w, https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/routes-1-300x243.png 300w, https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/routes-1-768x623.png 768w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/figure>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u044d\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0439 WAN \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0438\u043b\u0438 VPN &#8212; \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0437\u0434\u0435\u0441\u044c \u0438\u043c\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.                           \u0412 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">ip route add comment=\"Route to VPN \" distance=1 dst-address=0.0.0.0\/0 gateway=10.20.1.2 routing-table=VPN-out<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u041f\u043e\u043c\u0435\u0447\u0430\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u044b<\/h3>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u043d\u0430\u0448 \u043f\u0430\u043a\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u043d\u0443\u0436\u043d\u044b\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442<\/p>\n\n\n\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b<strong> IP-&gt;Firewall-&gt;Mangle<\/strong> \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <strong>&#171;+&#187;<\/strong> \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u0430.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"842\" height=\"634\" src=\"https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/Mangle-src-2.png\" alt=\"\" class=\"wp-image-1343\" srcset=\"https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/Mangle-src-2.png 842w, https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/Mangle-src-2-300x226.png 300w, https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/Mangle-src-2-768x578.png 768w\" sizes=\"auto, (max-width: 842px) 100vw, 842px\" \/><\/figure>\n\n\n\n<p><strong>Chain &#8212; prerouting, Src. Address List<\/strong> \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448 \u043b\u0438\u0441\u0442, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u0448\u0430\u0433\u0435 1.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">ip firewall mangle add action=mark-routing chain=prerouting new-routing-mark=VPN-out passthrough=yes src-address-list=VPN-route comment=\"Route to VPN marking\"<\/code><\/pre>\n\n\n\n<p>\u0412\u0441\u0451! \u0413\u043e\u0442\u043e\u0432\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0448 \u0445\u043e\u0441\u0442 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0441\u0435\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043c\u0430\u0440\u0448\u0440\u0443\u0442, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u0448\u0430\u0433\u0435 2.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u0420\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u0444\u0444\u0438\u043a\u0430<\/h3>\n\n\n\n<p>\u0412\u0440\u043e\u0434\u0435 \u0431\u044b \u0438 \u0432\u0441\u0435, \u0443 \u043d\u0430\u0448 \u0445\u043e\u0441\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0441\u0435\u0442\u044c \u0447\u0435\u0440\u0435\u0437 VPN, \u0432\u0441\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e.. \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c VPN \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0430, \u0438 \u043d\u0430\u043c \u044d\u0442\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442. \u042f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 &#8212; \u043d\u0430 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0435 IP \u0438\u0434\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0448\u043b\u044e\u0437 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u0430 \u043d\u0430 \u0438\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0435 &#8212; \u0447\u0435\u0440\u0435\u0437 VPN.<\/p>\n\n\n\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0433\u0443\u0433\u043b\u0438\u043c \u0438 \u043d\u0430\u0442\u044b\u043a\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 <a href=\"https:\/\/mikrotikconfig.com\/firewall\/#address\">https:\/\/mikrotikconfig.com\/firewall\/#address<\/a> \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c .rsc \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 ip \u0441\u0435\u0442\u0435\u0439 \u0432 Address List. \u0412\u043e\u0442 \u0447\u0430\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/ip firewall address-list<br>add address=45.4.0.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.4.168.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.5.120.0\/21 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.7.228.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.65.240.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.68.16.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.68.44.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.71.8.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.71.44.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.160.4.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.160.12.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.160.72.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.160.188.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.160.212.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.161.44.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.161.108.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.161.112.0\/22 comment=\"CHILE\" list=CountryIPBlocks<br>add address=45.161.188.0\/22 comment=\"CHILE\" list=CountryIPBlocks<\/pre>\n\n\n\n<p class=\"has-small-font-size\"><em>\u0414\u0430, \u0434\u0430, \u043f\u043e\u0447\u0435\u043c\u0443 \u0427\u0438\u043b\u0438 \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u0432\u044b. \u041e\u0442\u0432\u0435\u0447\u0443 &#8212; \u043c\u043e\u0439 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430\u0447\u0430\u043b\u0438 \u0441\u043f\u0430\u043c\u0438\u0442\u044c \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u044b, \u0438 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0435\u0435 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043b. \u0417\u0430\u0447\u0435\u043c \u043c\u043d\u0435 \u043e\u043d\u0430?<\/em><\/p>\n\n\n\n<p>\u041d\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d \u043c\u043e\u043c\u0435\u043d\u0442, \u0435\u0441\u043b\u0438 \u0432\u044b \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0443 \u043f\u043e ip \u0442\u043e \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a.. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043b\u044e\u0431\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u043c \u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0437\u0430\u043c\u0435\u043d\u0443 CountryIPBlocks \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0412\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e. \u042f \u043f\u043e\u043c\u0435\u043d\u044f\u043b \u043d\u0430 RussianIP:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/ip firewall address-list<br>add address=2.56.24.0\/22 comment=\"RUSSIAN FEDERATION\" list=RussianIP<br>add address=2.56.88.0\/22 comment=\"RUSSIAN FEDERATION\" list=RussianIP<br>add address=2.56.112.0\/22 comment=\"RUSSIAN FEDERATION\" list=RussianIP<br>add address=2.56.180.0\/22 comment=\"RUSSIAN FEDERATION\" list=RussianIP<br>add address=2.57.0.0\/24 comment=\"RUSSIAN FEDERATION\" list=RussianIP<br>add address=2.57.36.0\/22 comment=\"RUSSIAN FEDERATION\" list=RussianIP<br>add address=2.57.52.0\/22 comment=\"RUSSIAN FEDERATION\" list=RussianIP<br>add address=2.57.80.0\/22 comment=\"RUSSIAN FEDERATION\" list=RussianIP<br>add address=2.57.112.0\/22 comment=\"RUSSIAN FEDERATION\" list=RussianIP<br>add address=2.57.184.0\/22 comment=\"RUSSIAN FEDERATION\" list=RussianIP<br>add address=2.58.68.0\/22 comment=\"RUSSIAN FEDERATION\" list=RussianIP<\/pre>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-808fa9dc-6b1c-4188-afd6-2c07920b4617\" href=\"https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/Russian-Address-List.rsc\">\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0444\u0430\u0439\u043b Russian-Address-List<\/a><a href=\"https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/Russian-Address-List.rsc\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-808fa9dc-6b1c-4188-afd6-2c07920b4617\">\u0421\u043a\u0430\u0447\u0430\u0442\u044c<\/a><\/div>\n\n\n\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u043d\u0430\u0448 \u0440\u043e\u0443\u0442\u0435\u0440 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u043e\u043a\u043d\u043e WinBox. \u041d\u043e, \u0441\u043a\u0430\u0436\u0443 \u0447\u0435\u0441\u0442\u043d\u043e, \u043d\u0435 \u0437\u043d\u0430\u044e, \u043a\u0430\u043a \u0447\u0435\u0440\u0435\u0437 WinBox \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043c\u043f\u043e\u0440\u0442 \u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u043c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">import Russian-Address-List.rsc<\/code><\/pre>\n\n\n\n<p>\u0418\u0442\u0430\u043a, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 IP \u0420\u043e\u0441\u0441\u0438\u0438 \u0432 \u0430\u0434\u0440\u0435\u0441 \u043b\u0438\u0441\u0442\u0435, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e Mangle, \u0447\u0442\u043e\u0431 \u0432 \u043d\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u043b\u0438 \u0430\u0434\u0440\u0435\u0441\u0430 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430:<\/p>\n\n\n\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b<strong> IP->Firewall->Mangle<\/strong> \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430\u0448\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e (\u043f\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044e, \u043d\u0435 \u0437\u0440\u044f \u0436\u0435 \u043c\u044b \u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438) <strong>Route to VPN marking<\/strong>. \u0414\u0432\u043e\u0439\u043d\u044b\u043c \u043a\u043b\u0438\u043a\u043e\u043c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0432 <strong>dst-Address-List<\/strong> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448 \u043b\u0438\u0441\u0442 <strong>RussianIP<\/strong>, \u0438, <strong>\u0432\u0430\u0436\u043d\u043e<\/strong>, \u043a\u043b\u0438\u043a\u0430\u0435\u043c \u043d\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435 \u043e\u043a\u043e\u0448\u043a\u043e \u043f\u0435\u0440\u0435\u0434 \u043f\u043e\u043b\u0435\u043c \u0441 \u0438\u043c\u0435\u043d\u0435\u043c , \u0447\u0442\u043e\u0431 \u0432 \u043d\u0435\u043c \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f <strong>&#171;!&#187;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"434\" height=\"297\" src=\"https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/Mangle-dst.png\" alt=\"\" class=\"wp-image-1348\" srcset=\"https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/Mangle-dst.png 434w, https:\/\/cloud-life.site\/wp-content\/uploads\/2024\/04\/Mangle-dst-300x205.png 300w\" sizes=\"auto, (max-width: 434px) 100vw, 434px\" \/><\/figure>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0448 \u0445\u043e\u0441\u0442 \u043d\u0430 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0435 ip \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 &#8212; \u0448\u043b\u044e\u0437 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430<\/p>\n\n\n\n<p class=\"has-small-font-size\"><em>P.S. \u0441\u0430\u0439\u0442 <strong>2ip.ru<\/strong> \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435 \u0432 \u0413\u0435\u0440\u043c\u0430\u043d\u0438\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0437\u0430\u0439\u0434\u044f \u0442\u0443\u0434\u0430 \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c <strong>ip \u043d\u0430\u0448\u0435\u0433\u043e VPN<\/strong>. \u0418, \u044f \u0434\u0443\u043c\u0430\u044e, \u043e\u043d \u043d\u0435 \u043e\u0434\u0438\u043d \u0442\u0430\u043a\u043e\u0439. \u0422\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0442\u043e\u0436\u0435 \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u0435\u043d.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 \u0440\u0430\u0431\u043e\u0442\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<\/h3>\n\n\n\n<p>\u041a\u0430\u043a \u0436\u0435 \u0431\u044b\u0442\u044c. \u041d\u0435\u0443\u0436\u0435\u043b\u0438 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c youtube \u0447\u0435\u0440\u0435\u0437 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439 vpn \u043a\u0430\u043d\u0430\u043b? \u0410 \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043d\u0435 \u043e\u0434\u0438\u043d \u0445\u043e\u0441\u0442? \u0410 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u0441\u0435 ip youtube \u0432 \u043d\u0430\u0441 \u0441\u043f\u0438\u0441\u043e\u043a? (\u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c) \u041d\u043e \u043a\u0430\u043a? \u0410 \u0432\u0441\u0435 \u0442\u0435\u043c \u0436\u0435 <strong>ip->firewall->mangle<\/strong>. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">\/ip firewall mangle add action=add-dst-to-address-list address-list=RussianIP address-list-timeout=10m chain=forward comment=\"Find youtube ip addresses and add it to list\" content=youtube.com disabled=no dst-port=443 in-interface=!WAN protocol=tcp<br><\/code><\/pre>\n\n\n\n<p>\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e? \u041e\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u043d\u0430\u0448 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 yotube, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0448 \u0445\u043e\u0441\u0442 (\u0445\u043e\u0441\u0442\u044b) \u043d\u0430 10 \u043c\u0438\u043d\u0443\u0442. \u0418 \u0442\u0440\u0430\u0444\u0438\u043a \u043f\u043e\u0439\u0434\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0448\u043b\u044e\u0437 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u043d\u0435 \u043d\u0430\u0433\u0440\u0443\u0436\u0430\u044f \u043d\u0430\u0448 vpn \u043a\u0430\u043d\u0430\u043b!<\/p>\n\n\n\n<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c \u0441\u0435\u0440\u0438\u044e \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432\/\u0442\u0440\u0430\u0444\u0438\u043a\u0430<\/p>\n","protected":false},"author":1,"featured_media":1314,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[24,23],"class_list":["post-1334","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mikrotik","tag----vpn","tag-23"],"_links":{"self":[{"href":"https:\/\/cloud-life.site\/index.php?rest_route=\/wp\/v2\/posts\/1334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloud-life.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloud-life.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloud-life.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloud-life.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1334"}],"version-history":[{"count":8,"href":"https:\/\/cloud-life.site\/index.php?rest_route=\/wp\/v2\/posts\/1334\/revisions"}],"predecessor-version":[{"id":1355,"href":"https:\/\/cloud-life.site\/index.php?rest_route=\/wp\/v2\/posts\/1334\/revisions\/1355"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloud-life.site\/index.php?rest_route=\/wp\/v2\/media\/1314"}],"wp:attachment":[{"href":"https:\/\/cloud-life.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloud-life.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloud-life.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}