{"id":8383,"date":"2020-09-08T10:59:26","date_gmt":"2020-09-08T10:59:26","guid":{"rendered":"http:\/\/www.max-sperling.bplaced.net\/?p=8383"},"modified":"2024-02-16T10:33:36","modified_gmt":"2024-02-16T10:33:36","slug":"nat-network-address-translation","status":"publish","type":"post","link":"http:\/\/www.max-sperling.bplaced.net\/?p=8383","title":{"rendered":"NAPT (Network Address Port Translation)"},"content":{"rendered":"<p><strong>What&#8217;s that?<\/strong><br \/>\nIt translates private IPs and Ports to a public IP and port.<\/p>\n<p><strong>What&#8217;s the reason?<\/strong><br \/>\nThere are not enough IPv4 addresses available.<\/p>\n<p><strong>Where&#8217;s it used?<\/strong><br \/>\nIt&#8217;s part of the &#8216;<a href=\"http:\/\/www.max-sperling.bplaced.net\/?p=8275\">(wireless) router<\/a>&#8216; and the <a href=\"http:\/\/www.max-sperling.bplaced.net\/?p=8150\">GGSN<\/a>.<\/p>\n<p><strong>How does it work?<\/strong><\/p>\n<pre>\r\n      Client 1                    Client 2                    Client 3\r\n SRC: 10.0.0.1:443           SRC: 10.0.0.2:443           SRC: 10.0.0.3:80\r\n DST: 20.21.22.23:443        DST: 20.21.22.23:443        DST: 30.31.32.33:80\r\n                |                      |                     |\r\n                |----------|           |          |----------|\r\n                           \u2193           \u2193          \u2193\r\n                      |--------------------------------|\r\n                      |       NAPT Session Table       | LAN to WAN:\r\n                      |--------------------------------| Modifies Source-IP\r\n                      | Private Addr |   Public Addr   | (Private --> Public)\r\nPublic IPv4 from ISP: |--------------------------------|\r\n    10.11.12.13       | 10.0.0.1:443 | 10.11.12.13:111 | WAN to LAN:\r\n                      | 10.0.0.2:443 | 10.11.12.13:222 | Modifies Dest.-IP\r\n                      | 10.0.0.3:80  | 10.11.12.13:333 | (Public --> Private)\r\n                      |--------------------------------|\r\n                           |           |          |                       LAN\r\n-----------------------------------------------------------------------------\r\n                |----------|           |          |----------|            WAN\r\n                \u2193                      \u2193                     \u2193\r\n      Server 1                    Server 1                    Server 2\r\n SRC: 10.11.12.13:111        SRC: 10.11.12.13:222        SRC: 10.11.12.13:333\r\n DST: 20.21.22.23:443        DST: 20.21.22.23:443        DST: 30.31.32.33:80\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>What&#8217;s that? It translates private IPs and Ports to a public IP and port. What&#8217;s the reason? There are not<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[23],"tags":[],"_links":{"self":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/8383"}],"collection":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8383"}],"version-history":[{"count":1,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/8383\/revisions"}],"predecessor-version":[{"id":16786,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/8383\/revisions\/16786"}],"wp:attachment":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8383"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}