
3-7
Cisco PIX Firewall and VPN Configuration Guide
78-15033-01
Chapter 3 Controlling Network Access and Use
Using the Static Command for Port Redirection
Step 6 Redirect FTP requests for IP address 209.165.201.5:
static (inside,outside) tcp 209.165.201.5 ftp 10.1.1.3 ftp netmask 255.255.255.255 0 0
This command causes FTP requests to be redirected to 10.1.1.3.
Step 7 Redirect Telnet requests for PAT address 209.165.201.15:
static (inside,outside) tcp 209.165.201.15 telnet 10.1.1.4 telnet netmask 255.255.255.255
0 0
This command causes Telnet requests to be redirected to 10.1.1.4.
Step 8 Redirect Telnet requests for the PIX Firewall outside interface address:
static (inside,outside) tcp interface telnet 10.1.1.5 telnet netmask 255.255.255.255 0 0
This command causes Telnet requests to be redirected to 10.1.1.5.
Step 9 Redirect HTTP requests for the PIX Firewall outside interface address:
static (inside,outside) tcp interface www 10.1.1.5 www netmask 255.255.255.255 0 0
This command causes HTTP request to be redirected to 10.1.1.5.
Step 10 Redirect HTTP requests on port 8080 for PAT address 209.165.201.15:
static (inside,outside) tcp 209.165.201.15 8080 10.1.1.7 www netmask 255.255.255.255 0 0
This command causes HTTP port 8080 requests to be redirected to 10.1.1.7 port 80.
Port Redirection Example
Example 3-1 illustrates the configuration required to implement the port redirection described in this
scenario.
Example 3-1 Port Redirection with the static Command
fixup protocol ftp 21
ip address outside 209.165.201.25 255.255.255.0
ip address inside 10.1.1.2 255.255.255.0
global (outside) 1 209.165.201.15
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) tcp 209.165.201.5 telnet 10.1.1.6 telnet netmask 255.255.255.255 0
0
static (inside,outside) tcp 209.165.201.5 ftp 10.1.1.3 ftp netmask 255.255.255.255 0 0
static (inside,outside) tcp 209.165.201.15 telnet 10.1.1.4 telnet netmask 255.255.255.255
0 0
static (inside,outside) tcp interface telnet 10.1.1.5 telnet netmask 255.255.255.255 0 0
static (inside,outside) tcp interface www 10.1.1.5 www netmask 255.255.255.255 0 0
static (inside,outside) tcp 209.165.201.15 8080 10.1.1.7 www netmask 255.255.255.255 0 0
Kommentare zu diesen Handbüchern