NAT - Network Address Translation ================================== .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **What is NAT?** NAT (Network Address Translation) is a method used by routers to translate private IP addresses to a public IP address (and vice versa) for internet communication. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Why is NAT used?** NAT helps conserve public IP addresses and adds a layer of security by hiding internal network structures. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **What are the types of NAT?** Common types include Static NAT, Dynamic NAT, and PAT (Port Address Translation, also called NAT Overload). .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **What is Static NAT?** Maps one private IP address to one public IP address. Used when a device needs to be consistently reachable from the internet. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **What is Dynamic NAT?** Maps a private IP to any available public IP from a pool. The mapping changes over time. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Does NAT provide security?** Yes, to some extent. It hides internal IP addresses from external networks, reducing direct attack surfaces. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Is NAT used in IPv6?** Generally no. IPv6 has a vast address space, eliminating the need for NAT. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Where is NAT configured?** NAT is typically configured on routers or firewalls at the network edge. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow Topics in this section, * :ref:`Learnings in this section ` * :ref:`Terminology ` * :ref:`Version Info ` * :ref:`NAT Version&RFC Details ` * :ref:`NAT Basic Setup on Ubuntu using IPv4 ` * :ref:`NAT Basic Setup on Ubuntu using IPv6 ` * :ref:`NAT Usecases ` * :ref:`NAT Basic Features ` * :ref:`NAT Feature : IP Address Translation ` * :ref:`NAT Feature : Port Address Translation (PAT) ` * :ref:`NAT Feature : Conserves IPv4 Addresses ` * :ref:`NAT Feature : Enhances Network Security ` * :ref:`NAT Feature : Supports Multiple NAT Types ` * :ref:`NAT Feature : Protocol-Aware Behavior ` * :ref:`NAT Feature : Enables Internet Access for Private Networks ` * :ref:`Reference links ` .. _NAT_step1: .. tab-set:: .. tab-item:: Learnings in this section * In this section, you are going to learn .. _NAT_step2: .. tab-set:: .. tab-item:: Terminology * Terminology .. _NAT_step3: .. tab-set:: .. tab-item:: Version Info * Version Info .. _NAT_step5: .. tab-set:: .. tab-item:: NAT Version&RFC Details .. csv-table:: :file: ./NAT/NAT_Version_RFC_details.csv :widths: 10,10,10,30 :header-rows: 1 .. _NAT_step16: .. tab-set:: .. tab-item:: NAT Basic Setup on Ubuntu using IPv4 * Setup .. _NAT_step17: .. tab-set:: .. tab-item:: NAT Basic Setup on Ubuntu using IPv6 * Setup .. _NAT_step6: .. tab-set:: .. tab-item:: NAT Usecases .. csv-table:: :file: ./NAT/NAT_Use_Cases.csv :widths: 10,20,30 :header-rows: 1 .. _NAT_step7: .. tab-set:: .. tab-item:: NAT Basic Features .. csv-table:: :file: ./NAT/NAT_Basic_Features.csv :widths: 10,10,30 :header-rows: 1 .. _NAT_step8: .. tab-set:: .. tab-item:: NAT Feature : IP Address Translation **IP Address Translation - Testcases** .. csv-table:: :file: ./NAT/NAT_Feature1_IP_Address_Translation_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _NAT_step9: .. tab-set:: .. tab-item:: NAT Feature : Port Address Translation (PAT) **Port Address Translation (PAT) - Testcases** .. csv-table:: :file: ./NAT/NAT_Feature2_Port_Address_Translation_PAT_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _NAT_step10: .. tab-set:: .. tab-item:: NAT Feature : Conserves IPv4 Addresses **Conserves IPv4 Addresses - Testcases** .. csv-table:: :file: ./NAT/NAT_Feature3_Conserves_IPv4_Addresses_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _NAT_step11: .. tab-set:: .. tab-item:: NAT Feature : Enhances Network Security **Enhances Network Security - Testcases** .. csv-table:: :file: ./NAT/NAT_Feature4_Enhances_Network_Security_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _NAT_step12: .. tab-set:: .. tab-item:: NAT Feature : Supports Multiple NAT Types **Supports Multiple NAT Types - Testcases** .. csv-table:: :file: ./NAT/NAT_Feature5_Supports_Multiple_NAT_Types_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _NAT_step13: .. tab-set:: .. tab-item:: NAT Feature : Protocol-Aware Behavior **Protocol-Aware Behavior - Testcases** .. csv-table:: :file: ./NAT/NAT_Feature6_Protocol_Aware_Behavior_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _NAT_step14: .. tab-set:: .. tab-item:: NAT Feature : Enables Internet Access for Private Networks **Enables Internet Access for Private Networks - Testcases** .. csv-table:: :file: ./NAT/NAT_Feature7_Enables_Internet_Access_for_Private_Networks_TestCases.csv :widths: 10,10,30,20 :header-rows: 1 .. _NAT_step15: .. tab-set:: .. tab-item:: Reference links * Reference links