Cisco Systems ASA 5555-X Network Router User Manual


 
5-28
Cisco ASA Series Firewall CLI Configuration Guide
Chapter 5 Configuring Twice NAT
Configuration Examples for Twice NAT
Step 5 Configure the first twice NAT rule:
ciscoasa(config)# nat (inside,outside) source dynamic myInsideNetwork PATaddress1
destination static TelnetWebServer TelnetWebServer service TelnetObj TelnetObj
Because you do not want to translate the destination address or port, you need to configure identity NAT
for them by specifying the same address for the real and mapped destination addresses, and the same
port for the real and mapped service.
By default, the NAT rule is added to the end of section 1 of the NAT table, See the “Configuring Dynamic
PAT (Hide)” section on page 5-11 for more information about specifying the section and line number for
the NAT rule.
Step 6 Add a network object for the PAT address when using HTTP:
ciscoasa(config)# object network PATaddress2
ciscoasa(config-network-object)# host 209.165.202.130
Step 7 Add a service object for HTTP:
ciscoasa(config)# object service HTTPObj
ciscoasa(config-network-object)# service tcp destination eq http
Step 8 Configure the second twice NAT rule:
ciscoasa(config)# nat (inside,outside) source dynamic myInsideNetwork PATaddress2
destination static TelnetWebServer TelnetWebServer service HTTPObj HTTPObj