{"id":252,"date":"2024-11-03T18:57:30","date_gmt":"2024-11-03T11:57:30","guid":{"rendered":"https:\/\/altai22.ru\/?p=252"},"modified":"2024-11-03T18:57:30","modified_gmt":"2024-11-03T11:57:30","slug":"%d0%bf%d1%80%d0%be%d0%b1%d1%80%d0%b0%d1%81%d1%8b%d0%b2%d0%b0%d0%b5%d0%bc-%d0%bf%d0%be%d1%80%d1%82%d1%8b-%d0%b2-%d0%bb%d0%be%d0%ba%d0%b0%d0%bb%d1%8c%d0%bd%d1%83%d1%8e-%d1%81%d0%b5%d1%82%d1%8c-%d1%87","status":"publish","type":"post","link":"https:\/\/altai22.ru\/?p=252","title":{"rendered":"\u041f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u0442\u044b \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0435\u0442\u044c \u0447\u0435\u0440\u0435\u0437 VPN \u0441 &#171;\u0431\u0435\u043b\u044b\u043c IP&#187;"},"content":{"rendered":"\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0431\u0435\u043b\u044b\u0439 IP \u0438\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u0430\u0431\u043b\u0438\u043a \u043d\u0430 \u0432\u0430\u0448\u0435\u043c CHR \u0438 \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0437\u0430 \u0431\u0435\u043b\u044b\u0439 IP \u0434\u0432\u0430\u0436\u0434\u044b, \u0442\u043e \u0434\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u043c \u0432 \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0435 \u043f\u043e\u0440\u0442\u043e\u0432 \u0441 \u0411\u0435\u043b\u043e\u0433\u043e IP \u043d\u0430 CHR \u043d\u0430 \u0432\u0430\u0448, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 Mikrotik.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>1. \u0421\u043e\u0437\u0434\u0430\u0435\u043c L2TP\/PPTP \u0441\u0435\u0441\u0441\u0438\u044e \u043c\u0435\u0436\u0434\u0443\u00a0CHR (Mikrotik \u0441 \u0431\u0435\u043b\u044b\u043c IP-\u0430\u0434\u0440\u0435\u0441\u043e\u043c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0435\u0442\u0438), \u0434\u0430\u043b\u0435\u0435, \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 Mikrotik,\u00a0\u0438 \u0432\u0430\u0448\u0438\u043c \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u043c Mikrotik. \u042d\u0442\u043e\u0442 \u043f\u0443\u043d\u043a\u0442 \u043c\u044b \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442.\u00a0\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043d\u0430\u0448 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 PPP-client \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 IP \u0430\u0434\u0440\u0435\u0441: 192.168.200.10, \u0430 \u0448\u043b\u044e\u0437\u043e\u0432\u044b\u043c \u0430\u0434\u0440\u0435\u0441\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f:\u00a0192.168.200.1 .<\/p>\n<p>2. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c Mikrotik \u043f\u0440\u0430\u0432\u0438\u043b\u043e SRC-NAT:<\/p>\n<pre><code class=\"language-bash hljs\">\/ip firewall nat add action=src-nat chain=srcnat comment=<span class=\"hljs-string\">\"DST-NAT_2_Home-Mikrotik\"<\/span> dst-address=192.168.200.10 protocol=tcp to-addresses=192.168.200.1<\/code><\/pre>\n<p>3, \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0448\u0430\u0433\u043e\u043c \u043f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u043e\u0440\u0442\u044b, \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e:<\/p>\n<pre><code class=\"language-bash hljs\">\/ip firewall nat add action=netmap chain=dstnat comment=<span class=\"hljs-string\">\"DST-NAT_2_Home-Mikrotik_Ports\"<\/span> dst-port=2211,6162,1251 in-interface=ether1 protocol=tcp to-addresses=192.168.200.10<\/code><\/pre>\n<p>4. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u0430 \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u043c Mikrotik \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u044b\u0439 dst-port, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043f\u0438\u0448\u0435\u043c 1251, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442\u0441\u044f \u0432 3389 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0440\u0442\u043e\u043c RDP:<\/p>\n<pre><code class=\"language-bash hljs\">\/ip firewall nat add action=netmap chain=dstnat comment=<span class=\"hljs-string\">\"DST-NAT_2_Home-Mikrotik_RDP\"<\/span> dst-port=1251 in-interface=L2TP-out1 protocol=t\ncp to-addresses=192.168.0.100 to-ports=3389<\/code><\/pre>\n<p>5. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043f\u043e <strong><u>Public_IP:1251<\/u><\/strong>\u00a0\u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c Mikrotik \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a RDP-\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443: <strong><u>192.168.0.100:3389<\/u><\/strong><\/p>\n\n\n\n<p>\u041f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e <a href=\"https:\/\/geekhero.pro\/post\/35\/\">\u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0431\u0435\u043b\u044b\u0439 IP \u0438\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u0430\u0431\u043b\u0438\u043a \u043d\u0430 \u0432\u0430\u0448\u0435\u043c CHR \u0438 \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0437\u0430 \u0431\u0435\u043b\u044b\u0439 IP \u0434\u0432\u0430\u0436\u0434\u044b, \u0442\u043e \u0434\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u043c \u0432 \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0435 \u043f\u043e\u0440\u0442\u043e\u0432 \u0441 \u0411\u0435\u043b\u043e\u0433\u043e IP \u043d\u0430 CHR \u043d\u0430 \u0432\u0430\u0448, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 Mikrotik.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9],"tags":[],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-mikrotik"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7ekzS-44","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/altai22.ru\/index.php?rest_route=\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/altai22.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/altai22.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/altai22.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/altai22.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=252"}],"version-history":[{"count":1,"href":"https:\/\/altai22.ru\/index.php?rest_route=\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":253,"href":"https:\/\/altai22.ru\/index.php?rest_route=\/wp\/v2\/posts\/252\/revisions\/253"}],"wp:attachment":[{"href":"https:\/\/altai22.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/altai22.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/altai22.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}