This section provides an example for configuring NAT No-PAT for intranet users to access the Internet.
The FW serves as the security gateway at the border of a studio. A source NAT policy must be configured on the FW to allow users in network 10.1.1.0/24 to access the Internet. Only a small number of users need to access the Internet. Therefore, NAT No-PAT address translation mode can be configured on the FW to perform one-to-one translation between private and public addresses. The studio applied for six IP addresses (1.1.1.10 to 1.1.1.15) from the ISP for address translation. Figure 1 shows the network environment. The router is the access gateway provided by the ISP.
Item |
Data |
Description |
|
|---|---|---|---|
GigabitEthernet 0/0/1 |
IP address: 10.1.1.1/24 Security zone: trust |
Set the default gateway address on each intranet host to 10.1.1.1. |
|
GigabitEthernet 0/0/2 |
IP address: 1.1.1.1/24 Security zone: untrust |
1.1.1.1/24 is a public address provided by the ISP. |
|
Intranet segment that is allowed to access the Internet |
10.1.1.0/24 |
- |
|
Public addresses mapped to private addresses |
1.1.1.10 to 1.1.1.15 |
Only a small number of users need to access the Internet. Therefore, NAT NO-PAT is configured on the FW. |
|
Routing information |
FW's 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. |
| Router's static route | Destination address: 1.1.1.10 to 1.1.1.15 Next hop address: 1.1.1.1 |
The public addresses mapped to private addresses are not assigned to physical ports. As a result, the router cannot use a routing protocol to discover routes to the public addresses. Ask the ISP network administrator to configure a static route destined for the network segment address of the address pool on the router. |
|
The configuration roadmap is as follows:
Contact your ISP administrator to perform this step.
Configuration script for the FW:
# sysname FW # interface GigabitEthernet0/0/1 undo shutdown ip address 10.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/2 undo shutdown ip address 1.1.1.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/1 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/2 # ip route-static 0.0.0.0 0.0.0.0 1.1.1.254 # nat address-group addressgroup1 0 mode no-pat global route enable section 0 1.1.1.10 1.1.1.15 # security-policy rule name policy1 source-zone trust destination-zone untrust source-address 10.1.1.0 24 action permit # nat-policy rule name policy_nat1 source-zone trust destination-zone untrust source-address 10.1.1.0 24 action source-nat address-group addressgroup1 # return