![Cisco ASA 5512-X Скачать руководство пользователя страница 106](http://html.mh-extra.com/html/cisco/asa-5512-x/asa-5512-x_configuration-manual_63717106.webp)
5-8
Cisco ASA Series Firewall CLI Configuration Guide
Chapter 5 NAT Examples and Reference
Examples for Twice NAT
Figure 5-6
Twice NAT with Different Destination Ports
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 Telnet/Web server:
hostname(config)#
object network TelnetWebServer
hostname(config-network-object)#
host 209.165.201.11
Step 3
Add a network object for the PAT address when using Telnet:
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
Step 5
Configure the first twice NAT rule:
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
Web
a
nd Telnet
s
erver:
209.165.201.11
Internet
In
s
ide
Tr
a
n
s
l
a
tion
209.165.202.129
10.1.2.27:80
10.1.2.27
10.1.2.0/24
Tr
a
n
s
l
a
tion
209.165.202.1
3
0
10.1.2.27:2
3
Web P
a
cket
De
s
t. Addre
ss
:
209.165.201.11:80
Telnet P
a
cket
De
s
t. Addre
ss
:
209.165.201.11:2
3
1
3
0040
Содержание ASA 5512-X
Страница 5: ...P A R T 1 Service Policies and Access Control ...
Страница 6: ......
Страница 50: ...3 14 Cisco ASA Series Firewall CLI Configuration Guide Chapter 3 Access Rules History for Access Rules ...
Страница 51: ...P A R T 2 Network Address Translation ...
Страница 52: ......
Страница 126: ...5 28 Cisco ASA Series Firewall CLI Configuration Guide Chapter 5 NAT Examples and Reference DNS and NAT ...
Страница 127: ...P A R T 3 Application Inspection ...
Страница 128: ......
Страница 255: ...P A R T 4 Connection Settings and Quality of Service ...
Страница 256: ......
Страница 288: ...12 14 Cisco ASA Series Firewall CLI Configuration Guide Chapter 12 Quality of Service History for QoS ...
Страница 303: ...P A R T 5 Advanced Network Protection ...
Страница 304: ......
Страница 339: ...P A R T 6 ASA Modules ...
Страница 340: ......
Страница 398: ...17 28 Cisco ASA Series Firewall CLI Configuration Guide Chapter 17 ASA CX Module History for the ASA CX Module ...