This section describes how to configure a NAT policy.
NAT works in either of the following modes:
If multiple NAT policies are created, the policies are matched top down. If the traffic matches a NAT policy, the remaining policies are ignored. Bidirectional and destination NAT policies have higher matching priorities than source NAT policies and are ranked in front of source NAT policies. Bidirectional and destination NAT policies are ranked according to their configuration sequence, so are source NAT policies. A newly added policy or policy with the NAT action modified is ranked at the end of NAT policies of its own type. You can adjust the matching sequence of NAT policies as required. However, you cannot bring a source NAT policy to be in front of a bidirectional or destination NAT policy.
Parameter |
Description |
|---|---|
Name |
Name of a source NAT policy. |
Description |
Description of the source NAT policy. |
Tag |
The tag identifies and categorizes the policy. You can query policies based on tags and delete, move, enable, or disable policies in batches based on the query results. For the tag description and configuration, see Tag. |
NAT Type |
NAT type:
|
NAT Mode |
NAT mode:
|
Destination Address Translation Mode |
You need to configure this item only when the NAT mode is Destination address translation or Source and destination address translation.
|
Schedule |
Select the period for the security policy to take effect.
If a session is created for a service when a policy is valid, the device forwards subsequent packets of the service based on the session even if the policy expires. If the time range is also referenced by another policy, the FW will age the existing session, and therefore the service is interrupted. |
Original Data Packet |
|
Source Zone |
Name of a security zone to which intranet hosts belong.
NOTE:
If the matching conditions of the original data packet, including the source security zone, destination security zone/outbound interface, source address, and destination address, are all any, all traffic matches the policy, and NAT is implemented for all traffic. You are advised to configure a more accurate NAT policy. |
Destination Type |
Destination for traffic that is processed by NAT:
NOTE:
Both parameters Destination Zone and Outbound Interface are used to specify the scope of the traffic that requires NAT. You can select either of them to specify the scope of the traffic that requires NAT based on the actual condition. |
Source Address |
Private IP addresses of intranet hosts. You can select or enter private IP addresses. If this parameter is specified, the FW only translates IP addresses for traffic with the specified source address. NOTE:
To exclude an address or address group (source address or source addresses of traffic) from policy matching, select the address or address group from the available address area, select it in the selected address area and click Invert , and then click OK. |
Destination Address |
Address, address group, or domain group.
NOTE:
To exclude an address or address group (destination address or destination addresses) from policy matching, select the address or address group from the available address area, select it in the selected address area and click Invert , and then click OK. When an IP address corresponds to multiple domain names, an IP address can be used to search for a maximum of 16 domain names. If the domain name to be searched is not in the policy rule, the policy cannot be matched. You are advised to configure multiple domain names with the same IP address in the same policy rule. |
Service |
Name of a service or service group. The service or service group indicates the protocol type of the traffic. After you specify the service or service group, the FW translates the addresses only for traffic of the specified service or service group. NOTE:
To exclude a service or service group (service or service group of traffic) from policy matching, select the service or service group from the available service area, select it in the selected service area and click Invert , and then click OK. |
Translated Data Packet-NAT |
|
Source Address Translated To |
You need to configure this item only when the NAT mode is Source address translation or Source and destination address translation. Address translation mode:
NOTE:
Only address pool-based source NAT can be configured on a FW in switched mode (also called transparent mode). |
Source Translation Address Pool |
You need to configure this item only when the NAT mode is Source address translation or Source and destination address translation. Source NAT address pool name. You can perform either of the following operations:
|
Destination Address Translation To |
You need to configure this item only when the NAT mode is Destination address translation or Source and destination address translation. Destination NAT address or address pool name. You can perform either of the following operations:
|
Destination Port Translation Mode |
You need to configure this item only when the NAT mode is Destination address translation or Source and destination address translation. There are two translation modes:
|
Destination Port Translated To |
You need to configure this item only when the NAT mode is Destination address translation or Source and destination address translation. Translated port number. |
Add Security Policy |
The link to [Add Security Policy] is provided on the web UI. You can click the link to access the Add Security Policy page and rapidly create a security policy based on the configured data flows to permit the traffic. In addition, the Add Security Policy page support Switch Source and Destination and OK and Copy for configuring security policies for forward and return traffic. For details, see Configuring a Security Policy Using the Web UI. |
Translated Data Packet-NAT66 |
|
Source prefix Translation |
You need to configure this item only when the NAT66 mode is Source address translation or Source and destination address translation. translation mode:
|
Source prefix Translated To |
You need to configure this item only when the NAT66 mode is Source address translation or Source and destination address translation. |
Destination prefix Translation |
You need to configure this item only when the NAT66 mode is Destination address translation or Source and destination address translation. translation mode:
|
Destination prefix Translated To |
You need to configure this item only when the NAT66 mode is Destination address translation or Source and destination address translation. |
Destination Port Translation Mode |
You need to configure this item only when the Static NAT66 mode is Destination address translation or Source and destination address translation. There are two translation modes:
|
Destination Port Translated To |
You need to configure this item only when the Static NAT66 mode is Destination address translation or Source and destination address translation. Translated port number. |
Add Security Policy |
The link to [Add Security Policy] is provided on the web UI. You can click the link to access the Add Security Policy page and rapidly create a security policy based on the configured data flows to permit the traffic. In addition, the Add Security Policy page support Switch Source and Destination and OK and Copy for configuring security policies for forward and return traffic. For details, see Configuring a Security Policy Using the Web UI. |
Table 2 shows how to adjust a NAT policy.
Parameter |
Description |
|---|---|
Add |
Adds a NAT policy. |
Delete |
Deletes a NAT policy. |
Copy |
Copies a NAT policy. |
Move |
Moves a NAT policy. |
Insert |
Inserts a NAT policy. |
Reset All Statistics |
Resets the NAT policy matching count. |
Enable |
Enables a NAT policy. |
Disable |
Disables a NAT policy. |
Generate Security Policies |
Generates security policies in batches based on NAT policies. By default, the name of a security policy generated in batches is the same as that of the corresponding NAT policy. The security policy name can be suffixed. For example, if the NAT policy name is abc, and _NAT is input, the name of the generated security policy is abc_NAT. You can click the security policy in Security Policies to Be Generated to view its configuration. To modify the security policy, refer to Configuring a Security Policy Using the Web UI. |