Download Print this page

Cisco ASA 5506-X Configuration Manual page 106

Cli
Hide thumbs Also See for ASA 5506-X:

Advertisement

Examples for Twice NAT
Figure 5-6
10.1.2.27:80
Add a network object for the inside network:
Step 1
hostname(config)# object network myInsideNetwork
hostname(config-network-object)# subnet 10.1.2.0 255.255.255.0
Add a network object for the Telnet/Web server:
Step 2
hostname(config)# object network TelnetWebServer
hostname(config-network-object)# host 209.165.201.11
Add a network object for the PAT address when using Telnet:
Step 3
hostname(config)# object network PATaddress1
hostname(config-network-object)# host 209.165.202.129
Step 4
Add a service object for Telnet:
hostname(config)# object service TelnetObj
hostname(config-network-object)# service tcp destination eq telnet
Configure the first twice NAT rule:
Step 5
hostname(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.
Step 6
Add a network object for the PAT address when using HTTP:
hostname(config)# object network PATaddress2
hostname(config-network-object)# host 209.165.202.130
Cisco ASA Series Firewall CLI Configuration Guide
5-8
Twice NAT with Different Destination Ports
Web and Telnet server:
209.165.201.11
Internet
Translation
209.165.202.129
Inside
Web Packet
Dest. Address:
209.165.201.11:80
10.1.2.27
Chapter 5
Translation
10.1.2.27:23
209.165.202.130
10.1.2.0/24
Telnet Packet
Dest. Address:
209.165.201.11:23
NAT Examples and Reference

Hide quick links:

Advertisement

loading