
3-6
Cisco PIX Firewall and VPN Configuration Guide
78-15033-01
Chapter 3 Controlling Network Access and Use
Using the Static Command for Port Redirection
Port Redirection Configuration
Figure 3-1 illustrates a typical network scenario in which the port redirection feature might be useful.
Figure 3-1 Port Redirection Using the Static Command
10.1.1.2 209.165.201.25
PAT address =
209.165.201.15
Inside Outside
73601
In the configuration described in this section, port redirection occurs for hosts on external networks as
follows:
• Telnet requests to unique IP address 209.165.201.5 are redirected to 10.1.1.6
• FTP requests to unique IP address 209.165.201.5 are redirected to 10.1.1.3
• Telnet requests to PAT address 209.165.201.15 are redirected to 10.1.1.4
• Telnet requests to the PIX Firewall outside IP address 209.165.201.25 are redirected to 10.1.1.5
• HTTP request to PIX Firewall 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 scenario, complete the following steps:
Step 1 Configure application inspection of FTP requests on port 21 by entering the following command:
fixup protocol ftp 21
Step 2 Configure the IP address of the lower and higher security interfaces of your PIX Firewall by entering the
following command:
ip address outside 209.165.201.25 255.255.255.0
ip address inside 10.1.1.2 255.255.255.0
Step 3 Identify a global PAT address for the lower security interface by entering the following command:
global (outside) 1 209.165.201.15
Step 4 Configure NAT and PAT by entering the following command:
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
Step 5 Redirect Telnet requests for 209.165.201.5:
static (inside,outside) tcp 209.165.201.5 telnet 10.1.1.6 telnet netmask 255.255.255.255 0
0
This command causes Telnet requests to be redirected to 10.1.1.6.
Commentaires sur ces manuels