17-21
Cisco Security Appliance Command Line Configuration Guide
OL-12172-03
Chapter 17 Configuring NAT
Using Dynamic NAT and PAT
Figure 17-18
NAT and PAT Together
See the following commands for this example:
hostname(config)#
nat (inside) 1 10.1.2.0 255.255.255.0
hostname(config)#
global (outside) 1 209.165.201.3-209.165.201.4
hostname(config)#
global (outside) 1 209.165.201.5
For outside NAT (from outside to inside), you need to use the
outside
keyword in the
nat
command. If
you also want to translate the same traffic when it accesses an outside interface (for example, traffic on
a DMZ is translated when accessing the Inside and the Outside interfaces), then you must configure a
separate
nat
command without the
outside
option. In this case, you can identify the same addresses in
both statements and use the same NAT ID (see
Figure 17-19
). Note that for outside NAT (DMZ interface
to Inside interface), the inside host uses a
static
command to allow outside access, so both the source
and destination addresses are translated.
Web Server:
www.cisco.com
Outside
Inside
Global 1: 209.165.201.3-
209.165.201.4
Global 1: 209.165.201.5
NAT 1: 10.1.2.0/24
10.1.2.27
10.1.2.28
10.1.2.29
130026
Translation
209.165.201.3
10.1.2.27
Translation
209.165.201.4
10.1.2.28
Translation
209.165.201.5:6096
10.1.2.29
Summary of Contents for 500 Series
Page 38: ...Contents xxxviii Cisco Security Appliance Command Line Configuration Guide OL 12172 03 ...
Page 45: ...P A R T 1 Getting Started and General Information ...
Page 46: ......
Page 277: ...P A R T 2 Configuring the Firewall ...
Page 278: ......
Page 561: ...P A R T 3 Configuring VPN ...
Page 562: ......
Page 891: ...P A R T 4 System Administration ...
Page 892: ......
Page 975: ...P A R T 5 Reference ...
Page 976: ......