The public-ip source match enable command enables the public IP address matching function in Source NAT scenarios.
The undo public-ip source match enable command disables the public IP address matching function in Source NAT scenarios.
By default, this function is disabled.
For example, the original IP address of a PC is 10.1.1.1, and it is translated into the public IP address 1.1.1.1 after Source NAT is configured. By default, the FW uses its private IP address 10.1.1.1 to match the source IP address in a traffic policy. After the public IP address matching function is enabled, the FW will use its public IP address 1.1.1.1 to match the source IP address in a traffic policy.
This function changes only the traffic policy matching mechanism. In actual scenarios, you must set a specific public IP address as the source IP address of a traffic policy.