IPv6 Addressing - 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 (Network Address Translation)?** NAT is a method used in IPv4 networks to map multiple private IP addresses to a single public IP address, enabling devices on a local network to access external networks. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Why is NAT useful?** It conserves public IPv4 addresses and adds a layer of security by hiding internal network structure from external networks. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **How does NAT work?** NAT modifies the source IP address and sometimes the port numbers of packets leaving a private network and keeps track of these translations to properly route return traffic. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Where is NAT used?** NAT is widely used in home routers, enterprise firewalls, and ISP networks to allow multiple devices to share a single public IPv4 address. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Which OSI layer does NAT belong to?** NAT operates at the **Network Layer (Layer 3)** and sometimes at the Transport Layer (Layer 4) due to port translation. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Is NAT Windows specific?** No, NAT functionality is implemented across all major operating systems and network devices. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Is NAT Linux specific?** No, Linux supports NAT through tools like `iptables` and `nftables`. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Which Transport Protocol is used by NAT?** NAT works with all transport protocols, including TCP, UDP, and ICMP, by translating IP addresses and ports. .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow **Is NAT using client-server model?** No, NAT is a network function that translates addresses and ports but does not depend on any communication model. .. 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:`Header Structure Basic Setup on Ubuntu using IPv6 ` * :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_step18: .. tab-set:: .. tab-item:: NAT Basic Setup on Ubuntu using IPv6 * setup .. _NAT_step17: .. tab-set:: .. tab-item:: Reference links * Reference links