17-36
Cisco Security Appliance Command Line Configuration Guide
OL-12172-03
Chapter 17 Configuring NAT
NAT Examples
Redirecting Ports
Figure 17-28
shows an example of a network configuration in which the port redirection feature might
be useful.
Figure 17-28
Port Redirection Using Static PAT
In the configuration described in this section, port redirection occurs for hosts on external networks as
follows:
•
Telnet requests to IP address 209.165.201.5 are redirected to 10.1.1.6.
•
FTP requests to IP address 209.165.201.5 are redirected to 10.1.1.3.
•
HTTP request to an security appliance outside IP address 209.165.201.25 are redirected to 10.1.1.5.
•
HTTP port 8080 requests to PAT address 209.165.201.15 are redirected to 10.1.1.7 port 80.
To implement this configuration, perform the following steps:
Step 1
Configure PAT for the inside network by entering the following commands:
hostname(config)#
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
hostname(config)#
global (outside) 1 209.165.201.15
Step 2
Redirect Telnet requests for 209.165.201.5 to 10.1.1.6 by entering the following command:
hostname(config)#
static (inside,outside) tcp 209.165.201.5 telnet 10.1.1.6 telnet netmask
255.255.255.255
Step 3
Redirect FTP requests for IP address 209.165.201.5 to 10.1.1.3 by entering the following command:
hostname(config)#
static (inside,outside) tcp 209.165.201.5 ftp 10.1.1.3 ftp netmask
255.255.255.255
Step 4
Redirect HTTP requests for the security appliance outside interface address to 10.1.1.5 by entering the
following command:
hostname(config)#
static (inside,outside) tcp interface www 10.1.1.5 www netmask
255.255.255.255
Telnet Server
10.1.1.6
209.165.201.25
10.1.1.1
Inside
FTP Server
10.1.1.3
Web Server
10.1.1.5
Web Server
10.1.1.7
Outside
130030
Содержание 500 Series
Страница 38: ...Contents xxxviii Cisco Security Appliance Command Line Configuration Guide OL 12172 03 ...
Страница 45: ...P A R T 1 Getting Started and General Information ...
Страница 46: ......
Страница 277: ...P A R T 2 Configuring the Firewall ...
Страница 278: ......
Страница 354: ...17 38 Cisco Security Appliance Command Line Configuration Guide OL 12172 03 Chapter 17 Configuring NAT NAT Examples ...
Страница 561: ...P A R T 3 Configuring VPN ...
Страница 562: ......
Страница 891: ...P A R T 4 System Administration ...
Страница 892: ......
Страница 975: ...P A R T 5 Reference ...
Страница 976: ......