26 Security+Basics+-+NAT+Principles
26 Security+Basics+-+NAT+Principles
Course Objectives
192.168.1.0/24
Internet
202.10.1.23/24
Server
192.168.200.1/24 LAN
What Is NAT
NAT is short for network address translation. It is a mechanism used to change the source or
destination IP address in IP packets.
Advantage Disadvantage
Enhances security by hiding internal IP CPU resources are consumed for NAT
addresses. operations.
NAT Types
• Static NAT
• No-PAT
• EasyIP
• NAT server
Static NAT
NAT Pool
200.1.1.100 to 200.1.1.110
NAT Pool
200.1.1.100 to 200.1.1.110
• No-PAT is the one-to-one translation only for IP addresses but not ports.
Source Destination
192.168.1.1:80 8.8.8.8:1098 NAT 200.1.1.100:8080 8.8.8.8:1098
Internet
OR WAN
• The IP addresses of the internal and external networks as well as the router OR are
shown in the figure.
• To allow the PC to access the external network, configure static NAT on the OR and
allocate the public IP address 200.1.1.100 to the PC with the IP address of 192.168.1.1.
Static NAT
[OR-GigabitEthemet0/0/1] quit
NAT Pool
200.1.1.100 — 200.1.1.110
192.168.1.1/24
GE0/0/0 GE0/0/1 GE0/0/0
Gateway 192.168.1.254/24
192.168.1.254/24 200.1.1.1/24 200.1.1.2/24
Internet
OR WAN
• The IP addresses of the internal and external networks as well as the router OR are shown
in the figure.
• To allow PCs on the network segment 192.168.1.0 24 to access the external network,
deploy 1:1 NAT with the requested IP addresses in the public network address pool ranging
from 200.1.1.100 to 200.1.1.200. That is, only IP addresses but not ports in data packets
are converted.
Address Pool-based 1:1 Mapping (No-PAT)
[OR] acl 2000 #Define ACL 2000 which is used to match the internal network address segment for NAT.
[OR-acl-basic-2000] quit
[OR-GigabitEthernet0/0/1] quit
Internet
OR WAN
The IP addresses of the external network and the router OR are shown in the figure.
PCs in the network segment 192.168.1.0/24 need to access the public network.
Configure EasyIP to allow the internal network to use the public IP address of the GE
0/0/01 interface to access the public network.
EasyIP
[OR] acl 2000 #Define ACL 2000 which is used to match the internal address segment for NAT.
[OR-acl-basic-2000] quit
[OR-GigabitEthernet0/0/1] quit
Server
192.168.1.1/24 GE0/0/0 GE0/0/1 GE0/0/0
Gateway 192.168.1.254/24 192.168.1.254/24 200.1.1.1/24 200.1.1.2/24
Internet
OR WAN
• The IP addresses for the internal and external networks as well as the router OR are
shown in the figure.
• The internal network server needs to provide the web service to the external network and
the requested public IP address is 200.1.1.100. Now, the port TCP 80 of the internal
network server needs to map to the port TCP 80 with the IP address of 200.1.1.100 to
ensure external network access.
NAT Server
[OR-GigabitEthemet0/0/1] nat server protocol tcp global 200.1.1.100 8080 inside 192.168.1.1 80