Cisco ASA Series Cli Configuration Manual page 837

Software version 9.0 for the services module
Hide thumbs Also See for ASA Series:
Table of Contents

Advertisement

Chapter 1
Configuring Twice NAT
Different Translation Depending on the Destination (Dynamic PAT)
Figure 1-1
accesses the server at 209.165.201.11, the real address is translated to 209.165.202.129:port. When the
host accesses the server at 209.165.200.225, the real address is translated to 209.165.202.130:port.
Figure 1-1
10.1.2.27
Step 1
Add a network object for the inside network:
hostname(config)# object network myInsideNetwork
hostname(config-network-object)# subnet 10.1.2.0 255.255.255.0
Step 2
Add a network object for the DMZ network 1:
hostname(config)# object network DMZnetwork1
hostname(config-network-object)# subnet 209.165.201.0 255.255.255.224
Step 3
Add a network object for the PAT address:
hostname(config)# object network PATaddress1
hostname(config-network-object)# host 209.165.202.129
Step 4
Configure the first twice NAT rule:
hostname(config)# nat (inside,dmz) source dynamic myInsideNetwork PATaddress1 destination
static DMZnetwork1 DMZnetwork1
Because you do not want to translate the destination address, you need to configure identity NAT for it
by specifying the same address for the real and mapped destination addresses.
Different Translation Depending on the Destination Address and Port (Dynamic PAT), page 1-26
shows a host on the 10.1.2.0/24 network accessing two different servers. When the host
Twice NAT with Different Destination Addresses
Server 1
209.165.201.11
209.165.201.0/27
Translation
209.165.202.129
Packet
Dest. Address:
209.165.201.11
Server 2
209.165.200.225
209.165.200.224/27
DMZ
Translation
10.1.2.27
209.165.202.130
Inside
10.1.2.0/24
Packet
Dest. Address:
209.165.200.225
10.1.2.27
Cisco ASA Series CLI Configuration Guide
Configuration Examples for Twice NAT
1-25

Advertisement

Table of Contents
loading

Table of Contents