10-7
Cisco ASA Series Firewall CLI Configuration Guide
Chapter 10 NAT Examples and Reference
Examples for Twice NAT
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.
Step 5
Add a network object for the DMZ network 2:
hostname(config)#
object network DMZnetwork2
hostname(config-network-object)#
subnet 209.165.200.224 255.255.255.224
Step 6
Add a network object for the PAT address:
hostname(config)#
object network PATaddress2
hostname(config-network-object)#
host 209.165.202.130
Step 7
Configure the second twice NAT rule:
hostname(config)#
nat (inside,dmz) source dynamic myInsideNetwork PATaddress2
destination static DMZnetwork2 DMZnetwork2
Different Translation Depending on the Destination Address and Port (Dynamic
PAT)
The following figure shows the use of source and destination ports. The host on the 10.1.2.0/24 network
accesses a single host for both web services and Telnet services. When the host accesses the server for
Telnet services, the real address is translated to 209.165.202.129:
port
. When the host accesses the same
server for web services, the real address is translated to 209.165.202.130:
port
.
Содержание ASA 5508-X
Страница 11: ...P A R T 1 Access Control ...
Страница 12: ......
Страница 60: ...4 14 Cisco ASA Series Firewall CLI Configuration Guide Chapter 4 Access Rules History for Access Rules ...
Страница 157: ...P A R T 2 Network Address Translation ...
Страница 158: ......
Страница 204: ...9 46 Cisco ASA Series Firewall CLI Configuration Guide Chapter 9 Network Address Translation NAT History for NAT ...
Страница 232: ...10 28 Cisco ASA Series Firewall CLI Configuration Guide Chapter 10 NAT Examples and Reference DNS and NAT ...
Страница 233: ...P A R T 3 Service Policies and Application Inspection ...
Страница 234: ......
Страница 379: ...P A R T 4 Connection Management and Threat Detection ...
Страница 380: ......
Страница 400: ...16 20 Cisco ASA Series Firewall CLI Configuration Guide Chapter 16 Connection Settings History for Connection Settings ...
Страница 414: ...17 14 Cisco ASA Series Firewall CLI Configuration Guide Chapter 17 Quality of Service History for QoS ...