This section provides an example for configuring intranet users to access the public IP addresses of intranet servers.
An enterprise has deployed a FW as a security gateway on the intranet border. NAT Server is configured on the FW for the intranet web and File Transfer Protocol (FTP) servers to provide services for Internet users. PC D on the same network segment and security zone with the two servers. Source NAT is configured on the FW so that PC D can use a public address to access the two intranet servers.
Item |
Data |
Description |
|
|---|---|---|---|
GigabitEthernet 0/0/1 |
IP address: 1.1.1.1/24 Security zone: untrust |
1.1.1.1/24 is a public address provided by the ISP. |
|
GigabitEthernet 0/0/2 |
IP address: 10.2.0.1/24 Security zone: dmz |
Intranet servers use 10.2.0.1 as the default gateway address. |
|
NAT Server |
Name: policy_web Public IP address: 1.1.1.10 Private IP address: 10.2.0.7 Public port: 8080 Private port: 80 |
When Internet users send traffic to 1.1.1.10 through port 8080, the FW can forward the traffic to the web server based on this mapping entry. On the web server, the private address is 10.2.0.7, and the private port number is 80. |
|
Name: policy_ftp Public IP address: 1.1.1.10 Private IP address: 10.2.0.8 Public port: 21 Private port: 21 |
When Internet users send traffic to 1.1.1.10 through port 21, the FW can forward the traffic to the FTP server based on this mapping entry. On the FTP server, the private address is 10.2.0.8, and the private port number is 21. |
||
Source NAT policy |
Name: policy_nat1 Private address that can access the Internet: 10.2.0.6 Address in a NAT address pool: 1.1.1.11 |
- |
|
Routing information |
Default route |
Destination address: 0.0.0.0 Next hop address: 1.1.1.254 |
Configure a default route on the FW to direct intranet traffic to the ISP network. |
The configuration roadmap is as follows:
Choose .
In Security Policy List, click Add, select Add Security Policy, and configure a security policy based on the following parameter values.
Name |
policy1 |
|---|---|
Source Zone |
dmz,untrust |
Destination Zone |
dmz |
Destination Address/Region |
10.2.0.0/24 |
Action |
Permit |
Click OK.
Choose .

In Source Translation Address Pool List, click Add and configure a NAT address pool based on the following parameters.

Click OK.
Choose .

In NAT Policy List, click Add and configure a NAT policy based on the following parameters.

Click OK.
Contact your ISP administrator to perform this step.
Configuration script for the FW:
# sysname FW # nat server policy_web protocol tcp global 1.1.1.10 8080 inside 10.2.0.7 www unr-route nat server policy_ftp protocol tcp global 1.1.1.10 ftp inside 10.2.0.8 ftp unr-route # interface GigabitEthernet0/0/1 undo shutdown ip address 1.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/2 undo shutdown ip address 10.2.0.1 255.255.255.0 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # firewall zone dmz set priority 50 add interface GigabitEthernet0/0/2 detect ftp # firewall interzone dmz untrust detect ftp # ip route-static 0.0.0.0 0.0.0.0 1.1.1.254 # nat address-group addressgroup1 0 mode pat route enable section 0 1.1.1.11 1.1.1.11 # security-policy rule name policy1 source-zone dmz source-zone untrust destination-zone dmz destination-address 10.2.0.0 24 action permit # nat-policy rule name policy_nat1 source-zone dmz destination-zone dmz source-address 10.2.0.6 32 action source-nat address-group addressgroup1 # return