{"id":1930,"date":"2017-03-02T19:32:27","date_gmt":"2017-03-02T19:32:27","guid":{"rendered":"https:\/\/tst-amo.pp.ua\/blog\/?p=1930"},"modified":"2017-03-05T20:46:19","modified_gmt":"2017-03-05T20:46:19","slug":"nat","status":"publish","type":"post","link":"https:\/\/tst-amo.net.ua\/blog\/?p=1930","title":{"rendered":"NAT"},"content":{"rendered":"<h4>\u0422\u0438\u043f\u044b \u0430\u0434\u0440\u0435\u0441\u043e\u0432 NAT<\/h4>\n<ul>\n<li>inside local<\/li>\n<li>inside global<\/li>\n<li>outside global<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1932 size-large\" src=\"https:\/\/tst-amo.pp.ua\/blog\/wp-content\/uploads\/2017\/03\/201703022122481-1-1024x537.jpg\" alt=\"20170302212248[1]\" width=\"730\" height=\"383\" srcset=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/201703022122481-1-1024x537.jpg 1024w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/201703022122481-1-300x157.jpg 300w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/201703022122481-1-768x403.jpg 768w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/201703022122481-1-730x383.jpg 730w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/p>\n<h4>\u0422\u0438\u043f\u044b\u00a0NAT<\/h4>\n<ul>\n<li>Static NAT:<\/li>\n<li>Dynamic NAT:<\/li>\n<li>PAT:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1936 size-large\" src=\"https:\/\/tst-amo.pp.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302214347-1024x490.jpg\" alt=\"20170302214347\" width=\"730\" height=\"349\" srcset=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302214347-1024x490.jpg 1024w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302214347-300x143.jpg 300w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302214347-768x367.jpg 768w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302214347-730x349.jpg 730w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1937 size-large\" src=\"https:\/\/tst-amo.pp.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302214857-1024x448.jpg\" alt=\"20170302214857\" width=\"730\" height=\"319\" srcset=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302214857-1024x448.jpg 1024w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302214857-300x131.jpg 300w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302214857-768x336.jpg 768w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302214857-730x319.jpg 730w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1938 size-large\" src=\"https:\/\/tst-amo.pp.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302220903-1024x321.jpg\" alt=\"20170302220903\" width=\"730\" height=\"229\" srcset=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302220903-1024x321.jpg 1024w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302220903-300x94.jpg 300w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302220903-768x241.jpg 768w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302220903-730x229.jpg 730w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1939 size-large\" src=\"https:\/\/tst-amo.pp.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302220934-1024x477.jpg\" alt=\"20170302220934\" width=\"730\" height=\"340\" srcset=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302220934-1024x477.jpg 1024w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302220934-300x140.jpg 300w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302220934-768x358.jpg 768w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302220934-730x340.jpg 730w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1940 size-large\" src=\"https:\/\/tst-amo.pp.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302221536-1024x449.jpg\" alt=\"20170302221536\" width=\"730\" height=\"320\" srcset=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302221536-1024x449.jpg 1024w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302221536-300x131.jpg 300w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302221536-768x337.jpg 768w, https:\/\/tst-amo.net.ua\/blog\/wp-content\/uploads\/2017\/03\/20170302221536-730x320.jpg 730w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u041d\u0435 \u0432\u0441\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0437\u0430 NAT, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 &#8211; FTP, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c ALG (Application Level Gateways) &#8211;\u00a0\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u2013 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0430\u044f \u0442\u0430\u043a\u0436\u0435 NAT ALG. \u041f\u0440\u0438 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 ALG \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u0440\u043e\u0432\u043d\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432.<\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f ALG \u0432 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u0445 Cisco \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0443\u0440\u043e\u0432\u043d\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 FTP, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 SIP, H.323, Skinny \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 (\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u044b DNS). \u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f ALG \u0432 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u0445 Cisco \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0443\u044e ALG \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u0445 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u041e\u0421 Linux \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0438 \u043f\u0430\u0442\u0447\u0438 \u043a \u044f\u0434\u0440\u0443 (\u0442\u0430\u043a\u0438\u0435, \u043a\u0430\u043a ip_masq_ftp, ip_masq_irc \u0438 \u0442. \u043f.).<\/p>\n<p>NAT \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p><em><strong>\u0421\u043f\u043e\u0441\u043e\u0431 1.<\/strong><\/em><\/p>\n<p><em>\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/em><\/p>\n<pre>Router&gt;enable\r\nRouter#conf t\r\nRouter(config)#interface g0\/1\r\nRouter(config-if)#no shutdown \r\nRouter(config-if)#ip address 192.168.0.1 255.255.255.0\r\nRouter(config-if)#ip nat inside<\/pre>\n<p><em>\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/em><\/p>\n<pre>Router#conf t\r\nRouter(config)#interface g0\/0\r\nRouter(config-if)#ip address 10.100.10.101 255.255.255.0\r\nRouter(config-if)#no sh\r\nRouter(config-if)#no shutdown\r\nRouter(config-if)#ip nat outside<\/pre>\n<p><em>\u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c ACL<\/em><\/p>\n<pre>Router(config)#interface g0\/0\r\nRouter(config-if)#ip route 0.0.0.0 0.0.0.0 10.100.10.100\r\nRouter(config)#access\r\nRouter(config)#access-list 2 permit 192.168.0.0 0.0.0.255\r\nRouter(config)#inter\r\nRouter(config)#interface g0\/0\r\nRouter(config-if)#ip nat inside source list 2 inter\r\nRouter#conf t\r\nRouter(config)#ip nat inside source list 2 interface g0\/0 overload<\/pre>\n<pre>#show ip nat statistic =&gt; \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\r\n#debug ip nat =&gt; \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c\r\n#u a =&gt; \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c debug\r\n# undebug all =&gt;\u00a0\u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c debug\r\n#no debug all =&gt;\u00a0\u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c debug<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-bottom-right\"><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts1930&print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/pdf.png\" alt=\"image_pdf\" title=\"View PDF\" \/><\/a><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts1930&print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>\u0422\u0438\u043f\u044b \u0430\u0434\u0440\u0435\u0441\u043e\u0432 NAT inside local inside global outside global \u0422\u0438\u043f\u044b\u00a0NAT Static NAT: Dynamic NAT: PAT: &nbsp; \u041d\u0435 \u0432\u0441\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0437\u0430 NAT, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 &#8211; FTP, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c ALG (Application Level Gateways) &#8211;\u00a0\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u2013 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0430\u044f \u0442\u0430\u043a\u0436\u0435 NAT ALG. \u041f\u0440\u0438 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 ALG \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u0440\u043e\u0432\u043d\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 &#8230;<\/p>\n<p><a href=\"https:\/\/tst-amo.net.ua\/blog\/?p=1930\" class=\"more-link\">Continue reading &lsquo;NAT&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,30,26,27],"tags":[],"class_list":["post-1930","post","type-post","status-publish","format-standard","hentry","category-alg","category-cisco","category-nat","category-pat"],"_links":{"self":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1930"}],"collection":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1930"}],"version-history":[{"count":8,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1930\/revisions"}],"predecessor-version":[{"id":1947,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1930\/revisions\/1947"}],"wp:attachment":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}