NAT Address Translation Calculator

Plan and configure Network Address Translation (NAT) for your network infrastructure

NAT Configuration

One-to-one mapping between private and public IPs

How to Use the NAT Calculator

1. Enter IP Addresses: Input your private IP address and the public IP address for NAT translation

2. Configure Ports: For static and PAT NAT, specify the private and public port numbers

3. Select NAT Type: Choose between Static, Dynamic, or PAT based on your requirements

4. Choose Protocol: Select TCP, UDP, or both protocols for the NAT rules

5. Calculate: Click calculate to generate subnet information and iptables rules

6. Copy Results: Use the copy buttons to copy any result to your clipboard

NAT Types Explained

Static NAT

One-to-one mapping between private and public IPs. Each private IP gets a dedicated public IP.

Use case: Web servers, mail servers

Dynamic NAT

Maps private IPs to a pool of public IPs dynamically. No port translation.

Use case: Multiple internal hosts needing internet access

PAT (Port Address Translation)

Multiple private IPs share one public IP using different ports.

Use case: Home routers, small offices

Private IP Address Ranges

Class A: 10.0.0.0/8 (10.0.0.0 - 10.255.255.255) - 16,777,216 addresses

Class B: 172.16.0.0/12 (172.16.0.0 - 172.31.255.255) - 1,048,576 addresses

Class C: 192.168.0.0/16 (192.168.0.0 - 192.168.255.255) - 65,536 addresses

Common Use Cases

Web Server Hosting: Use static NAT to map public IP to internal web server

Remote Access: Configure PAT for secure remote access to internal services

Load Balancing: Use dynamic NAT for distributing traffic across multiple servers

Security: Hide internal network structure from external networks

IPv4 Conservation: Share limited public IP addresses among multiple internal hosts